Code: Select all
sub Otlozhit_logi()
VAR a,Exit
if uo.waiting() then
uo.canceltarget()
endif
DIM Log[9]
Log[0]=0x009B
Log[1]=0x021F
Log[2]=0x0222
Log[3]=0x02FC
Log[4]=0x021E
Log[5]=0x0221
Log[6]=0x0220
Log[7]=0x00ED
Log[8]=0x0000 ; *
UO.SetReceivingContainer(Logi)
wait(500)
For a=0 to 8
Exit=0
repeat
UO.FindType('0x1BDD',Log[a],Chest)
if UO.GetQuantity('finditem')>0 then
UO.Grab('370','finditem')
wait(1500)
Else
Exit=1
endif
until Exit==1
Next
UO.UnSetReceivingContainer()
end sub