Download
(7 Kb)
Download
Updated: 08-18-09 03:31 PM
Patch for:
AfterCast.
Updated:08-18-09 03:31 PM
Created:08-14-09 02:03 AM
Downloads:5,900
Favorites:23
MD5:
AfterCast (Fan's Update)  Popular! (More than 5000 hits)
Version: 2.01-30200
by: Hammersbald [More]
--------------------------------------------------------
This is an update version of Iriel's AfterCast. I fixed the
events to make it work with 3.2 again. To save valuable
space in macros, I also added an additional /ac command.
Original version 1.1-20000 of this Addon can be found here:
http://www.wowinterface.com/downloads/info4167-AfterCast.html

Original description below:
--------------------------------------------------------
AfterCast - Perform action after a cast
--------------------------------------------------------
This is a fairly simple addon for performing actions based on the success or failure of a cast. Usage is as follows

/aftercast /smile
/aftercast +fail /cry
/cast Frostbolt(Rank 2)

If the spell succeeds then you'll smile, if it fails, then you'll cry. If it is interrupted then nothing will happen. You can also use the shorter command,

/ac +start /p Casting Resurrection...
/ac +done /p Resurrection Done!
/cast Resurrection

Events you can use are:

+done At the end of successful casting (Default if no event given)
+fail If the spell fails
+interrupt If the spell is interrupted
+start When spell starts casting (Fires before done for instant spells)

Aftercasts apply to the next spell which occurs, and then is reset, you can set up one of each event before each cast.

These functions can also be gotten at via lua functions:

AfterCast(doneAction, failAction);
Shortcut to set up the 2 most common actions, either can be nil.

AfterCastOn(event, action)
Set up a specific action (use without the +, so "done", "fail", etc)

AfterCastReason([clearFlag])
Return the stop reason ("done"/"interrupt"/"fail") for the last cast (nil if none have stopped since the last clear).. if clearFlag is present and true then resets status after return.
V2.01 - UNIT_SPELLCAST_SENT should no longer occurr as unexpected event in Sent.
Optional Files (0)


Archived Files (1)
File Name
Version
Size
Author
Date
2.0-30200
7kB
Hammersbald
08-14-09 02:03 AM


Post A Reply Comment Options
Unread 08-14-09, 10:26 AM  
karmamuscle
Premium Member
 
karmamuscle's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 190
File comments: 168
Uploads: 1
I sometimes get this
Code:
AfterCast: Unexpected event UNIT_SPELLCAST_SENT in Sent
in the chat. Screenshot
If I am on tournament mounts it fires all the time.
Last edited by karmamuscle : 08-14-09 at 03:11 PM.
karmamuscle is offline Report comment to moderator  
Reply With Quote
Unread 08-14-09, 07:02 AM  
JMHammer
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 308
Uploads: 1
Thank you for taking on this project.
JMHammer is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: