WoW:API GetRealZoneText: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
({{wowapi}})
Line 1: Line 1:
<center>'''GetRealZoneText'''</center>
{{wowapi}} __NOTOC__


  ZoneName = GetRealZoneText();
  ZoneName = GetRealZoneText();
Line 5: Line 5:
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]]


----
==Parameters==
;''Arguments''
===Arguments===


:none
:none


----
===Returns===
;''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


----
==Example==
;''Example''


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


: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"
----
{{Template:WoW API}}

Revision as of 11:29, 25 June 2006

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"