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,800
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
Old 07-12-10, 03:21 AM  
fligex
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
I also was having this problem.. so I hunted down a solution for it..

FIND IN (AfterCast.lua) AT LINE 40:

Code:
eBox.language = ChatFrameEditBox.language;
REPLACE WITH:
Code:
eBox.language = ChatEdit_GetActiveWindow();

I don't know much about addon code or nothing but I hunted down this solution online after trying to use the addon in its present state.

The addon works with this and does display the message as intended only when successfully cast. I haven't had much chance to test this fix fully but it seems to be working atleast better then it was.. 8)

enjoy~
fligex is offline Report comment to moderator  
Reply With Quote
Old 03-09-11, 03:32 PM  
deadcrusader
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
I love this addon, is it possible to get an update for 4.0 (or 4.1/4.2 when they arrive)?

thanks
deadcrusader is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: