Vanity Pet Macros

The most sought after macro for pet collectors is one that will summon a random companion from your collection with a single click. The code below does exactly that. Cut and paste it into a macro and select an appropriate macro icon (I like the pet carrier myself). You can name the macro something like "My Pet" or "Call".

/run CallCompanion("CRITTER", random(GetNumCompanions("CRITTER")))

If you want to show your pets a little more love when you call them, try the following code instead.

/script t="CRITTER"i=random (GetNumCompanions(t))c,n=GetCompanionInfo(t,i); SendChatMessage("Yay, it's my "..n.."!"); CallCompanion(t,i);

This next bit of code sent in by Xestrix creates a very cool message like so: [player] gasps as [random pet] hops out of [his/her/their (depending on player gender)] pocket!

/run g={"their","his","her"}; x=UnitSex("player");i=random(GetNumCompanions("critter"));id,name=GetCompanionInfo("critter",i);SendChatMessage("gasps as "..name .." hops out of "..g[x] .." pocket!","emote");CallCompanion("critter",i);

Or use this next macro to randomly summon a new minipet every X seconds. Replace the number in "t>30" with the amount of seconds you want in between random summons. The default is set to 30. Note that you need only use this macro once per session, as it creates a new cycle each time it's triggered.

/run AZ=nil; t=0; CreateFrame("Frame","AZ",UIParent) AZ:SetScript("OnUpdate", function(s,e) t=t+e; if t>5 then t=0; if IsMounted() ~= 1 then CallCompanion("CRITTER", random(GetNumCompanions("CRITTER"))) end end end)

If you want to have some fun with your currently summoned pet, cut and paste the following into a macro. Name the macro "Pet Praise" or something similar. Replace "pet name" with the name of your currently summoned pet.

/target pet name
/script s,e={"I love you, %t.","You're my best friend, %t.","What a good little %t!"},{"pat","hug","kiss"}; SendChatMessage(s[math.random(getn(s))],"SAY") DoEmote(e[math.random(getn(e))]);

When you click this macro, your character will praise your small pet and show it love in a random way. And doesn't every pet deserve a little love every now and again?

On a final note, we encourage you to check out our list of recommended addons for pet collectors. These mods were made by people who enjoy pets as much as you.wink

Submit a Guide Suggest a Macro: Do you know of a macro that's ideal for vanity pet collectors? Contact us with the code and we'll consider adding your suggestion.
- ADVERTISEMENT -
- ADVERTISEMENT -