Thread: Macro Help

  1. #1

    Macro Help

    Hello, I made a macro for my starfall that whenever I use it, it says the Algalon line, "Witness the fury of the cosmos." The thing that is bothering me, is that every time I press the button it plays it again. Is there a way to only play it when it's off cooldown and make it stop repeating?

  2. #2
    Funny you should ask. I have the same macro on my moonkin but it says Algalon's line "The stars come to my aid", which imo is perfect.

    #showtooltip
    /run local c="Starfall";if GetSpellCooldown(c)==0 then PlaySoundFile("Sound\\Creature\\AlgalonTheObserver\\UR_Algalon_Adds01.wav") end;
    /cast Starfall

    Gershuun @ Borean Tundra US - Interface & Macros Moderator

  3. #3
    Code:
    local a = CreateFrame("Frame")
    a:SetScript("OnEvent", function(self,event,unit,spell)
    if UnitIsUnit(unit, "player") and spell == "Starfall" then PlaySoundFile("Sound\\Creature\\AlgalonTheObserver\\UR_Algalon_special01.wav") end end)
    a:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED")
    How to use this.
    UI & AddOns expert | Interface & Macros moderator - My work

Posting Permissions

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