Code: Select all
sub f22()
Var Vics=0x00d4
Var Vic
var myX=UO.GetX()
var myY=UO.GetY()
var lastX=myX
var lastY=myY
uo.set( "finddistance" , "8" )
repeat
uo.FindType(Vics,-1, "ground" )
if uo.FindCount() then
Vic=UO.GetSerial('finditem')
if uo.isNPC(Vic)==0 then
repeat
if uo.getdistance(Vic)>1 then
MoveTo(1,1,Vic)
end if
wait(10000)
uo.attack(Vic) #для начала аттака потом сюда блок таминга вставится
wait(10000)
endif
until uo.GetX(Vic)<1
wait(10000)
uo.forget(Vic)
endif
endif
#if uo.gety()>1375 then
# GotoXY(5306,1288)
# wait(100)
# endif
wait(10000)
until uo.gethp()<100
end sub
пишет на всю длинну окна ультимы повторно "items found 1" и вылетает, где может находится ошибка?