Может у вас что нибудь умнее придумано?
Code: Select all
sub attack()
if uo.GetDistance ("Enemy")<11 and uo.GetDistance ("Enemy")>0 then
uo.target('0x00000001', "Enemy")
uo.say( chr( 27 ) )
uo.attack("Enemy")
else
if uo.GetDistance ("lastattack")<11 and uo.GetDistance ("lastattack")>0 then
uo.target('0x00000001', "lastattack")
uo.say( chr( 27 ) )
uo.attack("lastattack")
else
uo.print("ТАРГЕТОВ НЕТ!!!")
endif
endif
end sub