| Yoko http://forum.yoko.com.ua/ |
|
| Автолут выдает ошибку Line: 10 Runtime error http://forum.yoko.com.ua/viewtopic.php?f=3&t=14183 |
Page 1 of 1 |
| Author: | Jekaaa [ 2008-12-12 04:33:05 ] |
| Post subject: | Автолут выдает ошибку Line: 10 Runtime error |
sub Loot() VAR i,Exit DIM Loot[6] Loot[0]=0x0EED Loot[1]=0x1bfb UO.SetReceivingContainer('backpack') For i=0 to 53 Exit=0 repeat UO.FindType(Loot[i],-1,'ground') if UO.GetQuantity('finditem') then UO.Grab('0','finditem') wait(500) Else Exit=1 endif UO.FindType(Loot[i],-1,'lastcontainer') if UO.GetQuantity('finditem') then UO.Grab('0','finditem') wait(500) Else Exit=1 endif until Exit==1 OR uo.injournal("loot") Next UO.UnSetReceivingContainer() end sub Вот скрипт подскажите что не правильно плиз! =) |
|
| Author: | Millerbeer [ 2008-12-12 07:01:59 ] |
| Post subject: | |
массив задан на 6 значений DIM Loot[6] реально там присутствует только 2 значения Loot[0]=0x0EED Loot[1]=0x1bfb а опрашивается 54 значения For i=0 to 53 короче эту строчку For i=0 to 53 сделай такой For i=0 to 1 |
|
| Author: | Jekaaa [ 2008-12-22 09:52:36 ] |
| Post subject: | Re: Автолут выдает ошибку Line: 10 Runtime error |
Все работает на ура, спасибо =) |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|