WoW API: GetCurrentMapZone
Jump to navigation
Jump to search
Returns the index of the zone the world map is currently showing
zoneIndex = GetCurrentMapZone();
Returns[edit]
- zoneIndex
- zoneIndex
- Number - The index of the currently displayed zone within the continent (obtained via GetMapZones(continentIndex)), or 0 if showing the entire continent.
Example[edit]
message(GetCurrentMapZone());
Result[edit]
10
Notes[edit]
- Note that the value returned represents the map display, and not necessarily the player's actual location. The SetMapToCurrentZone() function will reset the values to represent the player's location.
- Note that zone IDs returned by this function are not the same across all localizations of World of Warcraft.