Originally Posted by XanDDemoX
I had a similar problem, needing to resolve zoneIndex within a city map within my addon.
|
Maybe I missunderstand what your wanting or trying to resolve (I didn't read all of the code), but if you mean the problem with the zoneIndex not matching where the player is for:
When the users map has a different map loaded
AND the user is in a city (or some poi) you can use:
Lua Code:
GetCurrentSubZonePOIIndices()
Returns: integer:nilable zoneIndex, integer:nilable poiIndex
That is not dependent on the map, but only works in a POI.