WoW:API GetZoneText: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m ({{wowapi}}, formatting / grammar)
mNo edit summary
Line 28: Line 28:
: Returns the zone text, in which the player currently is. The event '''ZONE_CHANGED_NEW_AREA''' is triggered when the text changes. See also the related functions [[API_GetSubZoneText|GetSubZoneText]] and [[API_GetMinimapZoneText|GetMinimapZoneText]].
: Returns the zone text, in which the player currently is. The event '''ZONE_CHANGED_NEW_AREA''' is triggered when the text changes. See also the related functions [[API_GetSubZoneText|GetSubZoneText]] and [[API_GetMinimapZoneText|GetMinimapZoneText]].
: Additional note: Blizzard also registers the event '''ZONE_CHANGED_INDOORS'''. If you know what this event is used for, please edit this page.
: Additional note: Blizzard also registers the event '''ZONE_CHANGED_INDOORS'''. If you know what this event is used for, please edit this page.
: This is just a guess, but I imagine it dismounts you for one.  -- lCine7ic

Revision as of 08:06, 9 September 2006

WoW API < GetZoneText

Returns the zone text.

GetZoneText();

Arguments
none

Returns
zonetext
String - zone name (localized).

Example
local zonetext = GetZoneText();
message(zonetext);
Result
Message box appears displaying your current zone.

Description
Returns the zone text, in which the player currently is. The event ZONE_CHANGED_NEW_AREA is triggered when the text changes. See also the related functions GetSubZoneText and GetMinimapZoneText.
Additional note: Blizzard also registers the event ZONE_CHANGED_INDOORS. If you know what this event is used for, please edit this page.
This is just a guess, but I imagine it dismounts you for one. -- lCine7ic