Page 1 of 1

Macro

Posted: September 2nd, 2012, 10:04 am
by Gham
My random pet macro no longer works. I don't like addons. Anyone have an updated random pet summoning macro?

Re: Macro

Posted: September 2nd, 2012, 1:06 pm
by Lysi
found one!

/run local t={}for i=1,select(2,C_PetJournal.GetNumPets(false))do tinsert(t,(C_PetJournal.GetPetInfoByIndex(i)))end C_PetJournal.SummonPetByID(t[random(#t)])

from http://eu.battle.net/wow/en/forum/topic/5207533938

Re: Macro

Posted: September 5th, 2012, 9:47 pm
by Gham
Nice. I'll try this one. Thanks!

Re: Macro

Posted: September 8th, 2012, 11:23 pm
by Kaiohx
Why bother with a macro, just get Guppet.

Re: Macro

Posted: September 11th, 2012, 3:43 pm
by Tarae
Previously I had to use a set of macros for my pets so that I could randomly select from within a subset of pets. So I would have my favourite Alliance vendor pets, World Event pets, pets from faction reputation, and so on.

My Argent Tournament macro looked like this:

/run local c,t,r="critter",{33205,33194,33200,33274,33188,33198,33227,33219,33810,33197,33239,34724}r=t[random(#t)]for i=1,GetNumCompanions(c)do if GetCompanionInfo(c,i)==r then CallCompanion(c,i)break end end

Obviously we have to be a little economical to squeeze within the 255 character limit.

Many, MANY thanks for the above macro. Live on 5.0.4 I was absolutely gutted when my old macros wouldn't work.

I will use the above macro as the basis for replicating the functionality of my old macros, hopefully. Given that the pet IDs still exist behind the scenes I suspect that this will be possible.

This is my first post. I registered so that I might say a very big Thank You!