скрипт должен работать при ,exec Looting он работает максимум 30 минут как надо а потом виснет в загрузках

Version 312.19
sub Looting()
var t,l,m
m=13 ## ?????????? ????? ??? ????
t=1820
dim LootingItem[15] ## ?????? ?????? ??? ????
LootingItem[1] = 0x13BA ## ?????
LootingItem[2] = 0x13B9 ## ?????
LootingItem[3] = 0x143C ## ????
LootingItem[4] = 0x0F63 ## ????
LootingItem[5] = 0x0F46 ## ????????
LootingItem[6] = 0x143E ## ?????
LootingItem[7] = 0x1406 ## ????
LootingItem[8] = 0x1BC3 ## ??????
LootingItem[9] = 0x13FC ## ??????
LootingItem[10] = 0x1400 ## ????
LootingItem[11] = 0x13B1 ## ??????
LootingItem[12] = 0x1515 ## ??????
LootingItem[13] = 0x204E ## ??????
LootingItem[14] = 0x13FE ## ?????
LootingItem[15] = 0x0B16 ## ice sword
uo.set("finddistance",4)
for l=1 to m
uo.findtype(LootingItem[l],"-1","1")
while uo.FindCount() > 0
uo.grab("0","finditem")
wait(t)
uo.findtype(LootingItem[l],"-1","1")
wend
next
if uo.GetSerial("lastcontainer") == uo.GetSerial(uo.ObjAtLayer('Bpack')) then
goto end
endif
for l=1 to m
uo.FindType(LootingItem[l],"-1","lastcontainer")
while UO.FindCount() > 0
uo.grab(0,"finditem")
wait(t)
uo.FindType(LootingItem[l],"-1","lastcontainer")
wend
next
end:
end sub