Sorry, lame question, but...
How do I convert from wow's internal coordinate system to what we typically see in game?
(9507.7,-6806.8, 17.4) that I see internally vs (47.2, 45.6) that players typically see.
Sorry, lame question, but...
How do I convert from wow's internal coordinate system to what we typically see in game?
(9507.7,-6806.8, 17.4) that I see internally vs (47.2, 45.6) that players typically see.
float mapSize = ((64*16) * ((150.0f/36.0f)*); // 34133.333
float tileSize = 150.0f / 36.0f * 8 * 16; // 533.333
float absCoordX = (mapSize / 2) - WoW.Player.X + tileSize;
float absCoordY = (mapSize / 2) - WoW.Player.Y + tileSize;
int tileX = (int)(absCoordX / tileSize) - 1;
int tileY = (int)(absCoordY / tileSize) - 1;
EDIT:
The coords you posted would be -> 14.17, 44.76
Last edited by suicidity; 01-18-2009 at 02:41 PM.
GetPlayerMapPosition has to be multiplyed by 100.
But the formula is wrong for Y(map) value. in goldshire, you start at 48/42 in map coordinates, but world coordinates are -8915.00;-131.00;90.00float mapSize = ((64*16) * ((150.0f/36.0f)*); // 34133.333
float tileSize = 150.0f / 36.0f * 8 * 16; // 533.333
float absCoordX = (mapSize / 2) - WoW.Player.X + tileSize;
float absCoordY = (mapSize / 2) - WoW.Player.Y + tileSize;
int tileX = (int)(absCoordX / tileSize) - 1;
int tileY = (int)(absCoordY / tileSize) - 1;
EDIT:
The coords you posted would be -> 14.17, 44.76
Edit:
the formula gives out the correct X value, but th Y value it gives out is about -5300.00.
can someone plz tell me the correct formula for calulating the y value?
Last edited by dehe; 06-29-2012 at 09:29 AM.