1. #1

    Macro Script / Sequencing help.

    Hey guys,

    I've been looking for how to do this for some time now. How do you make a macro that will cast something out of your spell book and say something in raid, say, etc.. and not have it repeat the text if you hit the keybind multiple times ??

  2. #2

    Re: Macro Script / Sequencing help.

    Code:
    /run local f=CreateFrame("Frame")f:SetScript("OnEvent", function(self,event,unit,spell)if unit~="player" or spell~="Spellname" then return end SendChatMessage("Your text","RAID")end)f:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED")
    You'd have to execute this every time you log in.
    You could also use the Hack addon to execute the code above (without the /run) every time you log on.
    UI & AddOns expert | Interface & Macros moderator - My work

  3. #3

    Re: Macro Script / Sequencing help.


    Gershuun @ Borean Tundra US - Interface & Macros Moderator

  4. #4

    Re: Macro Script / Sequencing help.

    I might be retarded but I couldn't figure out how to get either of those to work. : P

  5. #5

    Re: Macro Script / Sequencing help.

    Quote Originally Posted by Trummel
    I might be retarded but I couldn't figure out how to get either of those to work. : P
    Copy+paste mine into a macro. Run that macro every time you log in or reload your UI.
    Then just normally cast whatever spell you want. (Replace "Spellname" and "Your text" in the macro).
    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
  •