WoW:API GetRealZoneText: Difference between revisions
Jump to navigation
Jump to search
({{wowapi}}) |
No edit summary |
||
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 example: GetInstanceInfo, GetRealZoneText, GetZoneText all return "Stormwind Stockade", however [[API GetMapNameByID|GetMapNameByID(]][[API GetCurrentMapAreaID|GetCurrentMapAreaID())]] now returns "The Stockade". As of 5.3, GetRealZoneText/GetZoneText do *not* always match GetMapNameByID or GetInstanceInfo. | |||
==Parameters== | ==Parameters== | ||
Line 15: | Line 17: | ||
==Example== | ==Example== | ||
local zoneName = GetRealZoneText(); | |||
message("Zone:".. | message("Zone: "..zoneName); | ||
:An error popup appears that could show the following text: "Zone: | :An error popup appears that could show the following text: "Zone: Stormwind Stockade" |
Revision as of 01:12, 19 June 2013
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 example: GetInstanceInfo, GetRealZoneText, GetZoneText all return "Stormwind Stockade", however GetMapNameByID(GetCurrentMapAreaID()) now returns "The Stockade". As of 5.3, GetRealZoneText/GetZoneText do *not* always match GetMapNameByID or GetInstanceInfo.
Parameters
Arguments
- none
Returns
- ZoneName
- String - The real name of an instance or the zone name
Example
local zoneName = GetRealZoneText(); message("Zone: "..zoneName);
- An error popup appears that could show the following text: "Zone: Stormwind Stockade"