Yoko

All sides of Injection
It is currently 2025-11-23 18:43:26

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2008-01-07 13:44:41 
Offline

Joined: 2006-05-04 18:40:42
Posts: 104
if possibile to create script with putting the "pathfinding" or "follow" on LastTarget?


Top
   
 Post subject:
PostPosted: 2008-01-07 14:02:02 
Offline

Joined: 2006-05-04 18:40:42
Posts: 104
I need a script that recognizes the coordinates where the enemy is and makes a double-click-right on those coordinates


Top
   
 Post subject:
PostPosted: 2008-01-07 15:16:30 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
You can get screen coordinates from uo world coordinates. X and Y axis rotated by 45 deg and so on. One tile 44px height and wight.

Or

You can use EasyUO for pathfind.

Or

Perl script module for injection (too hard for understanding)

Good luck!


Top
   
 Post subject:
PostPosted: 2008-01-07 15:37:45 
Offline

Joined: 2006-05-04 18:40:42
Posts: 104
Code:
sub test()
   var x,y
   
   x = uo.getx("laststatus")
   y = uo.gety("laststatus")
   uo.print(str(x))
   uo.rdblclick(x,y)
end sub



maybe i dont undestand ... :roll:


Top
   
 Post subject:
PostPosted: 2008-01-07 16:07:27 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
Code:
sub GetStatus(serial)
   var dx = uo.GetX(serial)-uo.GetX()
   var dy = uo.GetY(serial)-uo.GetY()
   var dz = uo.GetZ(serial)-uo.GetZ()
   var x = 400+22*(dx-dy)
   var y = 300+22*(dx+dy)-dz*4-20
   UO.Drag(x, y, x+44, y)
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))
end sub


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
Powered by phpBB® Forum Software © phpBB Limited