ДРВ wrote:
Code:
sub e2()
UO.Exec("set finddistance 15")
repeat
UO.FindType('0x023E','0000x0',1)
If UO.FindCount('finditem')>0 then
UO.Attack('finditem')
repeat
wait(5000)
UO.FindType('0x023E','0000x0',1)
until UO.FindCount('finditem')<1
else
While uo.GetHP('self')<uo.GetMaxHP('self')
UO.SetArm('CWeapon')
stirka()
UO.Exec("bandageself")
wait (1000)
UO.Arm('CWeapon')
wait(5000)
# if UO.Armor < 50 then
#UO.WaitTargetSelf()
#UO.Cast("Protection")
#wait(5000)
#else
#wait(100)
#end if
wend
end if
wait(1000)
until UO.DEAD()
end sub
почему он не кастует на себя протектион?
если я не ошибаюсь то должно быть так:
Code:
sub e2()
UO.Exec("set finddistance 15")
repeat
UO.FindType('0x023E','0000x0',1)
If UO.FindCount('finditem')>0 then
UO.Attack('finditem')
repeat
wait(5000)
UO.FindType('0x023E','0000x0',1)
until UO.FindCount('finditem')<1
else
While uo.GetHP('self')<uo.GetMaxHP('self')
UO.SetArm('CWeapon')
stirka()
UO.Exec("bandageself")
wait (1000)
UO.Arm('CWeapon')
wait(5000)
if UO.Armor < 50 then
UO.WaitTargetSelf()
UO.Cast("Protection")
wait(5000)
else
wait(100)
end if
wend
end if
wait(1000)
until UO.DEAD()
end sub