how control price at buy?

General Injection issues

Moderators: Murderator+, Murderator

Post Reply
Badza
Posts: 19
Joined: 2004-06-19 10:49:57
Contact:

how control price at buy?

Post 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
Badza
Posts: 19
Joined: 2004-06-19 10:49:57
Contact:

Post 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)?
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post 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.
Badza
Posts: 19
Joined: 2004-06-19 10:49:57
Contact:

Post by Badza »

Can I code it and sent for you? :)
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

why not? go on
Post Reply