WoW:API GetRealZoneText: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Put back category)
(changed to illustrate difference with instances.)
Line 3: Line 3:
  ZoneName = GetRealZoneText();
  ZoneName = GetRealZoneText();


Returns the real name of the Zone, e.g. Loch Modan or Elwynn Forest.
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]]


----
----
Line 13: Line 13:
;''Returns''
;''Returns''


:;ZoneName : String - Returns the real name of the Zone, e.g. Loch Modan or Elwynn Forest.
:;ZoneName : String - The real name of an instance or the zone name


----
----
Line 24: Line 24:
;''Result''
;''Result''


:An error popup appears that could show the following text: "Zone: Loch Modan"
:An error popup appears that could show the following text: "Zone: The Stockade"


----
----
{{Template:WoW API}}
{{Template:WoW API}}
[[Category:API Location Functions|GetRealZoneText]]
[[Category:API Location Functions|GetRealZoneText]]

Revision as of 06:29, 22 January 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 = GetRealZoneName();
 message("Zone:"..ZoneName);
Result
An error popup appears that could show the following text: "Zone: The Stockade"

Template:WoW API