WoW:Events/Z: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
(removed events)
Line 16: Line 16:


Note: When this event fires, the UI may still think you're in the zone you just left.  Don't depend on GetRealZoneText() and similar functions to report the new zone in reaction to ZONE_CHANGED_NEW_AREA. (untested for similar events)
Note: When this event fires, the UI may still think you're in the zone you just left.  Don't depend on GetRealZoneText() and similar functions to report the new zone in reaction to ZONE_CHANGED_NEW_AREA. (untested for similar events)
{{evt|ZONE_UNDER_ATTACK|Communication,Map}}
This doesn't seem to be sent for WorldDefense - it comes in on CHAT_MSG_CHANNEL and totally skips the ZONE_UNDER_ATTACK code in the client.  Is the same true for LocalDefense?

Revision as of 22:59, 23 March 2010

Event API


"ZONE_CHANGED"
Category: Map
 

Fired when the player enters a new zone. Zones are the smallest named subdivions of the game world and are contained within areas (also called regions). Whenever the text over the minimap changes, this event is fired.


"ZONE_CHANGED_INDOORS"
Category: Map
 

Fired when a player enters a new zone within a city.


"ZONE_CHANGED_NEW_AREA"
Category: Map
 

Fired when the user enters a new zone and a new area. e.g. moving from Duskwood to Stranglethorn Vale. In interface terms, this is anytime you get a new set of channels. The ZONE_CHANGED events are mutually exclusive!

Note: When this event fires, the UI may still think you're in the zone you just left. Don't depend on GetRealZoneText() and similar functions to report the new zone in reaction to ZONE_CHANGED_NEW_AREA. (untested for similar events)