Найдите ошибку... (список не пашит) (перечисление)
Posted: 2006-05-13 16:19:23
Люди кто шарит, вот собрал скриптик на ремонт итемов которые в бакпаке, так все работает если найдет итем, но через список не находит.

Code: Select all
var gotovo = '0x5E9FAFBE' # Cymka gotovo
var gavno = '0x5587CB07' # Cymka ybitogo
sub find()
var l
DIM LootingItem[16]
UO.Print('Go PeMoHT =>')
LootingItem[1] = 0x0F62 # speer
LootingItem[2] = 0x0E87 # Vily
LootingItem[3] = 0x143E # Alebarda
LootingItem[4] = 0x0F5E ## Broad Sword
LootingItem[5] = 0x1440 # cultlast
LootingItem[6] = 0x13FF # Katana
LootingItem[7] = 0x13B6 #Scimitar
LootingItem[8] = 0x13BA #Viking
LootingItem[9] = 0x13B8 #Long Sword
LootingItem[10] = 0x13CD ## - Lokti
LootingItem[11] = 0x13CE ## - Perchatki
LootingItem[12] = 0x1DBA ## - Shapka
LootingItem[13] = 0x1400 ## Kryss
LootingItem[14] = 0x13D3 ## - Tunic Leathes
LootingItem[15] = 0x13C7 ## - Gorgetka
LootingItem[16] = 0x13D2 ## - Leather Nogi
UO.Print('=== End ===')
for l=1 to 16
uo.FindType(LootingItem[l],"-1",'backpack')
If UO.FindCount() then
uo.waittargetobject('finditem')
uo.useobject('0x50762753') # HakoBaLnya
Wait(900)
If UO.InJournal('отремонтирован') then
UO.MoveItem('finditem','-1', gotovo)
UO.DeleteJournal()
endif
If UO.InJournal('REPAIR') then
UO.MoveItem('finditem','-1', gavno)
UO.DeleteJournal()
endif
next
endif
endsub