| Yoko http://forum.yoko.com.ua/ |
|
| Help Autoloot http://forum.yoko.com.ua/viewtopic.php?f=3&t=736 |
Page 1 of 1 |
| Author: | erkali [ 2004-07-01 01:01:02 ] |
| Post subject: | Help Autoloot |
sub toastloot() uo.print("Lootin'O'Matic") while uo.notdead() DIM lootcont[3] lootcont[0]=0x0E75 #this is the id of the backpack lootcont[1]=0x0e76 #put the id of a bag lootcont[2]=0x09b0 #put the id of a pouch if UO.count("lootcont[i]") > 0 then wait(500) UO.waittargettype(lootcont[i]) UO.grab("") end if end sub ######################## ######Error############## ###################### Variable undifenied "i" :S Help ME! |
|
| Author: | Boydon [ 2004-07-01 01:36:47 ] |
| Post subject: | |
Here is mine. Code: sub loot() |
|
| Author: | Lem [ 2004-07-02 13:24:45 ] |
| Post subject: | |
erkal: 1) always declare vars your program uses -_-" 2) avoid declaring arrays/vars inside cycles. 3) close cycles you opened. 4) Uo.Count(type) counts items contained in your BACKPACK, for an autoloot function you should use Uo.FindType and Uo.FindCount |
|
| Author: | ozcaN [ 2004-07-02 16:49:40 ] |
| Post subject: | |
Anyone got a better version |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|