Page 1 of 1

Buying

Posted: 2007-08-17 12:11:36
by motxu
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 ;)

Posted: 2007-08-17 13:16:51
by Scripts Writer
I don't know how to make it in Buy/Sell but mb in a list

Code: Select all

Buy 10 NightShade


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

Code: Select all

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

Posted: 2007-08-17 13:34:25
by motxu
thanks man ;)
Any other help?
my idea is:
VAR amount = 100
q = amount - uo.count( reg[r] )

then buy reg quantity q
understand? ;)

Posted: 2007-08-17 13:51:29
by Scripts Writer
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.

Posted: 2007-08-17 15:10:48
by Grin
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:)