Ask for scripts here
Moderators: Murderator+, Murderator
-
motxu
- Posts: 48
- Joined: 2005-04-13 16:01:09
-
Contact:
Post
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

-
Scripts Writer
- Posts: 2259
- Joined: 2005-04-19 18:00:29
- Location: Московская область
-
Contact:
Post
by Scripts Writer »
I don't know how to make it in Buy/Sell but mb in a list
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
-
motxu
- Posts: 48
- Joined: 2005-04-13 16:01:09
-
Contact:
Post
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?

-
Scripts Writer
- Posts: 2259
- Joined: 2005-04-19 18:00:29
- Location: Московская область
-
Contact:
Post
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.
-
Grin
- Expert!
- Posts: 2580
- Joined: 2005-05-04 14:05:19
- Location: Москва
Post
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:)