Hi, I love vanity pets, and I'm indecisive. So I use a macro to switch them out. I wonder if anyone could make it into a small add on. The reasons being:
1. It's too long to include a stop action, and
2. it would be awesome to have it not active during combat or fishing.
The macro is:
Constantly changing vanity Pet Macro
This macro will swap your pets constantly (except when mounted) every 30 seconds (or however many seconds you set it to)
/run AZ=nil; t=0; CreateFrame("Frame","AZ",UIParent) AZ:SetScript("OnUpdate", function(s,e) t=t+e; if t>30 then t=0; if IsMounted() ~= 1 then CallCompanion("CRITTER", random(GetNumCompanions("CRITTER"))) end end end)
Replace "t>30" with the amount of seconds you want,Reload UI after changing the seconds, note first pet won't appear until 30 seconds
Unfortunately the only way to STOP the above macro is to make another macro, OR reload UI.
The Stopping macro is : /run AZ:Hide()
thanks guys, but neither of those do what the macro does.
It's not just about having a pet out, but about having a different pet automatically summoned every 30 seconds. Constantly changing pet, not just a one time pet call whenever you are in new zone etc....
I just did a quick perusal of Petleash's Lua file. It appears that their is a timer built into it for the auto summon of pets. I'm not exactly good with code but it appears it will do what you'd like.
****EDIT:
It does autoswitch pets. I just tried it to verify for you. Here's a screenshot from the in game config:
Try Nugminipet, in it's window it has an option for time between pet changes. It looks to be in minutes but maybe you can do a .5 for 30 seconds. Does that help?