- 注意, 此版本没有 @focus 宏 , 也就是说
/focus target
/target focus
/cleanse focus
/polymorph focus
这些都不能用, 除非装了支持focus 的 addon , not necessary
- 如何做到只 turn direction , but not follow , 也就是 /follow , 只转向, no additional movement
/是否可以 /follow sone /stopmacro
- macro conditional
Conditionals are used to control actions based on information.
1 |
Syntax: /command [conditional] parameter; [conditional] parameter |
Conditionals are enclosed within square brackets ,seperated by a comma if more than one.
The comma can be seen as an “and” 逻辑与
Conditionals/parameter groups are separated by semicolons. 就是分号
The semicolons can be seen as an “else if”
Example:
1 |
/cast [Condition] Spell1; Spell2 |
IF Condition is true : Cast Spell1 ELSE Cast Spell2
1 |
Example : /cast [help,@focus] Renew |
When you click this macro , first the [help,@focus] condition is tested and when true (you can cast a helpfull spell on your focus ) Renew is cast.
所有 condition 列表 (for 1.13 )
[combat] : True if you are In combat
[exists] : True if you have a tartget
[dead] : True if Target is dead
[harm] : True if you can cast harmfull spells on the target
[help] : True if your target can receive a beneficial effect
[mod:shift] , [mod:ctrl] , [mod:alt] True if you hold the given key
[stealth] : True if stealthed
[vehicleui] : True if the player has a vehicle UI
[unithasvehicleui] : True if the target of the macro has a vehicle UI
[party] : True if target is in your party
[stealth] : True if stealthed
[stance] Returns TRUE if you are in the given stance or shapeshifting form [stance:#] or [form:#] also works with forms for druids
[equipped] Returns TRUE if the given item is equipped [equipped:item name] Can also use shield, two-hand, one-hand
[actionbar] Returns true if you have that specific action bar shown [actionbar:1] The action bar pages
All targeted conditionals are evaluated on your current target by default. You can change the target of the macro by using a targetting modifier.
[@focus] evaluates conditionals based on your focus target.
[@player] evaluates conditionals based on yourself.
[@mouseover] evaluates conditionals based on the target you mouse is hovering over.
[@cursor] evaluates conditionals based on the position of your mouse cursor.
没有 [party1] 或者 [party2] … 吗 ?
target Changes the target of your conditional/command to a different unit [target=unittype] or [@target] can also use @target or @name
-
- #show 和 #showtooltip 的用途
Notice how i add “#show” or “#showtooltip” at the top of every macro.
#show shows the ability icon instead of the icon you suggested and its cooldown. #showtooltip replaces the icon you selected with the actual ability tooltip (the information text about it etc) and also adds the cooldown.
比如 qiding yanbao , show yanbao ‘s icon and cooldown
- switch weapon and shield
Having problems with that weapon enchant proc breaking your control? Or do you simply wish to swap your weapons without having to go to your equipmentmanager or bag?
Well then, all you have to do is add this code to the ability you want to swap weapon on.
Ofcourse you can also just put it on a button without an ability in it.
Main Hand:
/equipslot 16 WEAPON NAME
Off Hand:
/equipslot 17 WEAPON NAME
Ranged:
/equipslot 18 WEAPON NAME
- 做不到的
Although possebilities seem endless.. there are some actions that can not be done with macros.
Theise include:
Checking for position
Checking the amount of class resources or health you have left
Cooldown of abilities (posseble with scripts, but not with an ordinary macro)
Recognize procs
Checking distance to target (range)
- focus 和 target的区别, 以及1.13还有没有 focus
a) 以名字定 target
/run TargetByName(“REPLACE THIS TO NPC NAME”, true) CastSpellByName(“Fire Blast”)
能不能把名字类似的都显示
- common skill ‘s new format :
a) for warlock and mage , shadow arrow and fireball , change it to
1 2 |
/target tank /cast [@focus] shadow arrow; [target=targettarget,harm,exist] shadow arrow; [target=mouseover,harm,exist] shadow arrow;shadow arrow |
this mean : shadow arrow ‘s priority is my focus > tank’s target > my mouse over > my current target
但是,首先设置 target = tank 是不是有问题 ?
b) for priest , how to heal base tank ‘s life value ?
还做不到, 因为没有基于 condition 的 trigger
- How to use items in macro
just shift + click it to past /use itemname into macro
____________________
Lets go a step further. You can also bind Item’s in your macros! Crazy huh?
Lets say, you want to use your Agility/Strength/Intellect PvP trinket along with a big cooldown:
#showtooltip
/use 13
/cast SPELLNAME
This will use the item in your upper trinketslot along with the ability you defined. For the lower trinketslot, you use “14”.
It isn’t limited to trinkets though, you can put anything in there as long as there are no restrictions:
1 Head
2 Neck
3 Shoulder
4 Shirt
5 Chest
6 Belt
7 Legs
8 Feet
9 Wrist
10 Gloves
11 Finger 1 (Top)
12 Finger 2 (Bottom)
13 Trinket 1 (Top)
14 Trinket 2 (Bottom)
15 Back
16 Main Hand
17 Off Hand
18 Ranged/Relic
19 Tabard
most useful for : dznlhf
在不失去当前target的情况下, 对team member spell buff
Use a spell on team mates without losing your target
This is really helpful for dispelling/decursing/freedoming etc. a team mate while not losing your target. Replace Boodizz with the player name and Dispell Magic with the spell you wish to use.
#showtooltip
/cast [@Boodizz] Dispel Magic;
-
- This will fear your target, but if shift is held down, it will fear your focus (can be changed to any modifier e.g. ctrl, alt)
#showtooltip
/cast [nomod] Fear;
/cast [mod:shift,@focus] Fear;
-
- 连续cast
/castsequence Fel Armor, Demon Armor;
- Using #showtooltip
When you create a macro, the standard tooltip will default to whatever you name your macro. For instance, if you set up a macro to cast Greater Heal on a target when I hover over the macro button on my action bar, it will just say ‘Greater Heal macro,’ or whatever you decide to name it. That is unless you use the “#showtooltip” command at the top of your macro commands.
Even though this is a conditional part of your macro, you don’t have to specify the name of the spell after the #showtooltip command. Instead, your tooltip will display the first ability or item you specify in the main body of your macro. That said, if you want it to display a certain spell or item when you hover over the button, you can specify its name after #showtooltip. Here’s an example of using #showtooltip in a basic macro that will cast Greater Heal:
- How to select team number
/tar party1
key bind :
for warrior , key 1 is attack , if press once again , is not attack but keep target , use for mage sheep it (shift+B) .
key 2 in battle stance is hero strike , defend stance also hero strike , it also bind warlock shadow arrow , mage fireball , paladin attack , because hero strike can raise high threat
key shift 2 in battle stance is hero strike , defend stance also hero strike , it also bind warlock and mage mozhang (not neccesary )
key 3 in battle stance is silie , defend stance is dunji , also bind warlock 3 dot
key 4 in battle stance is yanzhi , defend stance fuchou , also bind paladin release shenyin, priest zhengji , mage fire rush , warlock life xishou
key 5 in battle stance is duanjin, defend stance pojia ,also bind warlock and mage mozhang
***** when defend stance , pojia, hero strike , fuchou , all bind warlock three dot
when mod near dead , use another duanjin , it mean duanjin + paladin ‘s zhicaizhichui + mage firerush , use tank ‘s target , if no , use sq ‘s target
key 6 bind priest heal tank
key 7 bind paladin heal tank
key 8 bind priest shield tank
key 9 bind priest huifu tank
key 0 paladin wudi
For priest ,
Ctrl 1-5 heal party number 1-5
shift 1-5 shield party number 1-5
alt 1-5 huifu party number 1-5
key J mean if leader have help target , shield it , else jianyin self
key K mean scare mods
key g mean dispell magic effect
shift + K mean warlock kongju multi target
Ctrl + k mean warlock scare single mob
for mage ,
sheep macro
1 2 |
/target tank /cast [target=targettarget,harm,exist] sheep; [target=mouseover,harm,exist] sheep ;sheep |
key B mean
1 2 |
/cast binhuan /cast aobao |
B also bind priest heal mage , also bind warlock ‘s firerain which will cast make mage as target
shift B mean only binghuan
shift + F mean all follow tank ,
C mean only paladin follow tank
Key F mean paladin : zhicaizhichui
参考文章 : http://wowmacros.info/general_macros.html
https://wowwiki.fandom.com/th/wiki/Macro
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 |
____________________ 1. Introduction ____________________ I see many people ask for macros every day, often either for their class or their specific playground. I hope the examples are simplistic enough for a regular player to understand the basics and start creating their own macros. The aim of the Guide is to provide the best posseble insight in the working of macro's. And to give players who have never bothered to make any out of stress a chance to step up and create their own. I know you guys hate long posts, so im borrowing Dalrian's layout to make it overseeable and hopefully very clear. If you really are interested in using, understanding and making your own macros I do recommend reading it all. Contents: 1. Introduction 2. What is a macro and how do i make one? 3. How does a macro work? 4. Macroing abilities and item's -4.1 Abilities -4.2 Item's 5. Targets 6. Castsequence 7. Modifiers and Stances -7.1 Modifiers -7.2 Stances 8. Weapon Swapping 9. What can you not do with a macro? ____________________ 2. What is a macro and how do i make one? ____________________ Macros allow you to perform multiple actions by only using 1 button. Macros can make things much easier if you use certain abilties in sequence a lot. Or if you want to save space on your actionbars. Basically, macroing is a simple form of coding and it performs the actions in line. Usually they are quite simple, but that doesn't always have to be that way. You can make pretty advanced pieces of code to make your macro do crazy things. You can for example, as a Warrior, have 1 button do different things in Defensive Stance, Battle Stance and Berserker Stance. You can access the macro-creation window by either pressing escape and then the "macro" menu button. Or you can type /macro in your chatbox and hit enter. Either have the same effect. ____________________ 3. How does a macro work? ____________________ As i explained in 2, a macro is a code that performs one or multiple actions with the use of only 1 button. It will always follow the code from top to bottom and from left to right. Meaning that an ability placed on the first line, is first to be checked to meet its criteria. Notice how i add "#show" or "#showtooltip" at the top of every macro. #show shows the ability icon instead of the icon you suggested and its cooldown. #showtooltip replaces the icon you selected with the actual ability tooltip (the information text about it etc) and also adds the cooldown. ____________________ 4.1 Abilities ____________________ Alright so lets start easy. You all probebly often use certain spells in combination. For example a Paladin using his/her Avenging Wrath (Wings) together with Divine Shield. It would look like this: #showtooltip /cast Avenging Wrath /cast Divine Shield This is useful because it is fast, and goes with only 1 press of a button rather than 2. Careful though, because even though it looks to be pretty much instant, the macro still performs the one after the other. Beware, this is not posseble with all abilities. Many of your abilities have a Global Cooldown, and those that do only go together in a macro like this with a spell that is not on the Global Cooldown. If you try to macro two spells that are both on the Global Cooldown in this way then the macro will only perform the first ability and fail to perform the second. There is a way around this that comes up later. ____________________ 4.2 Item's ____________________ Lets go a step further. You can also bind Item's in your macros! Crazy huh? Lets say, you want to use your Agility/Strength/Intellect PvP trinket along with a big cooldown: #showtooltip /use 13 /cast SPELLNAME This will use the item in your upper trinketslot along with the ability you defined. For the lower trinketslot, you use "14". It isn't limited to trinkets though, you can put anything in there as long as there are no restrictions: 1 Head 2 Neck 3 Shoulder 4 Shirt 5 Chest 6 Belt 7 Legs 8 Feet 9 Wrist 10 Gloves 11 Finger 1 (Top) 12 Finger 2 (Bottom) 13 Trinket 1 (Top) 14 Trinket 2 (Bottom) 15 Back 16 Main Hand 17 Off Hand 18 Ranged/Relic 19 Tabard Just make sure the item acually has a use effect otherwise nothing will happen ^^ Eléctrica <DO NOTHING AND WIN> 85 Blood Elf Rogue 7575 9311 posts 10 Jan 2012 (Edited) 22 ____________________ 5. Targets ____________________ Macro's can help you switch targets very fast, or even allow you to cast spells and abilities at players who aren't even your target at all! For example: #showtooltip /cast [@focus] SPELLNAME 注: in 1.13 , no @focus anymore This will cast the defined spell on your Focus. It does not have to be in your target at all. But i am not even getting started. You can do any of the following: [@target] [@player] (< casts at self regardless of target) [@PLAYER] (< replace with anyones name to cast at them regardless of target) [@targettarget] (< this is basically what it says, the target of your target. So if you target player A, and player A targets player B, this macro will cast at player B.) [@focus] [@arena1] up untill [@arena5] [@party1] up untill [@party5] [@raid1] up untill [@raid40] Just to grab one more example: #showtooltip /cast [@arena3] SPELLNAME This will cast the spell at the third enemy arena player. And if you have a macro which should remove your target after its use you can add the following line at the end: /cleartarget Or if you changed target to run a specific macro and you want your previous target back after completion: /targetlasttarget ____________________ 6. Castsequence ____________________ Right, remember about the Global Cooldown i told you about earlier? Well, using this type of macro you can use abilties one after another even if they are on the Global Cooldown. We are not going to cheat though (aww :/ ) so you will still have to wait that Global Cooldown out ;) Alright so lets say you are a rogue (excuse me for coming back at the class, but its just the one im most familiar with :P). It's always nice if you can quickly do that (focus) shadowstep kick and not even having to move your fingers around! This is one i am using myself: #show /castsequence [mod:alt, @focus, stance:0/2] reset=2 Shadowstep, Kick /castsequence [mod:alt, @focus, stance:1/3] reset=2 Shadowstep, Sap /castsequence [stance:1/3] reset=2 Shadowstep, Sap /castsequence [stance:0/2] reset=2 Shadowstep, Kick Right so let me tell you how it works before i tell you what it does. The "/castsequence" is basically a queueing code which jumps to the next ability once the one before that has been used. The "reset=2" means that the macro will reset to its original state after 2 seconds of the first use. But you can also put an ability in there.. or a combat definition. Time is always in seconds. The ability by name (maybe also by spellid, can anyone confirm?), Ill get back to the [combat] stuff later. So for resetting upon an ability it would look like this: #showtooltip /castsequence reset=Kick Shadowstep, Kick And for combat it would look like this: #showtooltip /castsequence reset=nocombat Shadowstep, Kick This would reset it upon leaving combat. Ofcourse you can turn it around and make it "reset=combat" to make it reset upon entering combat. After that come the abilities themselves, just put in their names in the right order you want them to be executed. So if you want Shadowstep first, put Shadowstep first in the queue as i did in my example. But if you want Kick first, then put Kick first in line and it would cast Shadowstep second. Back to the macro: #show /castsequence [mod:alt, @focus, stance:0/2] reset=2 Shadowstep, Kick /castsequence [mod:alt, @focus, stance:1/3] reset=2 Shadowstep, Sap /castsequence [stance:1/3] reset=2 Shadowstep, Sap /castsequence [stance:0/2] reset=2 Shadowstep, Kick What this does, is many things in one: It casts shadowstep at my target in all stances. But if i hold ALT while pressing it, it will shadowstep my focus instead. That is not everything though. Because if i would press it twice in rapid succession in stealth or Shadow Dance, i will also sap the person i shadowstepped. But if I would be in Normal stance (no stealth, dance), or in Vanish state it will Shadowstep my target and quickly Kick it when pressed twice. Again, the ALT focus modifier is fully functional for both of those. So if i would hold alt while doing the above, it will go to my focus instead of my target. Eléctrica <DO NOTHING AND WIN> 85 Blood Elf Rogue 7575 9311 posts 10 Jan 2012 (Edited) 16 ____________________ 7.1 Modifiers ____________________ I already gave you a little sneak-peak at the Castsequence part, but ill explain it here. The following modifiers can be put in a macro: [combat] or [nocombat] Example: #showtooltip /cast [combat] vanish /cast [nocombat] stealth Easy one. [combat] means "when in combat". And [nocombat] means "when not in combat". [stance:x] Example: #showtooltip /cast [stance:1/3] Sap /cast [stance:0/2] Gouge This will check if the stance you defined matches the players current stance, all the classes stances are defined a bit down below. [mod] or [mod:alt/shift/ctrl] Example: #showtooltip /cast [mod:shift] Shiv; Backstab One of my favorites because you can literally use it for anything. Shiv will be cast on shift hold. Regular press is Backstab. [harm] or [noharm] Example: #showtooltip /cast [@focus, harm] Blind; Blind This one goes well with the target modifiers. This macro will cast Blind at your Focus but ONLY if its a hostile target. If the target is friendly it skips and casts Blind on target. [help] I don't think i have to give an example of this one, it is basically the opposite of [harm]. [dead] or [nodead] Example: #showtooltip /cast [@focus, nodead, help] tricks of the trade; tricks of the trade The last one, this one casts tricks of the trade on your focus. But only if your focus target is alive and friendly. This is useful if you want to cast tricks of the trade on your focus but have a boss there instead, or a dead player. So you can manually target it without getting an error. ____________________ 7.2 Stances ____________________ For a Rogue its the following: 0 = Normal 1 = Stealth 2 = Vanish 3 = Shadow Dance For a Warrior: 0 = No stance (does that even apply?) 1 = Battle Stance 2 = Defensive Stance 3 = Berserker Stance Druid: 0 = Normal 1 = Bear 2 = Aquatic 3 = Cat 4 = Travel 5 = Moonkin/Tree | Swift Flight Form* 6 = Swift Flight Form* *Only if feral. Priest: 0 = Normal 1 = Shadowform Warlock: 0 = Normal 1 = ???? 2 = Metamorphosis Death Knight's do not appear to have Stances, but feel free to add information on that. And the rest of the classes don't have any stances that would prove beneficial. ____________________ 8. Weapon Swapping ____________________ Having problems with that weapon enchant proc breaking your control? Or do you simply wish to swap your weapons without having to go to your equipmentmanager or bag? Well then, all you have to do is add this code to the ability you want to swap weapon on. Ofcourse you can also just put it on a button without an ability in it. Main Hand: /equipslot 16 WEAPON NAME Off Hand: /equipslot 17 WEAPON NAME Ranged: /equipslot 18 WEAPON NAME ____________________ 9. What can you not do with a macro? ____________________ Although possebilities seem endless.. there are some actions that can not be done with macros. Theise include: Checking for position Checking the amount of class resources or health you have left Cooldown of abilities (posseble with scripts, but not with an ordinary macro) Recognize procs Checking distance to target (range) |
mage special macro
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
2. Macros for Classic Mages 2.1. StopCasting Macro #showtooltip /stopcasting /cast Counterspell Sometimes, you really want to get a spell out as soon as possible, such as when using Counterspell Icon Counterspell on an enemy caster. For these cases, it is very useful to have a /stopcasting macro, ensuring that your current cast does not interfere with the timing of your interrupt. Use it liberally with other types of crowd control, such as Polymorph Icon Polymorph and Iron Grenade Icon Iron Grenade. 2.2. Buff Macro #showtooltip /castsequence reset=2 Arcane Intellect, Frost Armor This macro will allow you to quickly buff yourself, while still having a reset timer low enough that it will not be a problem to buff your allies with it. You just need to wait slightly before pressing it for the next ally. If you prefer to buff on mouseover, feel free to add [target=mouseover] in between /castsequence and reset=2. 2.3. Easy Water and Food Creation Macro #showtooltip /castsequence reset=4 Conjure Water, Conjure Food This macro allows you to automatically create your maximum rank water and food without needing new buttons for new ranks, in a single button. If you wish to only create water (the most common and desired consumable), just wait a second for the macro to reset instead of pressing it again for food. 2.4. Modifier Key Macro #showtooltip /cast [mod:alt] Frostbolt(Rank 1); Frostbolt This macro will cast rank 1 Frostbolt if you press it while your "alt" key is also pressed and maximum rank Frostbolt otherwise. This is handy for both saving buttons and making use of your muscle memory of the Frostbolt button. 2.5. Combat Modifier Macro #showtooltip /cast [combat] Arcane Explosion; Arcane Explosion(Rank 1) A variation of the modifier key macro above, this one will cast Arcane Explosion maximum rank if you are in combat and rank 1 otherwise, which is useful to get Rogues out of stealth for a small Mana cost. 2.6. Ice Block Macro #showtooltip Ice Block /stopcasting /cancelaura Ice Block /cast Ice Block Sometimes you want to do a very quick Ice Block Icon Ice Block just to clear out debuffs, in which case the normal wait time built into the button to cancel its duration can be too long. For those cases, use a macro like the one above to instantly cast, and instantly cancel on the second press, Ice Block's buff. 2.7. Mouseover Polymorph and Remove Curse Macros #showtooltip Polymorph /cast [target=mouseover] Polymorph #showtooltip Remove Curse /cast [target=mouseover] Remove Curse By including [target=mouseover] in the start of your /cast macro, you can make the mentioned spell cast on whatever you are mousing over, rather than your current target. This is very useful when fighting several enemies at once, to ensure you do not lose track of your main target, or immediately hit the polymorphed target by mistake. It is also more convenient to use a mouseover macro for Remove Curse Icon Remove Curse while in a group. 2.8. Spammable Arcane Missile Macro #showtooltip Arcane Missiles /cast [nochanneling:Arcane Missiles] Arcane Missiles You can use this style of macro to avoid wasting some of the channeling of the chosen spell by using a different action too soon. 2.9. Crowd Control into Bandage Macro #showtooltip /castsequence Polymorph, Heavy Runecloth Bandage The logic behind this macro is that the first press will use a skill that disables opponents, while the second press will immediately start a bandage for self-healing. 2.10. Rare Tagging / Targeting Macro /target Owatanka /cast Fire Blast This is the macro that will get you the tag when there are more than 5 players waiting for a respawn (otherwise just group up with them). Spam it to quickly target the named NPC and cast an instant Fire Blast Icon Fire Blast, ensuring the tag in the most efficient manner possible. 2.11. Unstuck feature Macro /click HelpFrameCharacterStuckStuck /run RepopMe() This macro will start a cast that uses the unstuck feature, instantly killing you which will allow you to Spirit Resurrect at the graveyard at any point. It is pretty useful early on, as the debuff you get from resurrecting at the graveyard is very short or non-existent and it can save you a ton of walking time. Most questing guides will point you when you are supposed to do this in order to gain time. 2.12. "One Shot" PoM Pyro Macro #showtooltip Arcane Power /use 13 /use 10 /cast Arcane Power /cast Presence of Mind /cast Pyroblast The logic behind this macro is using every single cooldown available to us at the same time, followed by instantly dropping Pyroblast on the target for a massive burst of damage. |