Yoko
http://forum.yoko.com.ua/

Ammount
http://forum.yoko.com.ua/viewtopic.php?f=20&t=841
Page 1 of 1

Author:  Biba [ 2004-07-11 12:36:58 ]
Post subject:  Ammount

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

Author:  Yoko [ 2004-07-11 12:51:48 ]
Post subject: 

read Grab line yourself

Author:  Biba [ 2004-07-11 13:40:29 ]
Post subject: 

Thats why im posting here. I dont know where is error. This is first time i use macro like that.

Author:  nagger [ 2004-07-12 09:39:37 ]
Post subject: 

UO.Grab(STR((500-0x0E34)),'finditem')

Author:  Biba [ 2004-07-12 11:28:51 ]
Post subject: 

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.

Author:  nagger [ 2004-07-12 17:02:45 ]
Post subject: 

uo.exec("grab 500 finditem")

Author:  Biba [ 2004-07-12 18:18:18 ]
Post subject: 

Thank you.

Author:  Yoko [ 2004-07-12 21:04:04 ]
Post subject: 

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"

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/