Page 1 of 1

how control price at buy?

Posted: 2004-07-26 21:21:02
by Badza
How I can control the price of reagents at buy function? Here I define only item and amount but no price returned (or define max price for item :(

Please help. THNX

Posted: 2004-07-27 14:04:21
by Badza
Yoko, i have a idea for some new functions :)
simple and independent from integrated buy system

uo.buyfromvendor('vendorname','itemname','amount',[maxprice])
return number of bought pieces of item

uo.selltovendor('vendorname','serialofitem','amount',[minprice])
return number of sold pieces of item

uo.getpricefromvendor('vendorname','itemname')
return price of item

uo.getamountfromvendor('vendorname','itemname')
return available pieces of item

What do you think about this, Yoko (and others)?

Posted: 2004-07-27 23:04:32
by Yoko
i think that if you read "Plans" section at forum archive you will found that buy/sell system are marked for reconstruction. it takes as anything else in world work and time.

Posted: 2004-07-28 15:20:15
by Badza
Can I code it and sent for you? :)

Posted: 2004-07-28 22:49:28
by Yoko
why not? go on