Wikia

WoWWiki

Changes: API GetRealZoneText

Edit

Back to page

Line 1: Line 1:
 
{{wowapi}} __NOTOC__
 
{{wowapi}} __NOTOC__
   
ZoneName = GetRealZoneText([unitId]);
+
ZoneName = GetRealZoneText();
   
 
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 [[API_GetZoneText|GetZoneText]]
 
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 [[API_GetZoneText|GetZoneText]]
   
==Arguments==
+
==Parameters==
* unitId (string) - the name of the unit to get the zone name for (optional). Default is 'player'.
+
===Arguments===
   
==Returns==
+
:none
  +
  +
===Returns===
 
:;ZoneName : String - The real name of an instance or the zone name
 
:;ZoneName : String - The real name of an instance or the zone name
   
Line 17: Line 17:
   
 
:An error popup appears that could show the following text: "Zone: The Stockade"
 
: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
 

Revision as of 00:45, October 9, 2012

WoW API < GetRealZoneText
ZoneName = GetRealZoneText();

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

Parameters

Arguments

none

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"

Around Wikia's network

Random Wiki