Yoko

All sides of Injection
It is currently 2024-03-28 14:20:56

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2011-01-31 06:11:05 
Offline

Joined: 2010-12-01 08:01:12
Posts: 19
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited