Yoko
http://forum.yoko.com.ua/

HELP - wait till uo.rdblclick() - pathfinding
http://forum.yoko.com.ua/viewtopic.php?f=17&t=16169
Page 1 of 1

Author:  Shokarta [ 2011-01-31 06:11:05 ]
Post subject:  HELP - wait till uo.rdblclick() - pathfinding

if i set pathfinding in UO client, then i can use UO.RDblClick(x,y)
- 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:
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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/