Friday, October 24, 2008

Non-Combat Pet Macro

From Free Candy For Everyone, a nice macro to pull out a random non-combat pet:

/script CallCompanion("CRITTER", random(1, GetNumCompanions("CRITTER")))

3 comments:

Ataris said...

Thank you very much! I had been doing it manually myself (/userandom, or something like that, but I had to change it when obtaining any new pet), so this will come in handy!

How about mounts?

Rohan said...

The problem with mounts is you can't really differentiate between slow ground mounts, fast ground mounts, slow flying mounts, or fast flying mounts.

If you want a flying mount, you might end up pulling out your old warhorse from level 40.

Blizzard would need to add some way to specify speed and ground/flying type before a random mount macro makes sense

Anonymous said...

You CAN choose between a ground and a flying mount in one macro by using the 'flyable' parameter, but I don't think you can choose randomly between fast and slow now that mounts are in a spellbook. (Before you could just carry fast mounts but not the slow ones.)

I'm a hunter and I like to change aspects when I mount and dismount, so I use:

#showtooltip
/cast [nomounted, noindoors] !Aspect of the Monkey
/cast [flyable, nomounted, noindoors] Swift Green Wind Rider; [nomounted] Swift Gray Wolf
/cast [mounted] !Aspect of the Hawk
/Dismount [mounted]

You can add "noflying" to the Dismount parameter to prevent yourself from accidentally casting a spell/dismounting and falling to an ugly death... but I'm such a doofus when it comes to landing that I want to be able to dismount quickly when I'm close enough to the ground. (*^_^*)