Anything and all.
Moderators: Murderator+ , Murderator
Biba
Posts: 30 Joined: 2004-07-02 12:14:09
Post
by Biba » 2004-07-11 12:36:58
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 » 2004-07-11 12:51:48
read Grab line yourself
Biba
Posts: 30 Joined: 2004-07-02 12:14:09
Post
by Biba » 2004-07-11 13:40:29
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 » 2004-07-12 09:39:37
UO.Grab(STR((500 -0x0E34)),'finditem')
Biba
Posts: 30 Joined: 2004-07-02 12:14:09
Post
by Biba » 2004-07-12 11:28:51
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 » 2004-07-12 17:02:45
uo.exec("grab 500 finditem")
Biba
Posts: 30 Joined: 2004-07-02 12:14:09
Post
by Biba » 2004-07-12 18:18:18
Thank you.
Yoko
Site Admin
Posts: 1964 Joined: 2004-04-03 16:49:38
Contact:
Post
by Yoko » 2004-07-12 21:04:04
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"