- but that can click only as far as i can see...
so if i want to go in futher then i need to click somewhere i can see, then do it again, and again
but how can i wait till first pathfinding is done?
Ive got this which is not working, he will do the first pathfinding and then he stop, please help
Code: Select all
sub run()
uo.print("going way1")
Pathfind(5306,1161)
uo.print("going way2")
Pathfind(5310,1168)
uo.print("going way3")
Pathfind(5303,1178)
end sub
sub Pathfind(x, y)
var dx = x-uo.GetX()
var dy = y-uo.GetY()
UO.RDblClick(400+22*(dx-dy), 300+22*(dx+dy))
while NOT uo.getx()==x AND NOT uo.gety()==y
wait(200)
wend
end sub