View Single Post
  #5  
Unread 06-30-2011, 11:44 AM
lordebon lordebon is offline
Fetish Core author
This person is a EQ2Map developer.
Featured
 
Join Date: Jun 2005
Server: Crushbone
Posts: 2,667
Default

Quote:
Originally Posted by gm9 View Post
You can get the loc (pixel location on the map window), it's more an issue of not being able to do the math to get a (relative) distance from that.
^That

To my knowledge the math you need to actually figure out a distance using two locs (simple trig, aka Pythagorean theorem) is beyond the math capabilities in EQ2's current UI scripting, unfortunately. IIRC you can split the loc in to its three parts in a roundabout way, but you'd also have to implement a roundabout way of approximating it. You could probably implement Newton's method and it would be reasonably accurate depending on your starting "guess" and how many iterations of it you did.
__________________
Reply With Quote