API GetRealZoneText

From Wowpedia
Jump to: navigation, search

Returns the map instance name.

zone = GetRealZoneText([instanceID])

Arguments

instanceID 
number (optional) - The InstanceID. When omitted, returns current map name.

Returns

zone 
string - The real name of the current map instance.

Example

Returns the current zone.

/dump GetRealZoneText()
> "Stormwind City"

Returns the real zone name of a specific map instance.

/dump GetRealZoneText(451)
> "Development Land"

Details

  • Returns the real name of the map instance which can be different from the one in the Minimap and from GetZoneText()
  • The returned zone name is localized to the game client's language.