1. #1

    I need help with a macro.

    Hello,

    I am trying to create a Macro that allows me to announce a spell I used like Innervate in a chat channel (like raid), but also not allow it to spam the chat message if I accidentally click it more than once.

  2. #2

    Re: I need help with a macro.

    Macros can't check for spell success / failure.
    Just don't spam.

    #showtooltip (use '?' icon)
    /cast Innervate
    /ra Innervate used on %t

    If you use mouseover, change %t to %m and change the second line to :
    /cast [@mouseover,noharm,nodead] Innervate


  3. #3

    Re: I need help with a macro.

    Use AfterCast


    Quote Originally Posted by Lich King
    "You speak of justice? Of cowardice? I will show you the justice of the grave... and the true meaning of fear."

  4. #4
    Scarab Lord Taryble's Avatar
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    4,038

    Re: I need help with a macro.

    Mordret's suggestion, AfterCast, is the best method for this. Check it out, it's very useful.
    We have done the impossible, and that makes us mighty. - Sgt. Malcolm "Mal" Reynolds, Battle of Serenity Valley

  5. #5

    Re: I need help with a macro.

    Thanks for the advice.

    The only flaw with this addon is I get a lot of Error messages.

  6. #6

    Re: I need help with a macro.

    Code:
    local a = CreateFrame("Frame") a:SetScript("OnEvent", function(self,event,...) if (select(2,...)) == "SPELL_CAST_SUCCESS" and (select(4,...)) == UnitName("player") and (select(10,...)) == "Innervate" then SendChatMessage("Innervated "..(select(7, ...)).."!", GetRealNumRaidMembers()>0 and "RAID" or "PARTY") end end) a:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
    How to use this
    UI & AddOns expert | Interface & Macros moderator - My work

  7. #7

    Re: I need help with a macro.

    I'm using this macro :

    #showtooltip
    /script local u,pi="mouseover","Power infusion";if IsSpellInRange(pi,u)==1 and GetSpellCooldown(pi)==0 then SendChatMessage(GetSpellLink(pi).."Burst !","WHISPER",nil,UnitName(u)) end
    /cast [target=mouseover] Power infusion
    END
    Just change power infusion to the spell you want to use.

  8. #8

    Re: I need help with a macro.

    Quote Originally Posted by Daginni
    Hello,

    I am trying to create a Macro that allows me to announce a spell I used like Innervate in a chat channel (like raid), but also not allow it to spam the chat message if I accidentally click it more than once.
    Use the addon SpeakinSpell instead, it is very cofigurable and will allow you to fix this 'announce' as well as many others.

  9. #9

    Re: I need help with a macro.

    Aftercast is extremely out of date and will flood the user with errors, so if you want to link them to it, link the Fan Update version.

    http://www.wowinterface.com/download...ansUpdate.html

    Gershuun @ Borean Tundra US - Interface & Macros Moderator

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •