EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > General Discussion > UI User Discussion

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:00 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI