This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.5
PTR
10.2.6
Raid Rogue Sap Macro...
Post Reply
Return to board index
Post by
macdisciple
I'd like to have a macro that alerts the party or raid when a target is sapped, successfully. On a few occasions, a tank has marked a MOB, but pulled before I could even get into range to get off a sap. The macro should
only
announce that a MOB is sapped if the sap is
successful
.
The macro below will announce a target is sapped even if I miss because I'm 30 yards away. I tried it - the target was immune - and the tank thought the MOB was sapped because of the /p emote. Oops.
#showtool Sap
/cast Sap
/p %t is Sapped!
I found the macro below, online, but it does not work. Using /aftercast does not make a difference.
#showtool Sap
/cast Sap
/aftercast /p %t is Sapped!
There is an Add-on, "Sapper Enhanced" on Curse which would do what I need, but the developer hasn't worked out the bugs.
Any assistance with a macro is appreciated.
Post by
fatalicus
aftercast is an addon, so you would need that to get the last macro to work, but it still won't "work" since aftercast only makes you yell after sap has been cast, successfull or not.
As for what you wan't to do, i don't think it's realy possible.
As far as i know, the game has no way of knowing if a cast is successfull or not, or if a target is sap'ed or not.
Post by
pelf
Since sending messages isn't protected, you can watch for the spell cast of sap, check to see if it went off, check the target of the sap to see if the debuff was applied, and so on -- and with that information, formulate a message and send it.
However, that's likely larger than a macro and likely why the author of said addon created one in the first place.
Post by
800521
This post was from a user who has deleted their account.
Post by
802827
This post was from a user who has deleted their account.
Post by
HighFive
Shaved:/use Sap
/run f = f or CreateFrame("frame")f:SetScript("OnEvent",function (...)local s=select _=s(4,...)=="SPELL_AURA_APPLIED"and 6770==s(11,...)and SendChatMessage(s(9,...).." is Sapped!","RAID")end)f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")<disclamer>
Post by
802827
This post was from a user who has deleted their account.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.