Recent changes Random page
GAMING
Gaming
 
StarCraft Wiki
Super Smash Wiki
Halopedia
Diablo Wiki
FFXIclopedia
Grand Theft Wiki
See more...

Events/C

From WoWWiki

Jump to: navigation, search
Main Menu


"CANCEL_LOOT_ROLL"
Category: Loot
 

Fired when a player cancels a roll on an item

arg1 : rollID
"CANCEL_SUMMON"
Category: Player
 
"CHANNEL_COUNT_UPDATE"
Category: Misc
 

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)

arg1 
channel id (item number in Blizzards ChannelFrame -> quod vide API GetChannelDisplayInfo)
arg2 
number of players in channel
"CHANNEL_FLAGS_UPDATED"
Category: Misc
 

Fired when user changes selected channel in Blizzards ChannelFrame

arg1 
channel id (item number in Blizzards ChannelFrame -> quod vide API GetChannelDisplayInfo)
"CHANNEL_PASSWORD_REQUEST"
Category: Misc
 

Fired when user is asked for a password (normally after trying to join a channel without a password or with a wrong one)

arg1 
channel name
"CHANNEL_ROSTER_UPDATE"
Category: Misc
 

Fired when user changes selected channel in Blizzards ChannelFrame or number of players in currently selected channel changes

arg1 
channel id (item number in Blizzards ChannelFrame -> quod vide API GetChannelDisplayInfo)
arg2 
number of players in channel
"CHANNEL_UI_UPDATE"
Category: Misc
 

Fired when Channel UI should change (e.g. joining / leaving a channel causes this event to fire)

"CHANNEL_VOICE_UPDATE"
Category: Misc
 
arg1 
unknown
arg2 
unknown
arg3 
unknown
"CHARACTER_POINTS_CHANGED"
Category: Player
 

Fired when the player's available talent points change

arg1 
indicates number of talent points changed: -1 indicates one used (learning a talent), 1 indicates one gained (leveling)
"CHAT_MSG_ADDON"
Category: Communication
 

(new with patch 1.12)

Fired when the client receives a message from SendAddonMessage

arg1 
prefix
arg2 
message
arg3 
distribution type ("PARTY", "RAID", "GUILD", "BATTLEGROUND" or "WHISPER")
arg4 
sender


"CHAT_MSG_AFK"
Category: Communication
 

Fired when the client receives an AFK auto-response

arg1 
AFK response message
arg2 
author
"CHAT_MSG_BATTLEGROUND"
Category: Communication,Battleground
 

(new with patch 1.12)

Fired when a message is received through the battleground group channel

arg1 
chat message
arg2 
author
arg3 
language


"CHAT_MSG_BATTLEGROUND_LEADER"
Category: Communication,Battleground
 

(new with patch 1.12)

Fired when a message is received from the leader of the battleground group

arg1 
chat message
arg2 
author
arg3 
language
"CHAT_MSG_BG_SYSTEM_ALLIANCE"
Category: Communication,Battleground
 

Fired for alliance specific events in the battleground such as assaulting a graveyard.

arg1 
Battleground Message (eg. "The Alliance has taken the Blacksmith!")


"CHAT_MSG_BG_SYSTEM_HORDE"
Category: Communication,Battleground
 

Fired for horde specific events in the battleground such as assaulting a graveyard.

arg1 
Battleground Message (eg. "The Horde has taken the Blacksmith!")


"CHAT_MSG_BG_SYSTEM_NEUTRAL"
Category: Communication,Battleground
 

Fired for non faction specific events in the battlegrounds such as the battle start announcement.

arg1 
Battleground Message (eg. "Let the battle for Warsong Gulch begin.")
"CHAT_MSG_CHANNEL"
Category: Communication
 

Fired when the client receives a channel message.

arg1 
chat message
arg2 
author
arg3 
language
arg4 
channel name with number ex: "1. General - Stormwind City"
  • zone is always current zone even if not the same as the channel name
arg5 
target
  • second player name when two users are passed for a CHANNEL_NOTICE_USER (E.G. x kicked y)
arg6 
AFK/DND/GM "CHAT_FLAG_"..arg6 flags
arg7 
zone ID used for generic system channels (1 for General, 2 for Trade, 22 for LocalDefense, 23 for WorldDefense and 26 for LFG)
  • not used for custom channels or if you joined an Out-Of-Zone channel ex: "General - Stormwind City"
arg8 
channel number
arg9 
channel name without number (this is _sometimes_ in lowercase)
  • zone is always current zone even if not the same as the channel name
"CHAT_MSG_CHANNEL_JOIN"
Category: Communication
 

Fired when someone joins a chat channel you are in

arg1 
seems to be empty
arg2 
Name of the player that joined
arg3 
seems to be empty again
arg4 
Number and name of the channel (e.g. "5. MyOwnChannel")
arg8 
Channel number
arg9 
channel name without number (this is sometimes in lowercase)
"CHAT_MSG_CHANNEL_LEAVE"
Category: Communication
 

Fired when a player leaves a channel that you are currently inside.

arg1 
Appears to be left blank
arg2 
Player name that left
arg4 
Channel name with number
arg7 
Appears to be left zero and no longer the channel number
arg8 
Channel number
arg9 
Channel name without number
"CHAT_MSG_CHANNEL_LIST"
Category: Communication
 

Fired when ListChannels() or ListChannelByName() is called, and the message is displayed in the chat frame.

arg1
The list of values displayed by ListChannels() or ListChannelByName() in one string.
arg4
The number and name of the channel the message came from. ie: "1. General"


"CHAT_MSG_CHANNEL_NOTICE"
Category: Communication
 

Fired when you enter or leave a chat channel (or a channel was recently throttled)

arg1 
type ( "YOU_JOINED" if you joined a channel, or "YOU_LEFT" if you left, or "THROTTLED" if channel was throttled )
arg4 
Channel name with number (e.g. "6. TestChannel")
arg7 
Channel Type (e.g. 0 for any user channel, 1 for system-channel "General", 2 for "Trade")
arg8 
Channel Number
arg9 
Channel name without number
"CHAT_MSG_CHANNEL_NOTICE_USER"
Category: Communication
 

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.

arg1 
type ("ANNOUNCEMENTS_OFF", "ANNOUNCEMENTS_ON", "BANNED", "CHANNEL_OWNER", "INVALID_NAME", "INVITE", "MODERATION_OFF", "MODERATION_ON", "MUTED", "NOT_MEMBER", "NOT_MODERATED" )
arg2 
If arg5 has a value then this is the user affected ( eg: "Player Foo has been kicked by Bar" ), if arg5 has no value then it's the person who caused the event ( eg: "Channel Moderation has been enabled by Bar" )
arg4 
Channel name with number
arg5 
Player that caused the event (eg "Player Foo has been kicked by Bar" )
"CHAT_MSG_COMBAT_CREATURE_VS_CREATURE_HITS"
Category: Combat
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired when a creature hits another creature. Note that this can fire for players if the server is out of sync.

arg1 
chat message


"CHAT_MSG_COMBAT_CREATURE_VS_CREATURE_MISSES"
Category: Combat
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired when a creature misses another creature. Note that this can fire for players if the server is out of sync.

arg1 
chat message


"CHAT_MSG_COMBAT_CREATURE_VS_PARTY_HITS"
Category: Combat
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired when a creature hits a party member

arg1 
chat message
"CHAT_MSG_COMBAT_CREATURE_VS_PARTY_MISSES"
Category: Combat
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired when a creature misses a party member

arg1 
chat message


"CHAT_MSG_COMBAT_CREATURE_VS_SELF_HITS"
Category: Combat,Pet
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired when a creature hits you or your pet

arg1 
chat message


"CHAT_MSG_COMBAT_CREATURE_VS_SELF_MISSES"
Category: Combat,Pet
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired when a creature misses you or your pet

arg1 
chat message
"CHAT_MSG_COMBAT_ERROR"
Category: Combat
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT
"CHAT_MSG_COMBAT_FACTION_CHANGE"
Category: Combat
 

Fires when player's faction changes. ie: "Your reputation with Timbermaw Hold has very slightly increased." -- NEW 1.9


"CHAT_MSG_COMBAT_FRIENDLYPLAYER_HITS"
Category: Combat
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT
"CHAT_MSG_COMBAT_FRIENDLYPLAYER_MISSES"
Category: Combat
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT
"CHAT_MSG_COMBAT_FRIENDLY_DEATH"
Category: Combat,Death
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired when a friendly player dies

arg1 
chat message (format: "%s dies")
"CHAT_MSG_COMBAT_HONOR_GAIN"
Category: Honor,Combat
 

Fired when the player gains any amount of honor, anything from an honorable kill to bonus honor awarded.

arg1 
chat message (format: "%s dies, honorable kill Rank: %s (Estimated Honor Points: %d)" or "You have been awarded %d honor.")
"CHAT_MSG_COMBAT_HOSTILEPLAYER_HITS"
Category: Combat
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT
"CHAT_MSG_COMBAT_HOSTILEPLAYER_MISSES"
Category: Combat
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT
"CHAT_MSG_COMBAT_HOSTILE_DEATH"
Category: Combat,Death
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

If you provide the killing blow, you may or may not get a 'unit dies' event but you will get a 'slain unit' event, the 'slain unit' event is fired before the 'unit dies' message is, if you do not provide the killing blow you will get a 'unit dies'.

Fired when any hostile NPC or player dies near you.

arg1 
Message (eg: "Snowshow Rabbit dies." )


Fired when you are the killing blow against any NPC or player

arg1 
Message (eg: "You have slain Snowshow Rabbit!")
"CHAT_MSG_COMBAT_MISC_INFO"
Category: Misc
 

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)

"CHAT_MSG_COMBAT_PARTY_HITS"
Category: Combat
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT
"CHAT_MSG_COMBAT_PARTY_MISSES"
Category: Combat
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT
"CHAT_MSG_COMBAT_PET_HITS"
Category: Combat,Pet
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT
"CHAT_MSG_COMBAT_PET_MISSES"
Category: Combat,Pet
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT
"CHAT_MSG_COMBAT_SELF_HITS"
Category: Combat
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired when a you hit a creature. Also called when you hurt yourself by falling, drowning or burning on a campfire.

arg1 
chat message


"CHAT_MSG_COMBAT_SELF_MISSES"
Category: Combat
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired when a you miss a creature

arg1 
chat message
"CHAT_MSG_COMBAT_XP_GAIN"
Category: Player
 

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.

arg1 
chat message


"CHAT_MSG_DND"
Category: Communication
 

Fired when the client receives a Do-Not-Disturb auto-response

arg1 
DND response message
arg2 
author


"CHAT_MSG_EMOTE"
Category: Communication
 

Fired on sending or revicing a custom emote (one used by /e, /emote or a send chat message command with the emote flag)

arg1 
Message that was sent/received
arg2 
Name of the player who sent the message
"CHAT_MSG_GUILD"
Category: Communication,Guild
 

Fired when a message is sent or received in the Guild channel.

arg1 
Message that was sent
arg2 
Author
arg3 
Language that the message was sent in


"CHAT_MSG_IGNORED"
Category: Communication
 

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.

arg1 
Character name of who you tried to message
arg2 
Character name of who you tried to message


"CHAT_MSG_LOOT"
Category: Loot
 

Fired when loot text is sent to the chat window (someone selects need, greed, passes, rolls, receives)

arg1 
Chat message
"CHAT_MSG_MONEY"
Category: Loot
 

Fired when a unit loots money.

arg1 
Chat message


"CHAT_MSG_MONSTER_EMOTE"
Category: Communication
 

Fired for emotes from a monster, such as 'Murloc Forager attempts to run away in fear!'

arg1 
The body of the emote: '%s attempts to run away in fear!'
arg2 
The name of the monster: 'Murloc Forager'

(Note: As of 1.12 arg1 now contains a %s string variable for where the mob name should be placed)

"CHAT_MSG_MONSTER_SAY"
Category: Communication
 

Fired when a NPC says something.

arg1 
Message
arg2 
NPC name
arg3 
Language used


"CHAT_MSG_MONSTER_WHISPER"
Category: Communication
 

Fired when a NPC whispers you something

"CHAT_MSG_MONSTER_YELL"
Category: Communication
 

Fired when a NPC yells, example would be the yells during an Alterac Valley from the Herald or a raid boss.

arg1 
Message
arg2 
NPC Name (eg: Onyxia)


"CHAT_MSG_OFFICER"
Category: Communication
 

Fired when a message is sent or received in the Guild Officer channel.

arg1 
Message that was received
arg2 
Author
arg3 
Language used


"CHAT_MSG_PARTY"
Category: Communication,Party
 

Fired when a message is sent or received in the Party channel.

arg1 
Message that was received
arg2 
Author
arg3 
Language used
"CHAT_MSG_RAID"
Category: Communication,Party
 

Fired when a message is sent or received in the Raid.

arg1 
chat message
arg2 
author
arg3 
language


"CHAT_MSG_RAID_BOSS_EMOTE"
Category: Communication
 
arg1 
emote message
arg2 
Name of the boss


"CHAT_MSG_RAID_LEADER"
Category: Communication,Party
 

Fired when a message is sent or received from the raid leader.

arg1 
chat message
arg2 
author
arg3 
language
"CHAT_MSG_RAID_WARNING"
Category: Communication,Party
 

Fired when a warning message is sent or received from the raid leader.

arg1 
chat message
arg2 
author
arg3 
language
"CHAT_MSG_SAY"
Category: Communication
 

Fired when a message is sent or received in the Say channel.

arg1 
chat message
arg2 
author
arg3 
language

Example:
Place this:RegisterEvent("CHAT_MSG_SAY"); in the <OnLoad>/</OnLoad> section of your MyMod.xml file.
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:

function MyMod_Say(event, arg1, arg2, arg3)
  PrevMsg = arg1;
  PrevPlyr = arg2;
  PrevLang = arg3;
end

This would store the previous message, player who said it, and language it was said in into some variables.

"CHAT_MSG_SKILL"
Category: Player,Skill
 

Fired when some chat messages about skills are displayed.

arg1 
The content of the chat message.

arg1 formats are found in Blizzard's GlobalStrings.lua. Some possibilities:

  • ERR_SKILL_GAINED_S (eg. "You have gained the Blacksmithing skill.")
  • ERR_SKILL_UP_SI (eg. "Your skill in Cooking has increased to 221.")


"CHAT_MSG_SPELL_AURA_GONE_OTHER"
Category: Buff,Spell
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired whenever a buff or debuff wears off of a mob, npc, or another player. Does not fire for party members. Examples: Thorns, Trueshot Aura, Recently Bandaged. arg1 is the full chat text, i.e. "Thorns fades from Someguy."


"CHAT_MSG_SPELL_AURA_GONE_SELF"
Category: Buff,Spell
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired whenever a buff or debuff wears off - examples, Prowl, Mark of the Wild, Cat Form, or Disarm. arg1 is the full chat text, i.e. "Prowl fades from you."

"CHAT_MSG_SPELL_BREAK_AURA"
Category: Buff,Spell
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT
"CHAT_MSG_SPELL_CREATURE_VS_CREATURE_BUFF"
Category: Buff,Combat,Spell
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired when a mob begins casting a beneficial spell and again when the casting is completed. arg1 is the full combat chat text. Examples: Mob begins to cast Heal. Mob's Heal heals Mob for 20.


"CHAT_MSG_SPELL_CREATURE_VS_CREATURE_DAMAGE"
Category: Combat,Spell,Pet
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired when a creature begins to cast a damage spell or when a creature casts a damage spell on a raid member who is not in your group. Also triggered when a pet is damaged by a creature's spell.

Ex: Ragnaros' Wrath of Ragnaros hits PlayerName for 1000.


"CHAT_MSG_SPELL_CREATURE_VS_PARTY_BUFF"
Category: Combat,Spell
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT
"CHAT_MSG_SPELL_CREATURE_VS_PARTY_DAMAGE"
Category: Combat,Spell
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT
"CHAT_MSG_SPELL_CREATURE_VS_SELF_BUFF"
Category: Combat,Spell
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT
"CHAT_MSG_SPELL_CREATURE_VS_SELF_DAMAGE"
Category: Combat,Spell
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired when a mob completes casting a harmful spell on you. (The message for the mob beginning to cast is given by CHAT_MSG_SPELL_CREATURE_VS_CREATURE_DAMAGE.)

arg1
full combat chat text and includes results of the cast or skill use (e.g. hit, resist, dodge).

Examples:

Mob's Poison hits you for 10.
Mob's Melee Special was dodged.
Mob's Nuke was resisted.


"CHAT_MSG_SPELL_DAMAGESHIELDS_ON_OTHERS"
Category: Combat,Buff,Spell
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT
"CHAT_MSG_SPELL_DAMAGESHIELDS_ON_SELF"
Category: Combat,Buff,Spell
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired when a buff (or possibly item) damages an opponent in response to an action... IE Thorns.


"CHAT_MSG_SPELL_FAILED_LOCALPLAYER"
Category: Spell
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired when you fail to successfully cast a spell, for one of several reasons. arg1 is the full combat chat text and includes the reason. Examples: You fail to cast Heal: Interrupted. You fail to perform Bear Form: Not enough mana.

"CHAT_MSG_SPELL_FRIENDLYPLAYER_BUFF"
Category: Buff
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired when a non-hostile player begins casting a spell or using a skill.

arg1
the full combat chat text.

Some examples:

Someguy casts Reinforced Armor +40 on Someguys's Pants.
Someguy begins to cast Elixir of Whatever.
Someguy begins to cast Conjure Food.
Someguy begins to cast Summon Felsteed.


"CHAT_MSG_SPELL_FRIENDLYPLAYER_DAMAGE"
Category: Combat,Spell
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT
"CHAT_MSG_SPELL_HOSTILEPLAYER_BUFF"
Category: Combat,Spell
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT

Fired on multiple silly occasions.

arg1; the full combat log text

Example:

Runaway 's Flash of Light heals you for 1350.


"CHAT_MSG_SPELL_HOSTILEPLAYER_DAMAGE"
Category: Combat,Spell
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT
"CHAT_MSG_SPELL_ITEM_ENCHANTMENTS"
Category: Spell,Item
 
Replaced in 2.4.0 with COMBAT_LOG_EVENT