WoW:API GetRealZoneText: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(changed to illustrate difference with instances.)
m (Example used GetRealZoneName() instead of GetRealZoneText())
Line 19: Line 19:


<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory -->
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory -->
   ZoneName = GetRealZoneName();
   ZoneName = GetRealZoneText();
   message("Zone:"..ZoneName);
   message("Zone:"..ZoneName);



Revision as of 22:58, 13 February 2005

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