Events/Unit Info
From WoWWiki
| |||||||||||||||||||||
|
Unit Info related events |
"PLAYER_FOCUS_CHANGED"
| Category: Combat,Unit Info |
|
This event is fired whenever the player's focus target (/focus) is changed, including when the focus target is lost or cleared.
|
"PLAYER_TARGET_CHANGED"
| Category: Combat,Unit Info |
|
This event is fired whenever the player's target is changed, including when the target is lost. The arg1--arg9 values are undefined; they will be whatever they were in the previous event, i.e. if you click a unit portrait to change target, arg1 will be "LeftButton" - if you click a macro button, it will be the macro script, etc.
|
"RAID_TARGET_UPDATE"
| Category: Party,Unit Info |
|
New in 1.11. Fired when a raid target icon is changed or removed. Also fired when player join or leave a party or raid. arg1 is who gets updated. Note: Does not get triggered if a mob wearing a raid target icon dies (the icon is removed from that mob, however.) Question/Correction: I can not pick up arg1 at all from this event. Change in 1.12? Please clarify if possible. Question/Correction: You are correct. The only arg is 1, which is the event name itself. --Robinson 02:34, 15 January 2007 (CDT)
|
"UNIT_ATTACK"
| Category: Unit Info |
|
Fired when a units attack is affected (such as the weapon being swung). First argument returned appears to be which unit this even applies to (for example, 'player').
|
"UNIT_ATTACK_POWER"
| Category: Unit Info |
|
Fired when a unit's attack power changes.
|
"UNIT_ATTACK_SPEED"
| Category: Unit Info |
|
Fired when your attack speed is being listed or affected
|
"UNIT_AURA"
| Category: Unit Info,Buff |
|
Fired when a buff, debuff, status, or item bonus was gained by or faded from a player, pet, NPC, or mob.
1-28-06: This event IS NOT fired when changing targets any longer.
|
"UNIT_AURASTATE"
| Category: Unit Info,Buff |
|
Seems like the same as UNIT_AURA above (including arguments) but only for short buffs. As a Paladin, it was triggered each time I gained a 30 second buff (Paladin Seals), lost/canceled it, or switched targets from another player to myself. Needs more testing with other classes etc.
|
"UNIT_CLASSIFICATION_CHANGED"
| Category: Unit Info |
|
|
"UNIT_COMBAT"
| Category: Unit Info,Combat |
|
Fired when an npc or player participates in combat and takes damage
|
"UNIT_COMBO_POINTS"
| Category: Unit Info,Combat |
|
|
"UNIT_DAMAGE"
| Category: Unit Info |
|
Fired when the units melee damage changes. Be warned that this often gets fired multiple times, for example when you change weapons.
|
"UNIT_DEFENSE"
| Category: Unit Info |
|
Fired when a units defense is affected
|
"UNIT_DISPLAYPOWER"
| Category: Unit Info |
|
Fired when the unit's mana stype is changed.
|
"UNIT_DYNAMIC_FLAGS"
| Category: Unit Info |
|
Fired when the unit's flags are changed.
|
"UNIT_ENERGY"
| Category: Unit Info,Player |
|
Fired whenever a units energy is affected.
Seen unit names:
|
"UNIT_FACTION"
| Category: Unit Info |
|
Fired when a target's faction is announced.
|
"UNIT_FLAGS"
| Category: Unit Info |
|
|
"UNIT_FOCUS"
| Category: Unit Info |
|
Same as UNIT_MANA, except for certain classes. Hunter used to use focus, but now they use mana. But it is still used when a pets energy changes.
|
"UNIT_HAPPINESS"
| Category: Unit Info,Pet |
|
Fired when the Pet Happiness changes. Used in PetFrame.lua to decide when to update the happiness display.
|
"UNIT_HEALTH"
| Category: Unit Info |
|
Fired whenever a units health is affected. This event may be sent more than once to represent the same change if the affected entity can be accessed through multiple UnitIDs. For example, two UNIT_HEALTH events will be sent for raid party members who are also in your party group. UNIT_HEALTH events are sent for raid and party members regardless of their distance from the character of the host. This makes UNIT_HEALTH extremely valuable to monitor party and raid members.
Seen unit names:
|
"UNIT_INVENTORY_CHANGED"
| Category: Unit Info,Item |
|
Fired when the player equips or unequips an item. This can also be called if your target, mouseover or party member changes equipment (untested for hostile targets). This event is also raised when a new item is placed in the player's containers, taking up a new slot. If the new item(s) are placed onto an existing stack or when two stacks already in the containers are merged, the event is not raised. When an item is moved inside the container or to the bank, the event is not raised. The event is raised when an existing stack is split inside the player's containers. If multiple slots are equipped/unequipped at once it only fires once now. However it still fires many times (potentially hundreds) while zoning or logging in.
|
"UNIT_LEVEL"
| Category: Unit Info |
|
Fired whenever the level of a unit is submitted (e.g. when clicking a unit or someone joins the party)
|
"UNIT_LOYALTY"
| Category: Unit Info |
|
|
"UNIT_MANA"
| Category: Unit Info |
|
Fired whenever a unit's mana changes either by usage or by regeneration. The event is also called when a unit is clicked on. It only gets called once, unlike its more important brother, UNIT_HEALTH.
|
"UNIT_MAXENERGY"
| Category: Unit Info |
|
Fired when a unit's maximum energy changes.
|
"UNIT_MAXFOCUS"
| Category: Unit Info |
|
Fired when a unit's maximum focus changes.
|
"UNIT_MAXHAPPINESS"
| Category: Unit Info |
|
Not studied
|
"UNIT_MAXHEALTH"
| Category: Unit Info |
|
Fired when a unit's maximum health changes.
|
"UNIT_MAXMANA"
| Category: Unit Info |
|
Fired when a unit's maximum mana changes.
|
"UNIT_MAXRAGE"
| Category: Unit Info |
|
Fired when a unit's maximum rage changes.
|
"UNIT_MAXRUNIC_POWER"
| Category: Unit Info |
|
Added in 3.0. Fired when a unit's maximum runic power changes.
|
"UNIT_MODEL_CHANGED"
| Category: Unit Info |
|
Fired when the unit's 3d model changes.
|
"UNIT_NAME_UPDATE"
| Category: Unit Info |
|
Fired when a unit's name changes.
|
"UNIT_PET"
| Category: Unit Info,Pet |
|
Fired when a unit's pet changes.
|
"UNIT_PET_EXPERIENCE"
| Category: Unit Info,Pet |
|
Fired when the pet's experience changes.
|
"UNIT_PET_TRAINING_POINTS"
| Category: Unit Info,Pet |
|
|
"UNIT_PORTRAIT_UPDATE"
| Category: Unit Info |
|
Fired when a units portrait changes.
|
"UNIT_PVP_UPDATE"
| Category: Unit Info |
|
-removed in 1.11, use UNIT_FACTION instead. Fired when the UI is loaded, and when player PVP status is changed or updated.
|
"UNIT_QUEST_LOG_CHANGED"
| Category: Unit Info,Quest |
|
Fired whenever the quest log changes. (Frequently, but not as frequently as QUEST_LOG_UPDATE)
Seen unit names:
|
"UNIT_RAGE"
| Category: Unit Info |
|
Fired whenever a units rage is affected.
Seen unit names:
|
"UNIT_RANGEDDAMAGE"
| Category: Unit Info |
|
Fired when a unit's ranged damage changes.
|
"UNIT_RANGED_ATTACK_POWER"
| Category: Unit Info |
|
Fired when a unit's ranged attack power changes.
|
"UNIT_RESISTANCES"
| Category: Unit Info |
|
Fired when the units resistance changes
|
"UNIT_RUNIC_POWER"
| Category: Unit Info |
|
Added in 3.0. Fired when a unit's runic power changes.
|
"UNIT_SPELLCAST_CHANNEL_START"
| Category: Unit Info,Spell |
|
Added in 2.0. Fired when a unit begins channeling in the course of casting a spell. Received for party/raid members as well as the player.
|
"UNIT_SPELLCAST_CHANNEL_STOP"
| Category: Unit Info,Spell |
|
Added in 2.0. Fired when a unit stops channeling. Received for party/raid members as well as the player.
|
"UNIT_SPELLCAST_CHANNEL_UPDATE"
| Category: Unit Info,Spell |
|
Added in 2.0. Received for party/raid members, as well as the player
|
"UNIT_SPELLCAST_DELAYED"
| Category: Unit Info,Spell |
|
Added in 2.0. Fired when a unit's spellcast is delayed, including party/raid members or the player
|
"UNIT_SPELLCAST_FAILED"
| Category: Unit Info,Spell |
|
Added in 2.0. Fired when a unit's spellcast fails, including party/raid members or the player
|
"UNIT_SPELLCAST_FAILED_QUIET"
| Category: Unit Info,Spell |
|
"UNIT_SPELLCAST_INTERRUPTED"
| Category: Unit Info,Spell |
|
Added in 2.0. Fired when a unit's spellcast is interrupted, including party/raid members or the player
|
"UNIT_SPELLCAST_SENT"
| Category: Unit Info,Spell |
|
Added in 2.0. Fired when an event is sent to the server. Other messages indicate when the server begins timing or considers the cast successful.
|
"UNIT_SPELLCAST_START"
| Category: Unit Info,Spell |
|
Added in 2.0. Fired when a unit begins casting, including party/raid members or the player
|
"UNIT_SPELLCAST_STOP"
| Category: Unit Info,Spell |
|
Added in 2.0. Fired when a unit stops casting, including party/raid members or the player
|
"UNIT_SPELLCAST_SUCCEEDED"
| Category: Unit Info,Spell |
|
Added in 2.0. Fired when a spell is cast successfully. Event is received even if spell is resisted.
|
"UNIT_SPELLMISS"
| Category: Unit Info,Spell |
|
Fired when a spell misses
|
"UNIT_STATS"
| Category: Unit Info |
|
Fired when a units stats are being passed to the player/thing
|
"UNIT_TARGET"
| Category: Unit Info |
|
Fired when the target of yourself, raid, and party members change: 'target', 'party1target', 'raid1target', etc.. Should also work for 'pet' and 'focus'. This event only fires when the triggering unit is within the player's visual range. New in 2.x.
|
"UNIT_THREAT_LIST_UPDATE"
| Category: Unit Info |
|
Fired when the client receives updated threat information from the server, if an available mob's threat list has changed at all (ie anybody in combat with it has done anything).
|
"UNIT_THREAT_SITUATION_UPDATE"
| Category: Unit Info |
|
Fired when an available unit on an available mob's threat list moves past another unit on that list.
|
"UPDATE_MOUSEOVER_UNIT"
| Category: Misc,Unit Info |
|
Fired when the mouseover object needs to be updated. Fired when the target of the UnitID 'mouseover' has changed and is a 3d model. (Does not fire when UnitExists('mouseover') becomes nil, or if you mouse over a unitframe.) |
