Fandom

WoWWiki

API GetCurrentMapZone

104,754pages on
this wiki
Add New Page
Talk0 Share
WoW API < GetCurrentMapZone

Returns the index of the zone the world map is currently showing

zoneIndex = GetCurrentMapZone();

ReturnsEdit

zoneIndex
zoneIndex 
Number - The index of the currently displayed zone within the continent (obtained via GetMapZones(continentIndex)), or 0 if showing the entire continent.

ExampleEdit

message(GetCurrentMapZone());

ResultEdit

10

NotesEdit

  • 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.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.