Other Basic Macro Command

1 Star2 Stars3 Stars4 Stars5 Stars (9 votes, average: 5.00 out of 5)
Loading ... Loading ...

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())

—————-

Setting raid target icons
SetRaidTargetIcon(“target”, 1); — Star
SetRaidTargetIcon(“target”, 2); — Circle
SetRaidTargetIcon(“target”, 3); — Diamond
SetRaidTargetIcon(“target”, 4); — Triangle
SetRaidTargetIcon(“target”, 5); — Moon
SetRaidTargetIcon(“target”, 6); — Square
SetRaidTargetIcon(“target”, 7); — Cross
SetRaidTargetIcon(“target”, 8); — Skull
SetRaidTargetIcon(“target”, 0); — Remove RaidIcon

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

credit goes to 2.x Warrior Macros

Posted by Wow Macros
wowmacros@yahoo.com wowmacros.googletalk

Wow Macros. We provide the most complete wow macros list for all class. Paladin, Warrior, Shaman, Priest, Mage, Warlock, Hunter, Rogue. You can use this to describe yourself, which server you play, your guild or just to show off your toons or whatever. The social contact is just an example :)

Secret Gold Guide

19 Responses to “Other Basic Macro Command” Macro

  1. Bede Frank says:

    Is there a macro to sell items in certain slots?
    cheers

  2. dred says:

    i’m not very sure.probably not.but u can sell faster by using right click on item when visiting a merchant.

  3. Tsage says:

    Is there a way for me to make a macro to cast arcane intellect on every party member? such as

    /cast [target=player, party1, party2, party3, party4] arcane intellect

    or something like that?

  4. Wow Macros says:

    I believe there is nothing like that, but you can cycle through all your party members using /targetparty command. This will cycle through all your party member one at a time. and if you want it reverse, just add 1 after it.

    so make it like this:
    /targetparty
    /cast Arcane Intellect

    in reverse:
    /targetparty 1
    /cast Arcane Intellect

    or for raid:
    /targetraid
    /cast Arcane Intellect

  5. fitzy says:

    is their a way to make it perform an action only if a spell was being cast, say you wanted a yell macro but only when your charge spell was in range and had you had charged the target?

  6. roama1 says:

    how do i assign a macro to one of the F buttons?

  7. Stickolas says:

    Is there any way to make a macro run another macro? I need it because there is not enough space for the macro to add all the characters..wondering if there is a way to chain them together.

  8. Wow Macros says:

    sorry for being REALLy late to reply this. i have been very busy this part of year. for fitzy, try checking out macro guide by cogwheel.
    http://forums.worldofwarcraft.com/thread.html?topicId=96143900&sid=1
    i will try find that macro later.

    for roama1, i don’t think there is something like that. you can always use the main bar for your macros. it is assign with key 1 to 9 and dash and equal sign ‘=’. use it.

    for stickolas, i believe that there is nothing like that. You could make a simple bot out of it if it exist and blizz won’t allow that.

    thanks all. cheers!

  9. wes says:

    Hey, is there a macro that say will
    /cast Inner Fire

    “/cast time 10″

    im wana cast inner fire every 10 min with out having to click on it, so just wana click the macro once then thats it

  10. code says:

    are you serious, stop being lazy

  11. dan says:

    yes, there’s got to be a way to sell items in a specific slot…working on it right now…but for now, here’s one that sells all the gray items in your bags…

    /script for bag=0,4 do for slot=1, GetContainerNumSlots(bag) do local name = GetContainerItemLink(bag,slot) if name and string.find(name,”ff9d9d9d”) then DEFAULT_CHAT_FRAME:AddMessage(“Selling”..name) UseContainerItem(bag,slot) end end end

    If you don’t like it telling you what u just sold…then just take out the line starting with DEFAULT_CHAT and ending with ..name)

    I’m working on one that will sell all the items in one particular bag, so that all you have to do when u visit a vendor is have everything you want to sell in that bag and just click the macro…but having some troubles…

  12. dan says:

    Ok…so this sells all the items in bag slot 4 when you’re at a vendor. Up to a 16 slot bag…if you have great you just need to add those to the bottom of the macro…if you want to use a different bag other then the 4th slot…then just change the 4 to 1,2 or 3.

    /use 4 1
    /use 4 2
    /use 4 3
    /use 4 4
    /use 4 5
    /use 4 6
    /use 4 7
    /use 4 8
    /use 4 9
    /use 4 10
    /use 4 11
    /use 4 12
    /use 4 13
    /use 4 14
    /use 4 15
    /use 4 16

  13. Wow Macros says:

    roama1, there is a way to do that. checkout my comments here about key binding.

    Druid Macros

  14. Grip says:

    Is there a way to have a macro that if its clicked (lets say Polymorph) it will poly your target BUT if you have a focus, it will poly that instead?

  15. enkidu says:

    simple attack macro…

    /startattack
    /cast earthshock

    …but will it reset the swingtimer every time its used?

    thanks in advance for any help

  16. Jim says:

    How do I incorporate an alt code into a macro

  17. Sam says:

    is there a way to chain macros in a macro? kind of what Stickolas said but like this…
    say i have 3 macros, 1 offers to sell something through trade, the other shows my enchanting book, and the last has a note about the enchanting, is there a way to run all 3 macros using 1 macro(since it wont activate a global cooldown)?
    thank you.

  18. Rodney says:

    Is there any way to create a macro to randomly choose a command?

    I’d like to preface my attack macro with several random options for my character to shout prior to attack “Have at Thee!”, “Ready to Die?”, etc. or even perhaps a rude gesture.

    I wouldn’t want to use the same preface each time and it’d be fun to see which random one pops up!

  19. Raithe says:

    Is there a way to make a macro that yells what’s attacking you and for help in getting it to stop aggroing on you?

Leave a Reply