Close
Showing results 1 to 4 of 4
  1. #1

    Default Macro to change alphabetic party healing macros

    This macro is for those of you, like me, who use Pitbull to sort your party members alphabetically, and then have your healing macros target characters by name.
    If you change your party members, you have to change your macros. This does it for you.

    I have 5 macros in my F1-F5 keybinds. The macros (using blizz interface, not addon macros) are called Party1 - Party5.

    This macro looks at your party, and changes those macros based on who is in your party.

    This only works OUT OF COMBAT!

    Code:
    /run a={} a[1] = UnitName("player") n=GetNumPartyMembers()+1
    /run for i=1,n do a[i+1] = UnitName("party"..i) end
    /run table.sort(a)
    /run for i = 1,n do EditMacro(GetMacroIndexByName("Party"..i),"Party"..i,1,"#showtooltip\n/stopcasting [target="..a[i]..",nodead]\n/cast [target="..a[i]..",help,nodead,exists] Lesser Healing Wave; [target="..a[i]..",dead] Ancestral Spirit",1,1) end
    /run for i = (n+1),5 do EditMacro(GetMacroIndexByName("Party"..i),"Party"..i,1,"",1,1) end
    The end results are 5 macros that look like this:

    #showtooltip
    /stopcasting [target=Toon1,nodead]
    /cast [target=Toon1,help,nodead,exists] Lesser Healing Wave; [target=Toon1,dead] Ancestral Spirit

    With the Party1 macro healing the first character in your party (alphabetically), Party2 healing the second, etc.

    To customize your own macro, change the relevant part in the 4th /run line to what you want.

    I added this with a /click command to my smartbuff macro, so I never forget to change my macros anymore when changing group members (which is very high on my 'reasons why you wipe' list).

    Also, if anyone knows how I can edit Macaroon macros with a script, that knowledge would be very welcome!
    Last edited by Pocalypse : 08-23-2009 at 05:27 AM Reason: Cleaner macro.

  2. #2

    Default

    I cant believe there is this much functionality exists in wow macros. Just amazing.

  3. #3

    Default

    Very nice. I could use this on my healer since my group changes almost everyday.

    For anyone that has trouble reading code you need to make 5 blank macros named Party1 through Party5. They can be either global or character specific, it doesn't matter since it uses an index to edit them.
    Prot Paladin, tank/resto Druid, 2xResto Shaman, 3xElemental Shaman, Balance Druid, Shadow Priest, Arcane Mage PVE
    10x shamans PVP

  4. #4

    Default

    Those commands are usually used in addons. Think how much functionality addons give you.

Posting Rules

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