Events / C Fired when the calendar API is busy or free Fired after calling CalendarOpenEvent once the event data has been retrieved from the server Fired after CalendarEventSortInvites once the invite list has been sorted . Fired when a player cancels a roll on an item Fired when number of players in a channel changes but only if this channel is visible in ChannelFrame ( it mustn ' t be hidden by a collapsed category header ) Fired when user changes selected channel in Blizzards ChannelFrame Fired when user is asked for a password ( normally after trying to join a channel without a password or with a wrong one ) Fired when user changes selected channel in Blizzards ChannelFrame or number of players in currently selected channel changes Fired when Channel UI should change ( e . g . joining / leaving a channel causes this event to fire ) Fired when the player ' s available talent points change Fired when a player in your vicinity completes an achievement . < Added in Patch 1 . 12 > < br > Fired when the client receives a message from SendAddonMessage < br > Since patch 4 . 1 , you must register the addon prefix with RegisterAddonMessagePrefix otherwise , events triggered by other players are blocked . Fired when the client receives an AFK auto - response < Added in Patch 1 . 12 > < br > Fired when a message is received through the battleground group channel < Added in Patch 1 . 12 > < br > Fired when a message is received from the leader of the battleground group Fired for alliance specific events in the battleground such as assaulting a graveyard . Fired for horde specific events in the battleground such as assaulting a graveyard . Fired for non faction specific events in the battlegrounds such as the battle start announcement . Fired when the Bnet Real ID Broadcast Message is changed or from API BNSetCustomMessage Fired when the client receives a channel message . Fired when someone joins a chat channel you are in Fired when a player leaves a channel that you are currently inside . Fired when ListChannels ( ) or ListChannelByName ( ) is called , and the message is displayed in the chat frame . Fired when you enter or leave a chat channel ( or a channel was recently throttled ) Fired when something changes in the channel like moderation enabled , user is kicked , announcements changed and so on . CHAT _ * _ NOTICE in GlobalStrings . lua has a full list of available types . Fires when player ' s faction changes . i . e . : " Your reputation with Timbermaw Hold has very slightly increased . " - - NEW 1 . 9 Fired when the player gains any amount of honor , anything from an honorable kill to bonus honor awarded . Fires when your equipment takes durability loss from death , and likely other situations as well . ( no longer fires on reputation changes as of 1 . 9 ) 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 the client receives a Do - Not - Disturb auto - response Fired on sending or receiving a custom emote ( one used by / e , / emote or a send chat message command with the emote flag ) Fired when a message is sent or received in the Guild channel . Fired when a guild member completes an achievement . Fired when you whisper a player that is ignoring you When testing this event the character name is sent twice as arg1 and arg2 , Blizzard appears to use arg2 and ignores arg1 . Fired when loot text is sent to the chat window ( someone selects need , greed , passes , rolls , receives ) . This also fires messages like " Person creates < item > " via tradeskills , and " Person receives < item > " via a trade window . Fired when a unit loots money . Fired for emotes from a monster , such as ' Murloc Forager attempts to run away in fear ! ' Fired when a NPC says something . Fired when a NPC whispers you something Fired when a NPC yells , example would be the yells during an Alterac Valley from the Herald or a raid boss . Fired when a message is sent or received in the Guild Officer channel . Fired when a message is sent or received in the Party channel . Fired when a message is sent or received by the party leader . Fired when a message is sent or received in the Raid . Fired when a message is sent or received from the raid leader . Fired when a warning message is sent or received from the raid leader . Fired when a message is sent or received in the Say channel . Example : < br > Place " this : RegisterEvent ( " CHAT _ MSG _ SAY " ) ; " in the < OnLoad > / < / OnLoad > section of your MyMod . xml file . < br > Then , have an " if ( event = = " CHAT _ MSG _ SAY " ) then MyMod _ Say ( event , arg1 , arg2 , arg3 ) ; end " line , or something like it , in the < OnEvent > / < / OnEvent > section of your MyMod . xml file . Then , have a function like the following in your MyMod . lua file : < br > This would store the previous message , player who said it , and language it was said in into some variables . Fired when some chat messages about skills are displayed . arg1 formats are found in Blizzard ' s GlobalStrings . lua . Some possibilities : Fired when a system chat message ( they are displayed in yellow ) is received . arg1 formats are found in Blizzard ' s GlobalStrings . lua . Some possibilities : " Note : " Be very careful with assuming when the event is actually sent . For example , " Quest accepted : Quest Title " is sent before the quest log updates , so at the time of the event the player ' s quest log does not yet contain the quest . Similarly , " Quest Title completed . " is sent before the quest is removed from the quest log , so at the time of the event the player ' s quest log still contains the quest . Fired when a target marker is set . This is used by the chat filter , if the player is watching target markers in chat output ( in the Filters right - click menu , under Other , look for Target Icons ) . arg1 is formatted from the global variable TARGET _ ICON _ SET , which by default in an English client is set to the string The other arguments are unused . Fired for emotes with an emote token . / dance , / healme , etc Fired when a whisper is received from another player . Fired when the player sends a whisper to another player Fired when a message is sent or received in the Yell channel . Fired when the guild dress frame is closed Supposed to fire whenever the world map is closed / hidden , though it doesn ' t . A workaround for this is to use " WORLD _ MAP _ UPDATE " to set a global variable to use elsewhere with an OnUpdate function ; e . g . When the second function is called , it checks to see if the map has been opened / closed ( Map _ Changed ) , then checks to see if the map is currently open ( WorldMapFrame ) . < br > The effect is a code that executes only when the map closes . < Added in Patch 2 . 4 . 0 > See API COMBAT LOG EVENT . < br > This event fires only if it matches current global combat log filter settings . < Added in Patch 2 . 4 . 0 > See API COMBAT LOG EVENT . < br > AddOns wanting to parse all events the moment they happen should register for this event . < Added in Patch 1 . 12 > < br > Fired when the currently watched entity ( as set by the function ) takes or avoids damage , receives heals , gains mana / energy / rage , etc . This event is used by Blizzard ' s floating combat text addon . arg3 does NOT return amount absorbed since at least patch 2 . 4 Fired when the character logs in and the server sends the greeting text . ( Currently " Scammers are trying harder than ever to phish for your account information ! . . . " ) This is not fired when reloading the UI . No arguments . < Added in Patch 3 . 0 ( WotLK ) > < Added in Patch 3 . 0 ( WotLK ) > If the type is nil , the UI should update if it ' s visible , regardless of which type it ' s managing . If the type is non - nil , then it will be either " CRITTER " or " MOUNT " and that signifies that the active companion has changed and the UI should update if it ' s currently showing that type . This event fires when any of the following conditions occur : " Range " appears to be at least 40 yards . If you are in a major city , expect this event to fire constantly . < Added in patch 3 . 3 > < br > Fires when you try to roll " disenchant " for and item which Binds on Pickup . Note that arg2 should always be 3 . In other cases the event " CONFIRM _ LOOT _ ROLL " would be fired . Fires when you try to roll " need " or " greed " for and item which Binds on Pickup . Note that arg2 should never be 3 . In that case the event " CONFIRM _ DISENCHANT _ ROLL " would be fired . Fires when the user selects the " Yes , I do . " confirmation prompt after speaking to a class trainer and choosing to unlearn their talents . Accept durability ( ! ) loss in exchange for his body back . " History : Way back before WoW was released , you lost experience rather than durability when you resurrected at a spirit healer . " Fired when the player is in range of his body . Fired when the player is out of range of his body . Fired when the criteria for an achievement has changed . Fired when the spell being cast is changed . Fired when the player right - clicks terrain , and on mouseover before UPDATE _ MOUSEOVER _ UNIT and on mouseout after UPDATE _ MOUSEOVER _ UNIT . This excludes doodads , player characters , and NPCs that lack interaction . Fired when a CVar is changed