Wikia

WoWWiki

Changes: API GetRealZoneText

Edit

Back to page

Line 3: Line 3:
 
ZoneName = 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 [[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]].
  +
  +
As of 4.? something this is no longer accurate, These appear to return the same thing for at least Stockade. For example GetInstanceInfo, GetRealZoneText, GetZoneText all return "Stormwind Stockade", however [[API GetMapNameByID|GetMapNameByID]]([[API GetCurrentAreaMap|GetCurrentAreaMap]]()) returns "The Stockade".
   
 
==Parameters==
 
==Parameters==

Revision as of 23:45, June 18, 2013

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.

As of 4.? something this is no longer accurate, These appear to return the same thing for at least Stockade. For example GetInstanceInfo, GetRealZoneText, GetZoneText all return "Stormwind Stockade", however GetMapNameByID(GetCurrentAreaMap()) returns "The Stockade".

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