Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(7 Kb)
Download
Updated: 12-03-06 11:41 PM
Updated:12-03-06 11:41 PM
Created:unknown
Downloads:34,901
Favorites:67
MD5:
AfterCast  Popular! (More than 5000 hits)
Version: v1.1-20000
by: Iriel [More]
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.

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.
Optional Files (0)


Post A Reply Comment Options
Unread 09-22-08, 05:39 PM  
Rofel
A Murloc Raider

Forum posts: 4
File comments: 3
Uploads: 0
Blizzard UI conflict

so im a 70 Mage learning the world of Macro's and i wanted to try something along the lines of a 'FrostfireBolt' lol, so i typed

/aftercast /cast Presence of Mind
/aftercast /cast Pyroblast
/cast Frostbolt

which would/should cast my highest rank Frostbolt, followed by Presence of Mind as well as my highest rank Pyroblast, making an instant cast Pyroblast

this should cast Frostbolt + an Instant Cast Pyroblast making what looks like a Frostbolt + Pyroblast, having both the slow affects from Frostbolt as well as the DPS affects from Pyroblast, correct?

** The only problem is this: "Aftercast has been blocked from an action only available to the Blizzard UI. You can disable this addon and reload the UI."

Now, i've got this /xperl UI Addon from my brother -i think thats what its called. Anyway, i'd like to keep this altered UI as well as the Aftercast addon, any suggestions?
Rofel is offline Report comment to moderator  
Reply With Quote
Unread 06-19-08, 07:20 PM  
Skorpion9x
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
http://img444.imageshack.us/img444/6...8200032fk3.jpg

Is there any way to stop this spam from happening? This is using spells that have no /aftercast macro associated with them.
Skorpion9x is offline Report comment to moderator  
Reply With Quote
Unread 11-02-07, 12:18 PM  
osanaco
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 6
Uploads: 1
Hi Iriel:

I use your AfterCast since knowing it from WOWWiki about Macro Options.
The version I use now is 2.0-beta1-20100. Most time it works great.
Sometimes there are some warnings, but it does no matter.
It seems because of the event mechanism changed at 20200.

During waiting for your new version,
I try to write a whole new one after studying codes.
It also is event-driven to recognize spells, and uses the same input format
(I love it in AfterCast ^^)
Because I prefer your history frame, it is also preserved in my work
(with a little code modification, but outline is the same).

Besides, there are more functions added, such as +resist +immue, +evade,
which are mentioned in before posts. And it adds more GUI depending on
Ace2 Addons such as AceDB, FuBarPlugin.

Since it refers to your work, AfterCast, and is a work come from it.
I want to request your agreement to publish my work.
Your AfterCast indeed is very helpful for accomplishing the work.
And one more thing that I give it a new name, may I ?
Or, you have a plan of the new version of AfterCast to publish ?

Thank you very much.
Last edited by osanaco : 11-04-07 at 04:18 AM.
osanaco is offline Report comment to moderator  
Reply With Quote
Unread 10-20-07, 07:33 AM  
Atlsa
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Are there any way to make

AfterCast: Unexpected event UNIT_SPELLCAST_STOP in Sent

to go away?, seems to be getting them alot when aborting heals.. and well, they get quite annoying tbh :P, otherwise great addon
Atlsa is offline Report comment to moderator  
Reply With Quote
Unread 09-11-07, 01:26 PM  
Munic
A Kobold Labourer

Forum posts: 1
File comments: 1
Uploads: 0
This is a great mod much kudos!
Would there be anyway for you to add two additional settings (Done,Interrupted,Fail) to include :
+Resist
+Immune

Ty much and great work again.
Munic is offline Report comment to moderator  
Reply With Quote
Unread 07-05-07, 09:00 AM  
LordErikS
A Kobold Labourer
 
LordErikS's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 3
Uploads: 1
Small bug

Sometimes, randomly, one of my macro's will do some of their /aftercast /say commands otherwise it works great. but it can be a little distressing for our healers when i say "OMG I AM GOING TO DIE"
LordErikS is offline Report comment to moderator  
Reply With Quote
Unread 06-21-07, 04:26 PM  
Randrageous
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
conditionals

Great mod. I was just wondering if there's a way to have Aftercast recognize conditionals? For example:

/aftercast [target=focus,exists] /raid Misdirect on %f

so that it will only spam /raid if I have a focus target that exists, instead of saying "Misdirect on (no focus)" when I choose a target manually.

TIA
Last edited by Randrageous : 06-21-07 at 04:26 PM.
Randrageous is offline Report comment to moderator  
Reply With Quote
Unread 06-18-07, 09:57 AM  
secutanudu
A Chromatic Dragonspawn

Forum posts: 155
File comments: 70
Uploads: 0
i have been having this problem (i just upgraded to the beta, i'll try it tonight) - i am trying to use the +start argument to whisper my target after a resurrect successfully starts.

Works great, except they get the whisper twice....when it starts, and when the resurrect finishes. Here is my macro, is there something wrong?

btw..... the /tt command is from Prat, and it lets me whisper my target (TellTarget)

Code:
#showtooltip Resurrection
/aftercast +start  /tt You are now being rezzed.
/cast Resurrection
secutanudu is offline Report comment to moderator  
Reply With Quote
Unread 05-21-07, 10:48 PM  
Iriel
Super Moderator
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 575
File comments: 25
Uploads: 29
2.0 BETA Build

If any brave souls feel like testing an updated version of AfterCast, it's available from:

http://www.vigilance-committee.org/w...eta1-20100.zip

It should work just fine on the new 2.1 patch tomorrow, but while I maintain the AddOn, I dont really USE it much so I dont feel I can give it an honest test.

As this is BETA code, you should know it's got some debugging still enabled, most notably you'll see a frame in the middle of your screen which you can drag out of the way somewhere, it sort of shows what AfterCast is thinking, and if it goes crazy on you then a screenprint of it may be helpful in diagnosing the problem.
Iriel is offline Report comment to moderator  
Reply With Quote
Unread 05-21-07, 10:45 PM  
Iriel
Super Moderator
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 575
File comments: 25
Uploads: 29
No, you can't cast spells from an AfterCast action, you can only do non-protected functions.
Iriel is offline Report comment to moderator  
Reply With Quote
Unread 04-05-07, 02:38 AM  
hipjipp
A Cliff Giant
 
hipjipp's Avatar
AddOn Author - Click to view AddOns

Forum posts: 79
File comments: 229
Uploads: 10
hi, is it possible to cast spells in a row using aftecast? i.e.

/aftercast Mind Blast
/aftercast +fail Psycic Scream
/aftercast +interuppted Fade
/cast Smite

is it possible? to cast a spell after a spell, or is it just for emotes, sayings etc?
__________________
Being boring is fine too.
hipjipp is offline Report comment to moderator  
Reply With Quote
Unread 02-28-07, 03:56 PM  
Jough
A Kobold Labourer

Forum posts: 0
File comments: 22
Uploads: 0
Compatible with CCWarn?

I've been trying to use CCWarn with AfterCast in the following way:

/aftercast /ccw target
/cast Sap

I've yet to see it work the way I think it will (warn group members to change targets after a successful sap), but I'm not sure if that's because there's a mod conflict or what have you.

I'm using CCWarn v1.1.1 from 02-05-2007 (http://www.wowinterface.com/downloads/fileinfo.php?id=6826) with AfterCast v1.1-20000 from 12-04-2006 (http://www.wowinterface.com/downloads/fileinfo.php?id=4167).

I can't tell if it's working on not because I'm getting spammed with "Aftercast: Unexpected event UNIT_SPELLCAST_SENT in Sent" in my general chat box, apparently in time with key presses of a macro that does not even contain the aftercast function (/startattack /use [combat] 13 /use [combat] 14 /castrandom Sinister Strike, Riposte).

I've posted a similar comment on the UI and Macro forum for Cogwheel. Hopefully it's not a compatability issue because the two mods really seem to bring out the best in each other.
Last edited by Jough : 03-01-07 at 03:01 PM.
Jough is offline Report comment to moderator  
Reply With Quote
Unread 02-19-07, 05:38 PM  
teedog
A Deviate Faerie Dragon

Forum posts: 13
File comments: 28
Uploads: 0
Aftercast not working for warriors?

I'm trying to use the following macro:

/aftercast /rw -- Pummeled, X next --
/cast Pummel

It doesn't work. I don't get the RW message after I Pummel, whether the Pummel was successful or not. Sometimes, when I switch stances afterwards, the message "-- Pummeled, X next --" appears.

I can't make heads or tails of the problem so this bug report probably isn't very helpful. Aftercast just doesn't work for me.
teedog is offline Report comment to moderator  
Reply With Quote
Unread 02-09-07, 09:41 PM  
Azure
A Kobold Labourer
 
Azure's Avatar

Forum posts: 0
File comments: 5
Uploads: 0
Is there any way to have multiple actions per /aftercast?

IE:
/aftercast /cheer ; /say Whoot!
/aftercast +fail /cry ; /say So sad.

Or does it have to be:

/aftercast /cheer
/aftercast /say Whoot!
/aftercast +fail /cry
/aftercast +fail /say So sad.
Azure is offline Report comment to moderator  
Reply With Quote
Unread 12-18-06, 09:33 PM  
anjldust
A Murloc Raider

Forum posts: 4
File comments: 12
Uploads: 0
I'm trying to make a macro that spams both the raid channel and my class channel on a successful cast.

So far I have this:

/aftercast /ra Fear Ward cast on %t.
/aftercast /# Fear Ward cast on %t.
/cast Fear Ward

Where # is my class channel. The problem I'm having is that only one channel will get the message. I've read on here and it seems I can only have one aftercast effect per spell, so is there any way at all to make this work? I also tried this:

/aftercast /ra Fear Ward cast on %t.
/aftercaston start /# Fear Ward cast on %t.
/cast Fear Ward

It was a no go there as well, though. It may be something very simple I'm not catching, but I'm extremely new at macros. Any help would be appreciated.
anjldust is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: