Yoko

All sides of Injection
It is currently 2025-12-25 17:11:35

All times are UTC+02:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Ammount
PostPosted: 2004-07-11 12:36:58 
Offline

Joined: 2004-07-02 12:14:09
Posts: 30
Why i need to have this item only in ammount 500 in 1 item? If i have bigger ammount, then this macro get all. If i get reagents, then this will work ok.

IF UO.Count("0x0E34")<10 THEN
UO.UseObject(StoreRegCont2)
UO.FindType('0x0E34','-1',StoreRegCont2)
UO.Grab(STR((500-0x0E34)),'finditem')
wait(WaitTime)
endif


Last edited by Biba on 2004-07-11 13:43:56, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2004-07-11 12:51:48 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
read Grab line yourself


Top
   
 Post subject:
PostPosted: 2004-07-11 13:40:29 
Offline

Joined: 2004-07-02 12:14:09
Posts: 30
Thats why im posting here. I dont know where is error. This is first time i use macro like that.


Top
   
 Post subject:
PostPosted: 2004-07-12 09:39:37 
Offline

Joined: 2004-05-10 07:35:04
Posts: 16
UO.Grab(STR((500-0x0E34)),'finditem')


Top
   
 Post subject:
PostPosted: 2004-07-12 11:28:51 
Offline

Joined: 2004-07-02 12:14:09
Posts: 30
nagger wrote:
UO.Grab(STR((500-0x0E34)),'finditem')
Yes, this is ammount i want to grab or not ? Im typing, if i got 510, this command take all, not only 500 as i want.


Top
   
 Post subject:
PostPosted: 2004-07-12 17:02:45 
Offline

Joined: 2004-05-10 07:35:04
Posts: 16
uo.exec("grab 500 finditem")


Top
   
 Post subject:
PostPosted: 2004-07-12 18:18:18 
Offline

Joined: 2004-07-02 12:14:09
Posts: 30
Thank you.


Top
   
 Post subject:
PostPosted: 2004-07-12 21:04:04 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
Biba wrote:
nagger wrote:
UO.Grab(STR((500-0x0E34)),'finditem')
Yes, this is ammount i want to grab or not ? Im typing, if i got 510, this command take all, not only 500 as i want.


500-0x0e34=500-3636=-3136
any negative number mean "all"


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


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