to get the coordinates to put a POI on a map that I have created. (Not the zonerect formula).
I found this one;
Code:
(LOC_0x + LOC_x)
MAP_x = ---------------- + Map_0x - (IconW / 2)
wdpp_x
here.
http://www.eq2interface.com/forums/showthread.php?t=963
Unfortunately, I'm not understanding Tacoman's explanation about what the variables are. Here is his explanation:
Quote:
|
Originally Posted by taco-man
Same variables in bobbles formula except LOC_x is any /loc in game and MAP_x is the corresponding coordinate on the map image that the equation will give you when you solve it. IconW is the icon's width that you are placing on the map. Without the (IconW / 2) in the equation it would give you where you want the center of the icon to be on the map but since the coordinates used to place things in the ui is the upper left corner we need to subtract half the width so that it is placed in the right spot
|
Where I'm getting confused. If LOC_x is any in-game /loc, then what is LOC_0x and Map_0x? Are they the left-most (since we are doing x-axis and not the y-axis) coordinates of the respective in-game map and my map? And what it wdpp_x?
I'd appreciate any help that anyone can give me.