Macro:Invite

From Dual-Boxing Wiki

Jump to: navigation, search

Invite all party members, then set loot to FFA

This macro will invite the named characters and set the loot option to "Free for all". You will have to run the macro twice to actually set the loot policy, since the first time it's run you're not yet in a party.

/i CharacterB
/i CharacterC
/i CharacterD
/i CharacterE
/ffa

For more loot options, see Macro:Loot options.

Invite all party members, supressing error messages for members already in the party

If you are annoyed by error messages, the following script will not invite characters that are already in your party. The script is formatted to be easy to read, when you enter it in the macro editor, it must all be one long line!. Just remove line breaks and excess whitespace.

/run p={"CharacterB","CharacterC","CharacterD","CharacterE"}
    for i=1,#p do
        if not UnitInParty(p[i]) then
            InviteUnit(p[i])
        end
    end

Note that you can't see if people are online or not, so you will still get errors of the type Could not find player "X". There is a function UnitExists() in the WoW API, but it only works for your target, focus and characters already in your party or raid.

Invite party members in a specific order

If you need to invite members to your party in a specific order (maybe your unitframes are sorted by order invited, and you need the party members in specific positions for click casting) this will invite them one after another in the correct order. Each time you click it will invite the next member:

/run InviteUnit("char2")
/run if UnitInParty("char2") then InviteUnit("char3") end
/run if UnitInParty("char3") then InviteUnit("char4") end
/run if UnitInParty("char4") then InviteUnit("char5") end
General Macros Profession Macros
Class Macros
Druid Hunter Mage Paladin Priest Rogue Shaman Warlock Warrior
Personal tools