Ammount

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Biba
Posts: 30
Joined: 2004-07-02 12:14:09

Ammount

Post by Biba »

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.
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

read Grab line yourself
Biba
Posts: 30
Joined: 2004-07-02 12:14:09

Post by Biba »

Thats why im posting here. I dont know where is error. This is first time i use macro like that.
nagger
Posts: 16
Joined: 2004-05-10 07:35:04

Post by nagger »

UO.Grab(STR((500-0x0E34)),'finditem')
Biba
Posts: 30
Joined: 2004-07-02 12:14:09

Post by Biba »

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.
nagger
Posts: 16
Joined: 2004-05-10 07:35:04

Post by nagger »

uo.exec("grab 500 finditem")
Biba
Posts: 30
Joined: 2004-07-02 12:14:09

Post by Biba »

Thank you.
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

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"
Post Reply