Macro
My random pet macro no longer works. I don't like addons. Anyone have an updated random pet summoning macro?
Re: Macro
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
/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
Some of my best friends are imaginary…
Re: Macro
Nice. I'll try this one. Thanks!
Re: Macro
Why bother with a macro, just get Guppet.
Re: Macro
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!
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!