чар рубит дерево....вы тыкаете по деревьям и когда вес более 600, то чар реколится по руне с ящику скидывает все и реколится по другой руне в лес...
система реколла не работет :::::
Code: Select all
sub Lamber()
While NOT UO.Dead()
if uo.injournal("pack")==1 or uo.injournal("skill")==1 or uo.injournal("fail")==1 Then
uo.waittargettile('lasttile')
UO.Usetype ('0x0F47')
Endif
if uo.injournal("chop")==1 Then
UO.Usetype ('0x0F47')
Endif
Wait(100)
wend
if uo.weight > 600 then ; Максимальный вес при котором домой с рудой
uo.canceltarget()
endif
uo.cast('Recall','0x40174FAC')
wait(3000)
loot()
wait(3000)
uo.cast('Recall','0x40174FAB')
endif
wend
end sub
sub loot() ; перекладка руды в сундук
if uo.waiting() then
uo.canceltarget()
endif
VAR a,Exit
VAR UnloadCont='0x40187609' ; АЙДИ сундука для руды
DIM Ore[3]
logs[0]=0x1BDD
logs[0]=0x1BDD
UO.SetReceivingContainer(UnloadCont)
wait(500)
For a=0 to 1
Exit=0
repeat
UO.FindType(logs[a])
if UO.GetQuantity('finditem')>0 then
UO.Grab('0','finditem')
wait(1500)
Else
Exit=1
endif
until Exit==1
Next
UO.UnSetReceivingContainer()
end sub