Нужен скрипт на лут простой чтобы при открытии трупа все оттуда забирал сам,
этот вроде должен работать, но при запуске ничего не происходит, запуск с открытым трупом ошибку выдает "checklag" и берет по одной вещи
Code:
sub Lootall()
var n = 0, ok, corpse, i, container = '0x40363C7A' ; Контейнер-приемник
dim ignore[4] ; Общее кол-во элементов в массиве
ignore[0] = '0x1234'
ignore[1] = '0x1234'
ignore[2] = '0x1234'
ignore[3] = '0x1234'
if uo.getserial(container) <> uo.getserial('lastcontainer') and uo.getserial('backpack') <> uo.getserial('lastcontainer') then
uo.ignorereset()
corpse=uo.getserial('lastcontainer')
uo.findtype(-1,-1,corpse)
repeat
uo.findtype(-1,-1,corpse)
if uo.findcount() then
ok = 1
for i = 0 to 3 ; Общее кол-во элементов в массиве минус один
if uo.getgraphic('finditem') == ignore[i] then
ok = 0
endif
next
if n==uo.getserial('finditem') or not ok then
uo.ignore('finditem')
else
n=uo.getserial('finditem')
uo.moveitem('finditem',0,container)
uo.print(' item '+str(uo.findcount()))
checklag()
wait(600)
endif
endif
until not uo.findcount()
endif
uo.print(' -= Done =- ')
endsub