Wikia

WoWWiki

API GetRealZoneText

Talk0
101,295pages on
this wiki
Revision as of 22:43, October 8, 2012 by Celess22 (Talk | contribs)

WoW API < GetRealZoneText
ZoneName = GetRealZoneText([unitId]);

When in an instance, returns the real name of the instance, not the name in the Minimap. (e.g. returns "The Stockade" whereas GetZoneText() returns "Stormwind Stockade"). Otherwise is identical to GetZoneText

Arguments

  • unitId (string) - the name of the unit to get the zone name for (optional). Default is 'player'.

Returns

ZoneName 
String - The real name of an instance or the zone name

Example

 ZoneName = GetRealZoneText();
 message("Zone:"..ZoneName);
An error popup appears that could show the following text: "Zone: The Stockade"

Details

Patches

  • patch 5.0.4? - no longer returns same name as instance name when in an instance, returns the zone name, even zones of an instance like parts of a battleground
  • patch 5.0.4? - optional unitId parameter new

Around Wikia's network

Random Wiki