PDA

View Full Version : Mount Macro



Myrcaus
2007-03-12, 10:02 AM
I chatted briefly with Sabathius about this, and thought more folks might find it useful.

This macro will summon Mount A, unless ALT is held, in which case it summons Mount B. If you're already mounted, it dismounts you no matter which mount you have summoned.

/cast [nomodifier:alt,nomounted] Mount A; [modifier:alt,nomounted] Mount B
/dismount [mounted]

To make sure you get the correct string in "Mount A", you can shift-click the item while writing the macro and it will paste the name.

Soy
2007-03-12, 10:04 AM
Would it be possible to beef up the macro so that it equips and unequips your Riding Crop as well?

Myrcaus
2007-03-12, 10:13 AM
Probably... I haven't messed with /equip much. I will test that out this evening.

I use ItemRack for that currently, but it might be nice to have it self-contained.

Sol
2007-03-12, 10:15 AM
yeah, itemrack has excellent mount on equip support.

Potpie
2007-03-12, 10:16 AM
So does Outfitter. Which I pimp incessantly whenever ItemRack is mentioned. ;)

Myrcaus
2007-03-12, 10:18 AM
I'd like to reduce my dependence on addons, so Soy's suggestion goes to my heart. I'll make it work without an addon. =)

Myrcaus
2007-03-12, 04:48 PM
Here's the one I just tested (works perfectly):

/cast [modifier:alt,nomounted] Summon Dreadsteed; [nomodifier:alt,nomounted] Green Windrider
/equip [nomounted] Carrot on a Stick; [mounted] Vengeance of the Illidari
/dismount [mounted]

Note that the Mounted trinket will always go into slot 1 (top); so the other trinket named should be the one that's normally there.

This also works only because that's my only situational trinket; I have three peices of riding gear currently. I can't swap them all with a macro, because I don't know what to swap back *to* - the addons handle this, but a macro couldn't. Once I get a Riding Crop, that won't matter, so I'll use the macro instead.

Myrkris
2007-04-23, 05:10 PM
I'm finally getting around to macroing some stuff, and am going to try out this "shaman special" version:

/cast [modifer: combat,nomounted] Ghost Wolf; [modifier:alt,nomounted] Horn of the Frostwolf Howler; [nomodifier:alt,nomounted] Blue Windrider
/dismount [mounted]

Myrcaus
2007-04-24, 02:25 PM
Try it this way, Myrkris:

/cast [nomodifier:alt,combat,nomounted] Ghost Wolf; [modifier:alt,nocombat,nomounted] Horn of the Frostwolf Howler; [nomodifier:alt,nocombat,nomounted] Blue Windrider
/dismount [mounted]

Every time you specify a conditional for a particular spell, you want to negate it for the other options, hence the nocombats for the regular mounts and the nomodifiers for the non-ground mount. An alternative is to use a less compounded command string, like so:

/cast [modifier:alt,nomounted] Horn of the Frostwolf Howler
/cast [combat,nomounted] Ghost Wolf; [nocombat,nomounted] Blue Windrider
/dismount [mounted]

Myrcaus
2007-04-24, 02:31 PM
After 2.1, you can use the new "flyable" conditional. This will let you automatically summon your ground mount in the old world. The following macro retains the ground mount alt-override:

/cast [modifier:alt,nomounted] Ground Mount
/cast [flyable,nomounted] Flying Mount; [noflyable,nomounted] Ground Mount
/dismount [mounted]

Note the lack of a flyable conditional in the second line; since this line is not part of a compound cast command like Myrkris' example, it doesn't need the negator. To make it shamany:

/cast [modifier:alt,nomounted] Ground Mount
/cast [flyable,nomounted] Flying Mount; [noflyable,nomounted] Ground Mount
/cast [combat] Ghost Wolf
/dismount [mounted]

If you are in combat and hit that macro, you'll get error spam about not being able to do the first two lines, but meh. A small price to pay. =)

Aessina
2007-04-24, 02:40 PM
After 2.1, you can use the new "flyable" conditional. This will let you automatically summon your ground mount in the old world. The following macro retains the ground mount alt-override:

/cast [modifier:alt,nomounted] Ground Mount
/cast [flyable,nomounted] Flying Mount; [noflyable,nomounted] Ground Mount
/dismount [mounted]

Note the lack of a flyable conditional in the second line; since this line is not part of a compound cast command like Myrkris' example, it doesn't need the negator. To make it shamany:

/cast [modifier:alt,nomounted] Ground Mount
/cast [flyable,nomounted] Flying Mount; [noflyable,nomounted] Ground Mount
/cast [combat] Ghost Wolf
/dismount [mounted]

If you are in combat and hit that macro, you'll get error spam about not being able to do the first two lines, but meh. A small price to pay. =)

Shouldn't the shammy macro be:
/cast [modifier:alt,nomounted] Ground Mount
/cast [flyable,nomounted] Flying Mount; [noflyable,nomounted] Ground Mount
/cast [combat,nomounted] Ghost Wolf
/dismount [mounted]

I assume you can be mounted and in combat, ie you got aggro for something. So I assume you'd want to dismount when you hit this key, not try to cast Ghost Wolf.

Myrkris
2007-04-24, 02:42 PM
Cool, I'll try those out.

Now, if I can figure out a better way to program macros for my G11 than the keystroke recorder, I'll be happy!

Myrcaus
2007-04-24, 02:43 PM
Yeah, you can do it that way. The original will still work, though, since casting Ghost Wolf will fail if you're mounted.

Doing it your way suppresses errors, but I don't care about errors as much as brevity in macros, since they are character limited.

Myrcaus
2007-04-24, 02:47 PM
Though I'm sure you'll find it useful to do so, you don't need a G11 to trigger these. In fact, you don't even need them on a visible spell button in your UI. You can assign a macro directly to a keystroke, thusly:

/script SetBindingMacro("CTRL-M", "Mount");
/script SaveBindings();

If your mount macro is called Mount, those two commands will assign CTRL-M to that macro. Once you've done this, the only way to clear it is to overwrite that key assignment with a different binding. To get rid of it entirely, do this:

/script SetBindingMacro("CTRL-M","");
/script SaveBindings();

Welcome to MacroHax Level 2!

Myrkris
2007-04-24, 02:52 PM
I don't need the G11 to trigger those, I need it to single-key trigger combat abilities. I don't have enough hotkeys available.