Quantcast Events/S - WoWWiki - Your guide to the World of Warcraft
Recent changes Random page
GAMING
Gaming
 
StarCraft Wiki
Super Smash Wiki
Halopedia
Diablo Wiki
FFXIclopedia
Grand Theft Wiki
See more...

Events/S

From WoWWiki

Jump to: navigation, search
Main Menu



"SCREENSHOT_FAILED"
Category: System
 

Fired when a screenshot fails.


"SCREENSHOT_SUCCEEDED"
Category: System
 

Fired when a screenshot is successfully taken.


"SELECT_FIRST_CHARACTER"
Category: Misc
 

GlueXML?


"SELECT_LAST_CHARACTER"
Category: Misc
 

GlueXML?


"SEND_MAIL_COD_CHANGED"
Category: Mail
 


"SEND_MAIL_MONEY_CHANGED"
Category: Mail
 


"SHOW_COMPARE_TOOLTIP"
Category: Tooltip,Item
 


"SKILL_LINES_CHANGED"
Category: Skill
 
"SOCKET_INFO_UPDATE"
Category: Misc
 
"SPELLCAST_CHANNEL_START"
Category: Spell
 

Fired when a spellcaster begins channelling. Removed in 2.0

arg1 
Duration (in milliseconds)
arg2 
Spell Name

On version 1.2.1, this event doesn't seem to work.


"SPELLCAST_CHANNEL_STOP"
Category: Spell
 

As of 1.10, replaces both the final SPELLCAST_CHANNEL_UPDATE (arg1==0) and SPELLCAST_STOP for channeled spells. Removed in 2.0


"SPELLCAST_CHANNEL_UPDATE"
Category: Spell
 

Fired when a channelling spell is updated. Removed in 2.0

arg1 
remaining Duration (in milliseconds)


"SPELLCAST_DELAYED"
Category: Spell
 

Fired when a spellcast duration is increased. Removed in 2.0

arg1 
Disruption time


"SPELLCAST_FAILED"
Category: Spell
 

Fired when a spell fails. Will correctly fire for spells failing due to lack of mana as of 1.11. Removed in 2.0


"SPELLCAST_INTERRUPTED"
Category: Spell
 

Fired when a spellcast is interrupted. Removed in 2.0


"SPELLCAST_START"
Category: Spell
 

Fired when a spellcast is begun. This event seems to work if the spell has a casting time. For instant, there is no SPELLCAST_START but SPELLCAST_STOP. Removed in 2.0

arg1 
Spell Name
arg2 
Duration (arg2 seems to be in milliseconds ex. 1.5 second cast time shows as 1500)


"SPELLCAST_STOP"
Category: Spell
 

Fired when a spell cast stops. Removed in 2.0

  • Called twice when the spell is channelled. Once at start, once at completion.
  • The only SURE way to determine if a non-instant, non-damaging spell is cast successfully (such as Warlock Banish) is to do the following:
  1. Observe the spell start with UseAction or by trapping CastSpellByName() or one of the other methods of trapping spellcasts.
  2. Wait for SPELLCAST_STOP to arrive.
  3. When it arrives, you know the spell has stopped, but you don't know the reason!! It could be that the spell was cast successfully, or it was resisted, or the target was immune, or you moved. Schedule a success check 1/10th of a second in the future by using GetTime() and the OnUpdate() event callback.
  4. If you get to a 1/10th of a second in the future without receiving SPELLCAST_INTERRUPTED or SPELLCAST_FAILURE, then the spell landed successfully. If one of those other events occurred, you can kill your scheduled success check because the spell failed.

You could also check for the Banish debuff on the target, but that's a can of worms because the player can switch targets mid cast (which does happen in nutty endgame instances).


"SPELLS_CHANGED"
Category: Spell
 

Fired when:

  • Spellbook initially loads on client initialization. (Attempting to use GetSpellName before this is complete will result in a UI error. Note: This event happens after ADDON_LOADED and VARIABLES_LOADED.)
  • Learning new stuff that goes in the spellbook.
  • Opening the spellbook.
  • Equipping/Removing/Swapping primary weapon. (Changes the Attack icon)
  • UpdateSpells() function is called, which is used throughout the spellbook.
arg1
nil when the char learns stuff. Also when changing weapons and shapeshifting. In addition it seems to be called on regular intervals for no apparent reason.
  1. when the user opens the spellbook.
'LeftButton' when using the mouse to open the spellbook or to browse through the pages and tabs of the open spellbook.


"SPELL_UPDATE_COOLDOWN"
Category: Spell
 

Fired when spell cooldown starts.

arg1 
if the spell is triggered by keypress, returns the GetTime() output in string format. Otherwise, it will return "LeftButton" or "RightButton"


"SPELL_UPDATE_USABLE"
Category: Spell
 

Fires when you enter combat or die.

"START_AUTOREPEAT_SPELL"
Category: Spell
 


"START_LOOT_ROLL"
Category: Loot
 

Fired when a group loot item is being rolled on.

arg1
The rollID of the item being rolled on.
arg2
The roll time.


"STOP_AUTOREPEAT_SPELL"
Category: Spell
 


"SUGGEST_REALM"
Category: GlueXML
 


"SYSMSG"
Category: Misc
 

Fired when a system message occurs. Gets displayed in the UI error frame (the default red text in the top half of the screen) in the default UI.

arg1 
message
arg2 
red
arg3 
green
arg4 
blue
Rate this article:
Share this article: