Macros

General

Shadowform (and changes action bar to action bar 1)
/cast Shadowform
/changeactionbar [stance:1] 2 ; 1

Buffing (Self, Target)
/castsequence [nocombat] reset=combat/target Power Word: Fortitude, Divine Spirit, Shadow Protection, Inner Fire

Cleanse (Decurse)

Abolish Disease
/cast [modifier:ctrl,target=player] ; [target=mouseover, help] Abolish Disease; [target=target, help] Abolish Disease; [target=targettarget, help] Abolish Disease; [target=player] Abolish Disease

Dispel Magic
/cast [modifier:ctrl,target=player] ; [target=mouseover, help] Dispel Magic; [target=target, help] Dispel Magic; [target=targettarget, help] Dispel Magic; [target=player] Dispel Magic

Power Word: Shield
/cast [help] Power Word: Shield; [target=mouseover, help] Power Word: Shield; [target=focus, help] Power Word: Shield; [target=focustarget, help] Power Word: Shield; [target=targettarget, help] Power Word: Shield; [target=player] Power Word: Shield

Healing

Renew (Max Rank)
/cast [help] Renew; [target=mouseover, help] Renew; [target=targettarget,help] Renew; [target=player] Renew /p Renewing %t

Flash Heal (Max Rank)
/cast [help] Flash Heal; [target=mouseover, help] Flash Heal; [target=targettarget, help] Flash Heal; [target=player] Flash Heal /p Flash Healing %t

Greater Heal (Max Rank)
/cast [help] Greater Heal; [target=mouseover, help] Greater Heal; [target=targettarget, help] Greater Heal; [target=player] Greater Heal /p Big Heal incoming to %t

#Showtooltip Vampiric Touch
/script UIErrorsFrame:Hide()
/use [target=target,harm,exists]Icon of the Silver Crescent
/script UIErrorsFrame:Clear(); UIErrorsFrame:Show()
/cast [harm]Vampiric Touch; [target=targettarget,harm,exists]Vampiric Touch

As I started playing wow, I learned about using Addons and they have helped me out tremendously. But at times a simple macro is the preferred method. It’s lightweight, saved on the server (as of Patch 3.0.2), and are fairly easy to create.

This page is a collaboration of what I’ve learned about macros.

Setting raid target icons

Star

SetRaidTargetIcon(”target”, 1);

Circle

SetRaidTargetIcon(”target”, 2);

Diamond

SetRaidTargetIcon(”target”, 3);

Triangle

SetRaidTargetIcon(”target”, 4);

Moon

SetRaidTargetIcon(”target”, 5);

Square

SetRaidTargetIcon(”target”, 6);

Cross

SetRaidTargetIcon(”target”, 7);

Skull

SetRaidTargetIcon(”target”, 8);

Remove Raid Icon

SetRaidTargetIcon(”target”, 0);

Targeting:

/targetenemy
/targetfriend
/targetparty
/targetraid
/targetlasttarget
/targetlastenemy
/assist [name] – Assist your target or the named unit if specified

Using Items:

/use
/equip
/equipslot
/userandom , , item3, …

Examples of /equip and /use:

/equip <itemname>
/equip <bagid> <bagslot>
/equipslot <slot> <itemname>
/use <itemname>
/use <slot>

/use <bagid> <bagslot>
/userandom <item1>, <item2>, <item3> will attempt to use a randomly selected one of the specified items

Casting:

/stopcasting
/cast [option]
/stopmacro [option]
/castrandom , , …
/castsequence [reset=N/target/combat/shift/alt/ctrl] , , …

Sequenced Casting

* A new command /castsequence reset=N/target/combat/shift/alt/ctrl spell1, spell2, spell3
* The reset line can specify a number of seconds after which a sequence resets, or if it should reset on target change or leaving combat.
* The sequence tracks the ‘next’ spell in the sequence until it resets, the next spell only advances on a successful cast.
* You can specify a conditional at the start of the command before the reset to filter whether the sequence is used (You cannot use per-spell conditionals)
* You can specify items and stances as well as spells

Action Bars:

/changeactionbar
/swapactionbar

Attacking:

/startattack [unit]
/stopattack

Buffs/Auras:

/cancelaura [Stormpike Battle Charger]

OPTIONS

If multiple options are provided for an action, they must all be met before the action will happen. The options supported are as follows:

    * target=unit – Run the command and perform tests on the specified unit (only applicable to spell casting or item use). You can specify ‘none’ as a target unit to act as if you have no target.
    * help/harm – Choose depending on whether target is assistable or attackable
    * combat – Choose depending on whether you’re in combat or not
    * stance or stance:# – Choose depending on your stance/shapeshift (”stance” alone matches any stance)
    * stealth – Choose depending on whether you are stealthed
    * mounted – Choose depending on whether you are mounted
    * swimming – Choose depending on whether you are swimming
    * flying – Choose depending on whether you are flying
    * indoors – Choose depending on whether you are indoors
    * outdoors – Choose depending on whether you are outdoors
    * modifier or modifier:shift|ctrl|alt – Choose depending on any modifier keys you’re holding at the time the macro runs
    * equipped:|| – Choose if you have the specific item type equipped
    * actionbar: – Choose if a specific actionbar is shown
    * button:Z – Choose if the specified button is held down
    * pet:| – Choose if your current active pet has the specified name or family (e.g. pet:bear/wolf)
    * channeling or channeling:spell – Choose if you are channeling (possibly a specific spell)
    * exists – Choose if the target exists
    * dead – Choose if the target is dead

For stance and modifier you can list multiple matching values separated by the / character for the option to be true if ANY of them are true. For example modifier:shift/ctrl matches if shift or control is held down.
Any option can be prefixed with ‘no’ to select if it does NOT match. For example [nocombat]

# and – are comment characters in macros
A macro that starts with “# show or # showtooltip <item or spell>” will show feedback for that item or spell. A macro that starts with “# show none” will show no feedback. Otherwise the first /cast, /randomcast, /castsequence, /use, or /random use command will be used to show feedback for the macro. Castsequence is special in that it overrides the “#show” parameter. This is intentional, as most people want the current spell to show up instead of what is listed on “#show.
——————–

macros within macros?

/click <button name>

You can find a button name by hovering your mouse over a button and entering this into chat:

/script message(GetMouseFocus():GetName())

—————-

are the units

if you just want to put the skull (8) on one target use:

/script if (GetRaidTargetIndex(”target”)~=8) then SetRaidTargetIcon(”target”, 8); end

if you want to target a group – one use each target:

/script if not lastraidn then lastraidn = 1; end SetRaidTarget(”target”, lastraidn); if lastraidn == 8 then lastraidn = 1; else lastraidn = lastraidn + 1; end

If you are in a zone where you can use your flying mount this macro will use that. If not it will summon your dreadsteed.

/stopmacro [flying]
/cast [outdoors,nomounted,nomodifier:ctrl,flyable] Ebon Gryphon; [outdoors,nomounted] Summon Dreadsteed(Summon)
/dismount [mounted]

As an alternative a more advanced macro can be used. This differs from the above form in that it shows the appropriate tooltip based on what mount you are able to currently use. It also allows the use of the ALT key to summon the Dreadsteed within areas that allow flying. This macro also prevents you from accidentally dismounting while in the air. The outdoor check was omitted to save space.

#showtooltip [mod:alt] Summon Dreadsteed; [flyable] Tawny Windrider; Summon Dreadsteed
/cast [nomounted, mod:alt] Summon Dreadsteed; [nomounted,flyable] Tawny Windrider; [nomounted] Summon Dreadsteed
/dismount [mounted,noflying]

Same concept as the above macro, but will allow you to summon your Dreadsteed by pressing ctrl even in a flyable area, if you so desire. Also enables you to summon a minion of your choice (in this example a Felguard). Replace with your windrider and minion of choice.

#showtooltip
/cast [mod:ctrl] Summon Dreadsteed; [mod:alt] Summon Felguard; [flyable] Blue Windrider; Summon Dreadsteed
/dismount [noflying,mounted]

As said, there’s no easy way of doing it, but there are some other ways that can be used.

If you know the name of the pet:
/cast [target=NameOfThePet] Spell

If you need just generic target party / raidmember x’s pet and cast a spell:
/cast [target=partyXpet] Spell
/cast [target=raidXpet] Spell

Replacing X with 1-4 in party (1 is party leader, or the first person in it if you’re leader and so on), and 1-40 in raid (1 isn’t nescessarily the leader here, as it can be in any group. I can’t remember the exact way they were sorted, but my guess goes for 1-5 for raid group 1, 6-10 for g2 and so on).

Or even:
/cast [target=targetpet] Spell
/cast [target=mouseoverpet] Spell

#showtooltip
/cast [mod:shift,mod:ctrl] Disease Cleansing Totem; [mod:shift] Healing Stream Totem; [mod:ctrl] Poison Cleansing Totem; Mana Spring Totem

Targeting in Macros

WOW Macros Guide Macros What Is a Macro Creating a Basic Macro Macros Spells and Abilities Targeting in Macros Group and Raid Macros How do I make a macro Macro Tips Captain Jigs’ Macro Guide
The /target command changes or assigns your target in a macro. You may have used the /target command on its own in the game world, to try to locate a nearby player or NPC by name – such as “/target Hogger.” You can also use this command and variants of it in macros, particularly in conjunction with other macro commands such as “/cast.” We’ll go into more depth on targeting in macros in the next part of this guide, but for now here are some basic guidelines and examples:

* Using “/target” followed by a name will find the nearest player, monster, or NPC that has a name matching the one you entered as long as that entity is within a certain proximity to you. However, searching by name doesn’t distinguish between players or computer-controlled entities, nor does it distinguish between the living and the dead. In addition, if there isn’t an exact match for the name nearby, you may end up targeting an entity with a similar name instead.
* Instead of targeting an entity by name, you can target your target’s unit ID. Here is a current partial list of unit IDs:
o player = the current player
o pet = the current player’s pet
o party# = the party member with the value’s position in the group configuration (excluding the player himself), where # is 1, 2, 3 or 4
o partypet# = the pet of the party member with the value’s position in the group configuration, where # is 1, 2, 3 or 4
o raid# = the raid member with the value’s position in the raid, where # is a value from 1 through 40. The # has no relation to which group a given member is in. In addition, raid1 is always the raid leader, and the last number in a raid is always the player himself. Thus, in a 25-person raid, raid25 would be the player’s ID.
o raidpet# = the pet of the raid member with the value’s position in the raid, where # is a value from 1 through 40
o mouseover = the unit over which the mouse is currently hovering. This unit ID is of particular use in healing macros, so that you can quickly heal someone with a mouseover without deselecting your current target (usually the main tank).
If you add “target” at the end of any of these unit IDs, you will reference that entity’s target: for instance, “playertarget.”
* The commonly used /assist macro may be among the first you ever make, usually on request from another player in a group situation. The simplest form is “/assist player name,” although you can use any of the unit IDs seen above. This macro is often used to coordinate focus fire attacks and is extremely useful in both PvP and PvE.
* The variable %t can be used in macros to indicate your current target. This variable is useful for social macros: it plugs your current target’s name into whatever you’re saying. You’ll find an example of this in the next section.
* The /targetlasttarget command switches your target to the player or monster you had targeted last. This can be quite useful in situations where you’re quickly switching between two targets that are far apart, such as when healing another player before switching back to the main tank.
* Some additional targeting commands duplicate default key bindings but can be useful in macros. These include /targetenemy, /targetfriend, /targetparty, and /targetraid. Similar to the default Tab and Ctrl-Tab key functions, these commands will cycle through the field of players or monsters encompassed by the command. To cycle in reverse (akin to Shift-Tab), just add a 1 after the command. The /targetparty command can be useful for casting buffs: for example, spamming the macro “/targetparty /cast Power Word: Fortitude” will cycle through a priest’s party and cast that buff on each party member.

–==≡≡ Table of Contents ≡≡==–

* Part I: Basic Macros
o What is a macro?
o How do I make a macro?
o How do I cast spells?
+ Notes about spell names and ranks
o How do I use an item/trinket?
o Multiple actions with one click
o Targeting
+ /target
+ Other targeting commands
# /assist
# /cleartarget
# /targetlasttarget
# /targetenemy, /targetfriend
# /targetparty, /targetraid
o How do I control my pet?
o Controlling button feedback and the question mark (?) icon with #show
o Other slash commands
+ Equipping items
+ Sequencing spells and items
+ Random spells and items
+ Attacking
+ Action bar manipulation
+ Removing buffs
+ Leaving a form
+ Stopping a cast
+ Halting a macro early
+ Dismounting
+ Simulating button clicks
o Advanced Scripting
+ What scripts can’t do
+ So, what is a script?
* Part II: Macro Options
o What are macro options?
o Commands that accept options
o [target=unit]
o Syntax overview
+ General options syntax
+ Condition syntax
+ Empty parameters
+ Empty conditions
+ [target=] vs. unit parameters
o Conditionals
+ Complete list
+ help & harm
+ exists
+ dead
+ stance
+ stealth
+ modifier
# modifier variables
+ button
+ equipped
+ channeling
+ actionbar
+ pet
+ combat
+ mounted, swimming, flying, indoors & outdoors
+ flyable
+ party & raid
+ group
o Using focus
* Part III: Miscellany
o Custom Icons
o Keeping macros on multiple computers
o More Information
o Acknowledgments

–==≡≡ Part I: Basic Macros ≡≡==–

What is a macro?

A macro is simply a list of slash commands. I’m sure you are familiar with some of the more common slash commands:

* /say (/s)
* /whisper (/w, /talk, /t)
* /emote (/e, /em, /me)
* /dance
* Oh, and for you PvPers out there, I mustn’t forget /spit

With macros, not only can we issue commands like these from action buttons, but we can also use many of them at once. Each unique command goes on its own line and is written exactly as you would type it in the chat box. For instance, if you wanted a macro that yelled “Everybody, dance now!” and burst you into dance, you would write it thus:

/y Everybody, dance now!

/dance

A mostly complete list of slash commands is available at http://www.wowwiki.com/List_of_Slash_Commands though at the time of this writing some of the new commands in 2.0 haven’t been added. WoWWiki is a great source of additional information for macros, especially scripts using the /run command (which will be covered later).

Note: I will take this early opportunity to let you know that macros run all at once. This means that when you click the button, the macro runs each command from start to finish before returning control to the game. This has two important effects. First, if you write a macro that takes a long time to execute (like /run for i=1, 100000000 do end), the game will freeze for as long as it takes to run the macro.

Second, and arguably more important, there is no way to wait in a macro without freezing the game. This fact will become much more apparent when we start dealing with the /cast command and its ilk. Some addons can provide a way to issue a command at a later time, but they can only be used for “benign” functions like chatting, emotes, and issuing commands to other addons (though equipping weapons in combat is allowed).

Basic Commands

/?, /h, /help
Displays some help about using various commands.

/a, /assist [player]
Assists [player] or your current target by targetting what they are targetting.

/camp, /logout
Starts the logout progress, after which you will be returned to the Character Select screen.

/cast, /spell
Casts the spell or uses the ability .

/combatlog
Toggles writing of the combat log to your hard disk.

/dismount
Dismounts you.

/equip
Equips any equip able item in your inventory.

/exit, /quit
Starts the logout process, after which World of Warcraft will completely exit.

/f, /fol, /follow [player]
Starts automatically following [player] or your current target.

/ins, /inspect [player]
Inspects [player] or your current target. Can be used across factions since patch 2.4.

/played
Displays the total amount of time played.

/rand, /random, /rnd, /roll [minimum] [maximum]
Rolls a random number between [minimum] and [maximum], inclusive. If only one number is given, then the range is defined as 1 to that number. If no numbers are given, then 1 to 100 is used. This number is then displayed to everyone in the same party or raid group as yourself and to everybody within /say range.

/tar, /target
Attempts to target the player named by . (See TargetByName for details of how this works.)

/time
Displays the current in game time. (This is the time displayed on the clock tooltip.)

/tr, /trade [player]
Brings up the trade dialog with [player] or your current target.

/use [item]
uses the specified item (food, trinkets ect)

/who [search]
Searches based on the given parameter, or runs a default search if no search is specified. The results of the search will be listed in the chat window. If no search is specified, the search dialog will be displayed.

Chat Commands

These commands are used to say things to other players. Unless otherwise noted, these channels are displayed in your current language. So, for example, if a Night Elf is currently speaking in Darnassian, Human players would not be able to understand them.

/e, /em, /emote, /me
Emotes to all players in the general area, similar to /say, except displayed as “Player “. So, for example, “/emote loves the WOW Wiki.” would be displayed as “Player loves the WOW Wiki.” Unlike other chat commands, this one does not use your current language. Across faction boundaries it simply displays “Player makes some strange gestures.”

/bg
Displays to all other raid members while in a PvP battleground.

/c, /csay
Sends to all players in . This does not use your current language. You can also use /# (where # is the channel number) to send a message to .

/g, /gc, /gu, /guild
Displays to all members in your guild.

/o, /osay
Displays to all officers in your guild. (You must have the ‘Officer Chat Speak’ privilege to use this)

/p, /party
Displays to all other party members. This does not include other people in your raid group, use /raid for that.

/r, /reply
Replies to the last player to send you a /whisper

/ra, /raid, /rsay
Displays to all other raid members. While in a PvP battleground, use /bg instead.

/s, /say
Displays to other players in the general area.

/send, /t, /tell, /w, /whisper
Sends the private message to . No other players will see the message.

/sh, /shout, /y, /yell
Displays to other players in the area. The area of players that will see the message is larger than the area when /say is used.

/v
Plays the sound associated with the given voice macro .

Online Status

/afk [message]
Toggles Away From Keyboard status. status appears next to your name. This command also forces an immediate exit from any PvP battleground. If you enter a message, players sending you a /whisper will be sent this message in addition to the standard message.

/dnd [message]
Toggles Do Not Disturb status. When DND is set, you cannot receive /whisper messages. A player attempting to send a /whisper will be notified that you have Do Not Disturb set. If you specify a message, they will also be sent that message.

Friends List

/friend, /friends [player]
Adds [player] or your current target to your friends list. If nothing is targeted, your friend list will be displayed. See /remfriend.

/ignore [player]
Ignore chat messages from [player] or your current target. Use /unignore to undo this.

/remfriend, /removefriend [player]
Removes [player] or your current target from your friends list. See /friends.

/unignore [player]
Remove [player] or your current target from your ignore list. See /ignore.

More Party / Raid Commands

/i, /inv, /invite [player]
Invites [player] or your current target.

/kick, /u, /un, /uninvite [player]
Removes [player] or your current target from the party.

/pr, /promote [player]
Makes [player] or your current target the party leader if you are currently the party leader.

/split
Divides among your group. (Presumably this is an integer in copper?) Removed in patch 1.9.1 because of several incidents where People accidentially gave their money to others.

/raidinfo
See Raid timer for more information; shows remaining time on saved raid instances.
Also shows an instance ID to compare with other players (if you have the same saved ID as them, you will go into the same instance).

/rw
Send raid warning text. This is only available to raid leaders and assistants. The message appears in large letters in the middle of the screen of raid members, usually with a warning tone.

/readycheck
A ready check sends an “Are you ready?” Yes/No dialog window to all players in the raid. The raid leader will get feedback in 30 seconds on all the players who were not ready or who did not respond. Only raid leaders can do this.

Looting

/ffa
Changes the looting method to Free For All if you are the party leader.

/group
Changes the looting method to Group Loot if you are the party leader.

/master [player]
Changes the looting method to Master Looter with [player] or your current target if you are the party leader.

/needbeforegreed
Changes the looting method to Need Before Greed if you are the party leader.

/roundrobin
Changes the looting method to Round Robin if you are currently the party leader.

Guild Commands

Guild commands are used to handle various guild functions such as inviting people to the guild, leaving the guild, promoting and demoting members, and other various functions.

/gdisband, /guilddisband
Disbands the entire guild. You must be the guild leader to use this.

/ghelp, /guildhelp
This command appears to have been removed, but it would display the following:

For now, to create a guild type ‘guildcreate ‘ in the console.
‘/ginfo’ gives some basic information about your guild
‘/g ‘ sends a chat message to all members of your guild
‘/o ‘ sends a chat message to all officers in your guild
‘/ginvite ‘ invites another player to join your guild
‘/gremove ‘ removes a player from your guild
‘/gpromote ‘ promotes a player one rank within your guild
‘/gdemote ‘ demotes a player one rank within your guild
‘/gmotd ‘ sets the guild’s message of the day
‘/gquit’ removes you from your guild
‘/groster’ gives an entire guild roster
‘/gleader ‘ sets another player as the guild leader
‘/gdisband’ disbands your guild

/ginfo, /guildinfo
Gives basic information about your guild.

/ginvite, /guildinvite [player]
Invites [player] or your current target into your guild. You must be an officer to use this command.

/gleader, /guildleader [player]
Changes the guild leader to [player] or your current target. The player must already be a guild member. Only the guild leader can use this.

* Note: The new guildleader needs to be online at the moment you want to give it.

/gquit, /guildquit
Leaves your current guild.

/gmotd, /guildmotd
Changes the guild Message of the Day to . You must be an officer to use this command.

/gpromote, /guildpromote [player]
Promotes [player] or your current target.

/gdemote, /guilddemote [player]
Demotes [player] or your current target.

/groster, /guildroster
Displays the guild roster

/gremove, /guildremove
Removes [player] or your current target from your guild. You must be an officer to use this command.

/saveguildroster
Saves a GuildRoster.txt (tsv dos file) in \World of Warcraft\Logs\
Name Level Class Location Rank Note Timestamp (0=online) in tab separated format.

Channel Commands

These are commands use to manipulate channels. Channels are very similar to IRC rooms. General, Trade, and LocalDefense are all examples of channels, but the /join command can be used to create arbitrary server-wide channels.

below is a numeric channel number that is defined when you enter the channel. You can list current channel numbers using /chatlist. (You can also use the channel name?) on the other hand is a named channel. Channels are unique to a given faction. Channel names cannot contain spaces.

/ann, /announce
Toggles announcing when players enter or leave .

/ban
Prevent from joining . The player is still in the channel, use /ckick to remove them from the channel. See /unban for the reverse. (You need to be a moderator to do this?)

/c, /csay
Sends to all players in . This does not use your current language. You can also use /# (where # is the channel number) to send a message to .

/chatinvite, /cinvite Invites to ?

/chan, /channel, /join [password]
Joins , with an optional password if the channel is password protected.

/chat, /chathelp
Displays the following information about the commands within this section:

Chat commands:
/#, /c, /csay – Send text to channel # (E.G. /1 Hi!)
/chat, /chathelp – This help
/join, /channel, /chan – Join a channel
/leave, /chatleave, /chatexit [channel] – Leave a channel (or all channels)
/chatlist, /chatwho, /chatinfo [channel] – List channels, or channel members
/password, /pass – Change password
/owner [player] – Display or change channel owner
/mod, /moderator, /unmod, /unmoderator – change a player’s moderator status
/mute, /squelch, /unvoice, /unmute, /unsquelch, /voice – change a player’s permission
/cinvite, /chatinvite – invite a player to a channel
/ckick – kick a player off a channel
/ban, /unban – ban/unban a player from a channel
/announcements, /ann – toggle join/leave announcements on a channel
/moderate – toggle moderation on a channel
/afk, /dnd – Set your Away From Keyboard or Do Not Disturb flags

/chatexit, /chatleave, /leave [channel]
Leaves all channels or only [channel] if specified.

/chatinfo, /chatlist, /chatwho [channel]
Lists available channels, or players in [channel] if specified.

/ckick Kicks from . (You need to be a moderator to do this?)

/moderate
Toggles moderation on (You need to be channel owner to do this?) Moderation must be on for /mod, /mute, /unmod, and /unmute to work.

/mod, /moderator Grants moderator status on . See /unmoderator for the reverse. (You need to be channel owner to do this?)

/mute, /squelch, /unvoice Prevent from speaking in . See /unmute for the reverse.

/owner [player]
Displays the owner of if [player] isn’t given. If [player] is given, then grants [player] ownership of ? (You need to be channel owner to do this?)

/pass, /password Sets the password for to

/unban Allows to join . See /ban for the reverse. (You need to be a moderator to do this?)

/unmod, /unmoderator Revokes ‘s moderator status on . See /moderator for the reverse. (You need to be channel owner to do this?)

/unmute, /unsquelch, /voice Allow to speak in . See /mute for the reverse. (You need to be a moderator to do this?)

PVP

/pvp
Activates the PvP Flag.

/duel [player]
Attempts to start a duel with [player] or your current target. The player will have to accept the duel before it is started.

/concede, /forfeit, /yield
Cancels a duel that’s currently in progress.

/teamquit [2v2, 3v3, 5v5]
Leave Arena Team

/teamdisband [2v2, 3v3, 5v5]
Disband Arena Team

/teaminvite [2v2, 3v3, 5v5] [player]
Invite [player] to your Arena Team

/teamcaptain [2v2, 3v3, 5v5] [player]
Sets new team leader

Console / Scripting / Macros

/console
Attempts to run within the console.

/run, /script