View Single Post
07/27/15, 04:58 PM   #22
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by XanDDemoX View Post
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:
Lua Code:
  1. GetCurrentMapZoneIndex()
When the users map has a different map loaded AND the user is in a city (or some poi) you can use:
Lua Code:
  1. GetCurrentSubZonePOIIndices()
  2.     Returns: integer:nilable zoneIndex, integer:nilable poiIndex
That is not dependent on the map, but only works in a POI.