Code: Select all
sub avtoplavka()
while 1
uo.set('finddistance', '2')
uo.findtype('0x1984', -1,'ground')
if uo.findcount() > 0 then
uo.findtype('0x19B9')
wait(500)
if uo.getquantity('finditem') then
uo.waittargetobject('finditem')
uo.useObject('0x400766E7')
wait(500)
end if
else
wait(500)
end if
wend
end sub