Quantcast
Catching spellcasting reliably - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-05-05, 04:14 AM   #1
Gorak
A Fallenroot Satyr
Join Date: Oct 2005
Posts: 21
Catching spellcasting reliably

Hello !

As we know, spells with casting time generate two event, SPELLCAST_START when begun and SPELLCAST_STOP when stopped. Instant-cast spells only generate SPELLCAST_STOP. Channeled spells generate SPELLCAST_CHANNEL_START, SPELLCAST_CHANNEL_UPDATE and SPELLCAST_STOP.

For interruptions, SPELLCAST_INTERRUPTED is posted when an external operator, such as a skill or spell interrupts casting (Rogue kicks or mage counterspells). SPELLCAST_FAILED is posted when a spell gets resisted, for all spells, including instant cast. This information is available from WoW Wiki.

Now, a common scenario to accomplish catching spellcasting is to use a SPELLCAST_STOP-event logger in conjuction with a function hook to CastSpell and UseAction. However, if the player interrupts a casting-time or channeled spell by moving, it seems that SPELLCAST_STOP is generated first, immediately followed by SPELLCAST_INTERRUPTED.

Now, does anyone know what really happens if spellcasting is interrupted by an external operator ? Do we still receive SPELLCAST_STOP and SPELLCAST_INTERRUPTED right after each other ? And what about spell getting resisted ? Do we receive SPELLCAST_STOP and SPELLCAST_FAILED in sequence ? What is the logic behind all these events ?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Catching spellcasting reliably

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off