WoW:API GetSubZoneText: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
(cities as well)
Line 31: Line 31:
The event '''ZONE_CHANGED_INDOORS''' is fired (for example) when you walk from "Dun Morogh" into "Ironforge". This sample [http://www.wowace.com/wiki/WelcomeHome_-_Your_first_Ace2_Addon Your first Ace2 Addon] doesn't work when you walk that way cause it is missing the last zone change.
The event '''ZONE_CHANGED_INDOORS''' is fired (for example) when you walk from "Dun Morogh" into "Ironforge". This sample [http://www.wowace.com/wiki/WelcomeHome_-_Your_first_Ace2_Addon Your first Ace2 Addon] doesn't work when you walk that way cause it is missing the last zone change.


The event '''ZONE_CHANGED_INDOORS''' is fired when the zone name within an instance changes. In that case '''ZONE_CHANGED''' is not fired.
The event '''ZONE_CHANGED_INDOORS''' is fired when the zone name within an instance or city changes. In that case '''ZONE_CHANGED''' is not fired.

Revision as of 23:46, 20 December 2009

WoW API < GetSubZoneText

Returns the subzone name.

GetSubZoneText();

Arguments
none

Returns
String subzone
subzone
string, subzone name or an empty string (if not in a subzone).

Example
local subzone = GetSubZoneText();
message(subzone);
Result
Message box appears with current subzone text.

Description
Returns the subzone text, if the player is in a subzone. The event '"ZONE_CHANGED"' is triggered when the text changes. See also the related functions GetMinimapZoneText and GetZoneText.
Additional note: Blizzard also registers the event ZONE_CHANGED_INDOORS. If you know what this event is used for, please edit the page.

The event ZONE_CHANGED_INDOORS is fired (for example) when you walk from "Dun Morogh" into "Ironforge". This sample Your first Ace2 Addon doesn't work when you walk that way cause it is missing the last zone change.

The event ZONE_CHANGED_INDOORS is fired when the zone name within an instance or city changes. In that case ZONE_CHANGED is not fired.