sub battle()
var t
UO.Setarm('arm')
UO.AutoMenu('What','Polar')
while NOT UO.Dead()
if UO.Life<UO.Str then
repeat
UO.Bandageself()
wait(5000)
until UO.Life==UO.Str
endif
UO.Arm('arm')
UO.WaitTargetSelf()
UO.Cast('Summ. Crea')
t=0
repeat
wait(500)
t=t+1
if t>15 then
UO.WaitTargetSelf()
UO.Cast('Summ. Crea')
t=0
endif
UO.findtype('0x00d5','0xffff','ground')
until uo.FindCount()==1
repeat
wait(1000)
UO.Attack('finditem')
UO.findtype('0x00d5','0xffff','ground')
until uo.FindCount()==0
wend
end sub
что надо добавить и куда, чтобы он брал закончившийся реагент, бинты из сундука, а также чтоб выкладывал в сундук использованые бинты?
|