WoW:API GetRealZoneText: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 28: Line 28:
----
----
{{Template:WoW API}}
{{Template:WoW API}}
[[Category:API Functions|GetRealZoneText]]
[[Category:API Location Functions|GetRealZoneText]]

Revision as of 15:00, 4 January 2006

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


Arguments
none

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

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

Template:WoW API