Page 1 of 1
Ammount
Posted: 2004-07-11 12:36:58
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
Posted: 2004-07-11 12:51:48
by Yoko
read Grab line yourself
Posted: 2004-07-11 13:40:29
by Biba
Thats why im posting here. I dont know where is error. This is first time i use macro like that.
Posted: 2004-07-12 09:39:37
by nagger
UO.Grab(STR((500-0x0E34)),'finditem')
Posted: 2004-07-12 11:28:51
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.
Posted: 2004-07-12 17:02:45
by nagger
uo.exec("grab 500 finditem")
Posted: 2004-07-12 18:18:18
by Biba
Thank you.
Posted: 2004-07-12 21:04:04
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"