Originally Posted by elcius
local f,x1,y1,x2,y2 = GetCurrentMapDungeonLevel();
local px,py = GetPlayerMapPosition("player");
local worldx, worldy = x1+(x2-x1)*px, y1+(y2-y1)*py;
|
For dalaran it seems to be return still slightly wrong coordinates, maybe be we need somehow use f variable (level) in calculation too? As Dalaran - level 3 ?
http://www.wowhead.com/zone=7502/dalaran
Dalaran info:
print(GetCurrentMapDungeonLevel())
print(GetNumDungeonMapLevels() )
print(GetMapInfo())
|
10, 4050.080078125, -1132.0799560547, 4873.330078125, -583.24401855469
4, 10, 11, 12
Dalaran70, 668, 778, false
|