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

putting the pathfinding/follow
http://forum.yoko.com.ua/viewtopic.php?f=17&t=13021
Page 1 of 1

Author:  iRuLez [ 2008-01-07 13:44:41 ]
Post subject:  putting the pathfinding/follow

if possibile to create script with putting the "pathfinding" or "follow" on LastTarget?

Author:  iRuLez [ 2008-01-07 14:02:02 ]
Post subject: 

I need a script that recognizes the coordinates where the enemy is and makes a double-click-right on those coordinates

Author:  Grin [ 2008-01-07 15:16:30 ]
Post subject: 

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!

Author:  iRuLez [ 2008-01-07 15:37:45 ]
Post subject: 

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:

Author:  Grin [ 2008-01-07 16:07:27 ]
Post subject: 

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

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