i'm trying to do a code to let me target the nearest object around,
but i'm not good with inj code, so right now this doesn't work at all
can someone explain me why?
thank you
google translate for russian:
Я пытаюсь сделать код, чтобы меня нацелены на ближайший объект вокруг,
но я не очень хорошо с кодом Inj, поэтому сейчас это не работает на всех
может кто-нибудь объяснить мне, почему?
спасибо
Code:
sub targetnearest()
var check = 0
repeat
Uo.Press(119) #client target next
UO.Ignore("self")
if UO.GetDistance("laststatus") <=5 then
check = 1
end if
UO.DeleteJournal()
until check > 0
end sub