Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(10 Kb)
Download
Updated: 07-04-10 05:48 AM
Patch for:
AfterCast.
Updated:07-04-10 05:48 AM
Created:07-04-10 05:48 AM
Downloads:4,705
Favorites:11
MD5:

AfterCast (update of fan's update)

Version: 3.0
by: OmeCorn [More]

This is an updated version of Hammersbald's AfterCast, which is an update of Iriel's AfterCast. What I fixed is the editbox problems that came with the 3.3.5 update and the Unexpected Event spam.

Original version 1.1-20000 of this Addon can be found here:
http://www.wowinterface.com/downloads/info4167-AfterCast.html

Fan's Update can be found here:
http://www.wowinterface.com/downloads/info14404-AfterCastFansUpdate.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.

Post A Reply Comment Options
Unread 07-28-11, 12:12 PM  
Kithros
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
This Addon Doesn't Work For Me

it simply doesn't work.
i tried a a simple macro to test like this

/aftercast /s works.
/cast Holy Light


and it doesn't work
i tried same with Redemption

/aftercast /p Ressurected you, %t
/cast Redemption

and that didn't work either!
help plz or update
Kithros is offline Report comment to moderator  
Reply With Quote
Unread 03-16-11, 12:10 PM  
RoloX2
A Kobold Labourer
 
RoloX2's Avatar

Forum posts: 0
File comments: 5
Uploads: 0
Re: false positives

Originally posted by Jough

I'm having an issue with false positives. During a recent Heroic Deadmines run AfterCast displayed "Jough has sapped..." messages on a couple different occasions when the mob wasn't actually sapped (immune).
The Sap did successfully cast; it just didn't do anything due to the target's buff, which did trigger upon a successful Sap hit; a failed Sap wouldn't trigger the immunity.
RoloX2 is offline Report comment to moderator  
Reply With Quote
Unread 12-31-10, 04:17 PM  
Jough
A Kobold Labourer

Forum posts: 0
File comments: 22
Uploads: 0
false positives

Hi folks.

I'm having an issue with false positives. During a recent Heroic Deadmines run AfterCast displayed "Jough has sapped..." messages on a couple different occasions when the mob wasn't actually sapped (immune). Here's a copy of my sap macro:

#showtooltip Sap
/aftercast /p Jough sapped %t
/cast Sap
/cast Pick Pocket

The first mob was a Defias Envoker (http://www.wowhead.com/npc=48418) buffed with Envoker's Shield (http://www.wowhead.com/spell=92001). The second mob was a Defias Squallshaper (http://www.wowhead.com/npc=48521).

My understanding is that AfterCast should only display the message if the cast was successful, so something's up here. I'm guessing that there's something wrong with my macro, but I'd be happy to hear any input you may have.
Jough is offline Report comment to moderator  
Reply With Quote
Unread 11-27-10, 02:30 AM  
smilinbob
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Very cool, I would only change one thing...

This addon seems to say messages with +fail modifiiers if they fail because of the gcd... I'm pretty sure no one ever needs to announce that they are button spamming lol...
smilinbob is offline Report comment to moderator  
Reply With Quote
Unread 08-13-10, 10:27 AM  
Amathor
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Oh, sorry for double post but i just wanted to add this..

Theoretically, this can be used to chain-use certain abilities, such as army of the dead + death pact for deathknights, simply make sure that the first ability(ies) have a channel and/or cast time of 1second or higher (.5sec if your a dk in unholy presence)
For example, my DK now uses this macro simply because he can..
#showtooltip Army of the Dead
/y Minions of the Darkness, hear the call of the highlord!
/y RISE!
/ac /y The skies burn red with the blood of the fallen! Arise my minions, leave only ashes and misery in your destructive wake!
/cast Army of the Dead
/ac /cast Death Pact
Amathor is offline Report comment to moderator  
Reply With Quote
Unread 08-13-10, 10:07 AM  
Amathor
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Have you tried using

#showtooltip Sap
/ac +start /rw Sapped!
/targetenemy
/cast [exists, harm, nodead] Sap

That should make it say it once you "start" casting sap, of course since it's an instant cast if it is sucessfully casted it will say it and sap your randomly stealthed kitty or rogue, and if it doesnt cast then it will simply ignore everything past +start, should fix your problem, I was having a similar issue with Lay on Hands on my paladin, the cooldown is just long enough that the last 20-45seconds of it on the icon itself appears as ready to use, often i've clicked that, realized it didn't go off, then casted holy shock on the tank to /yell >>>I've just Layed my Hands on %t<<< When I infact kept my hands to myself.
Amathor is offline Report comment to moderator  
Reply With Quote
Unread 07-06-10, 03:39 PM  
OmeCorn
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 15
File comments: 6
Uploads: 3
Re: Aftercast Reset

Originally posted by emortee
Hello, first of all thank you for keeping this nice little mod alive.

I'd like to ask if it would be possible to add a command performing reset of the tracking of the next spell cast.

As a rogue in arenas, I am usually stealthing around trying to sap the other rogue or druid, let's say I am mashing button for a macro like this (it's simplified):
/ac /rw Sapped!
/targetenemy
/cast [exists, harm, nodead] Sap


The problem is that in case I press the button at least once but I won't sap anything, Aftercast triggers the raid warning at any next ability that is cast. For example cheap shot.

It would be awesome to be able to add something like
/acreset
at the end of the macro to prevent Aftercast to keep tracking spell casts outside of the macro.

Thanks in advance for any reply.
I think you address two issues here with the addon, which I also find very annoying:
- The addon doesn't handle buttonspamming very well with instant casts
- The addon sees the next cast after buttonspamming as the cast where it needs to put the text message (if there is a text message in the macro off course)

But the problem is that I'm not a person who knows a lot about .lua coding tbh. So I don't know at the moment how I can fix it. But I'll ask around to see if I can get this fixed and try to poke a bit inside the code as well.
OmeCorn is offline Report comment to moderator  
Reply With Quote
Unread 07-05-10, 06:10 AM  
emortee
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Aftercast Reset

Hello, first of all thank you for keeping this nice little mod alive.

I'd like to ask if it would be possible to add a command performing reset of the tracking of the next spell cast.

As a rogue in arenas, I am usually stealthing around trying to sap the other rogue or druid, let's say I am mashing button for a macro like this (it's simplified):
/ac /rw Sapped!
/targetenemy
/cast [exists, harm, nodead] Sap


The problem is that in case I press the button at least once but I won't sap anything, Aftercast triggers the raid warning at any next ability that is cast. For example cheap shot.

It would be awesome to be able to add something like
/acreset
at the end of the macro to prevent Aftercast to keep tracking spell casts outside of the macro.

Thanks in advance for any reply.
emortee is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: