Events / Player _ _ NOEDITSECTION _ _ Player related events . Fired when a player switches changes which talent group ( dual specialization ) is active . Fired when the player ' s available talent points change Fired when you gain XP from killing a creature or finishing a quest . Does not fire if you gain no xp from killing a creature . Fired when some chat messages about skills are displayed . arg1 formats are found in Blizzard ' s GlobalStrings . lua . Some possibilities : Fired when is used to disable low - level raids on the character . Fired when is used to enable low - level raids on the character . Fired when the player is camping Fires after the PLAYER _ CONTROL _ LOST event , when control has been restored to the player . Fires whenever the player is unable to control the character . Examples are when afflicted by fear , mind controlled , or when using a taxi . Fired when the player enters the world , enters / leaves an instance , or respawns at a graveyard . Also fires any other time the player sees a loading screen . To check if the player is entering an instance , check GetPlayerMapPosition to see if both X and Y are zero . Correction on the above comment : When PLAYER _ ENTERING _ WORLD fires , you ' ll notice that WORLD _ MAP _ UPDATE fires just before it . My instincts tell that leaving an instance puts the player in void space momentarily . So for the case that you are entering AND leaving an instance , GetPlayerMapPosition always returns the coordinates < nowiki > [ 0 , 0 ] < / nowiki > and hence there is no way to determine using the event PLAYER _ ENTERING _ WORLD if the player is entering an instance or not . When leaving an instance the following events fire ( ignoring party / raid events ) . Instances do have coordinates for units once the second WORLD _ MAP _ UPDATE event has fired . For the case of entering a battleground such as WSG , WORLD _ MAP _ UPDATE won ' t fire until you leave Silverwing Hold or Warsong Lumber Mill and you are outside . - - This event fires when a Unit ' s flags change ( eg : due to / afk , / dnd , etc . ) This appears to be fired when a player is gkicked , gquits , etc . Reference handler in [ FriendsFrame . lua ] . Fired when a player levels up . Fired whenever the player gains or loses money . Fired when you slay another player Fired whenever you enter combat , as normal regen rates are disabled during combat . This means that either you are in the hate list of a NPC or that you ' ve been taking part in a pvp action ( either as attacker or victim ) . Fired after ending combat , as regen rates return to normal . Useful for determining when a player has left combat . This occurs when you are not on the hate list of any NPC , or a few seconds after the latest pvp attack that you were involved with . Fired when the player ' s insignia is removed in a Battleground . Fired when the player changes between dual talent specs , and possibly when learning or unlearning talents ( ? ) . This event fires whenever a totem is dropped ( cast ) or destroyed ( either recalled or killed ) . Fired when the player starts or stops resting , i . e . when entering / leaving inns / major towns . Fired when the player ' s XP is updated ( due quest completion or killing ) . Fired when the playtime state changes . New in 3 . x . Fired when a rune ' s state switches from usable to un - usable or visa - versa . New in 3 . x . Fired when a rune ' s type is changed / updated . Fired when the client received a time played message . Fired whenever a units energy is affected . Removed in Patch 4 . 0 , use instead . Seen unit names : Fired when your character ' s XP exhaustion ( i . e . the amount of your character ' s rested bonus ) changes . Use GetXPExhaustion ( ) to query the current value . Fired when your character ' s reputation of some faction has changed . Fires whenever an item ' s durability status becomes yellow ( low ) or red ( broken ) . Signals that the durability frame needs to be updated . May also fire on any durability status change , even if that change doesn ' t require an update to the durability frame . Should fire whenever the durability of an item in the character ' s possession changes . ( ? ) ?