WoW:Events/Z: Difference between revisions

105 bytes added ,  15 August 2023
m
Move page script moved page Events/Z to WoW:Events/Z without leaving a redirect
No edit summary
 
m (Move page script moved page Events/Z to WoW:Events/Z without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
{{evt|ZONE_CHANGED|Map}}
{{evt|ZONE_CHANGED|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.
Fired when the player enters a new zone in which the player is not indoors see also ZONE_CHANGED_INDOORS.  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, either this event is fired or ZONE_CHANGED_INDOORS or ZONE_CHANGED_NEW_AREA




{{evt|ZONE_CHANGED_INDOORS|Map}}
{{evt|ZONE_CHANGED_INDOORS|Map}}


Fired when a player enters a new zone within a city.
Fired when a player enters a new zone and enters a location which is inside (Instances appear to be counted as indoors) See also ZONE_CHANGED or ZONE_CHANGED_NEW_AREA as mutually exclusive events
 
For coding it would be advisable to register for all three events


{{evt|ZONE_CHANGED_NEW_AREA|Map}}
{{evt|ZONE_CHANGED_NEW_AREA|Map}}
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?
Anonymous user