Talk:API GetCurrentMapZone
Jump to navigation
Jump to search
4.01 Patch in the Badlands for example results in:
[21:13:18]Dump: value=GetPlayerMapPosition("player") [21:13:18][1]=0.42797207832336, [21:13:18][2]=0.52290499210358
X/Y coords like before.
Now, let's do a dump of GetCurrentMapZone:
[21:17:01]Dump: value=GetCurrentMapZone() [21:17:01][1]=13, [21:17:01][2]=-2079.1665039063, [21:17:01][3]=-5889.5830078125, [21:17:01][4]=-4566.6665039063, [21:17:01][5]=-7547.9165039063
we have 4 additional return values. In my opinion exactly what Astrolabe, Deus Vox Encounters and DeadlyBossmods and others use for their rangecalculations
If we do :
/run local _, left, top, right, bot = GetCurrentMapZone() local x, y = GetPlayerMapPosition("player") y, x =(1.0-x)*left+x*right , (1.0-y)*top+y*bot print("Coordinates: ", x, ", ", y)
we will receive the wow-internal world coordinates i would call them
[21:17:59]Coordinates: -6756.0849581447 , -3143.1858598292
Kassandra (talk) 19:30, 26 October 2010 (UTC)