Yoko

All sides of Injection
It is currently 2025-10-21 14:11:12

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Buying
PostPosted: 2007-08-17 12:11:36 
Offline

Joined: 2005-04-13 16:01:09
Posts: 48
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 ;)


Top
   
 Post subject:
PostPosted: 2007-08-17 13:16:51 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
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


Top
   
 Post subject:
PostPosted: 2007-08-17 13:34:25 
Offline

Joined: 2005-04-13 16:01:09
Posts: 48
thanks man ;)
Any other help?
my idea is:
VAR amount = 100
q = amount - uo.count( reg[r] )

then buy reg quantity q
understand? ;)


Top
   
 Post subject:
PostPosted: 2007-08-17 13:51:29 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
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.


Top
   
 Post subject:
PostPosted: 2007-08-17 15:10:48 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
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:)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited