Yoko
http://forum.yoko.com.ua/

Buying
http://forum.yoko.com.ua/viewtopic.php?f=17&t=12325
Page 1 of 1

Author:  motxu [ 2007-08-17 12:11:36 ]
Post subject:  Buying

is there a way to buy a variable amount of things from a vendor?
Imagine:

ns in shop list is nightshade.
sometimes i want to buy 50 ns other times 60 other times 10
Help plz ;)

Author:  Scripts Writer [ 2007-08-17 13:16:51 ]
Post subject: 

I don't know how to make it in Buy/Sell but mb in a list

Code:
Buy 10 NightShade


and if you want to buy 50 NS you can start this script in

Code:
var forbuy=500
for i=0 to 4
  uo.Buy('buy list')
  wait(forbuy)
next

Author:  motxu [ 2007-08-17 13:34:25 ]
Post subject: 

thanks man ;)
Any other help?
my idea is:
VAR amount = 100
q = amount - uo.count( reg[r] )

then buy reg quantity q
understand? ;)

Author:  Scripts Writer [ 2007-08-17 13:51:29 ]
Post subject: 

motxu wrote:
thanks man ;)
Any other help?
my idea is:
VAR amount = 100
q = amount - uo.count( reg[r] )

then buy reg quantity q
understand? ;)


I understood you but it wasn't realized to buy quantity. Only 'Name of buylist' and 'Name of a vendor seller' as i know.

Author:  Grin [ 2007-08-17 15:10:48 ]
Post subject: 

make more then 1 buy list
one buy 10 -> times = int(q/10)
q = q-times*10
one buy 5 -> times = int(q/10)
q = q-times*5
one buy 1:) -> times = q

something like that:)

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/