Macro

Share pet collecting news and advice.
Post Reply
User avatar
Gham
Top Rater
Posts:3
Joined:July 30th, 2011
Pet Score:4882
Realm:Duskwood-us
Contact:
Macro

Post by Gham » September 2nd, 2012, 10:04 am

My random pet macro no longer works. I don't like addons. Anyone have an updated random pet summoning macro?

User avatar
Lysi
MVP
Posts:408
Joined:January 21st, 2009
Pet Score:975
Realm:Echo Isles-us
Contact:

Re: Macro

Post by Lysi » September 2nd, 2012, 1:06 pm

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
Some of my best friends are imaginary…

User avatar
Gham
Top Rater
Posts:3
Joined:July 30th, 2011
Pet Score:4882
Realm:Duskwood-us
Contact:

Re: Macro

Post by Gham » September 5th, 2012, 9:47 pm

Nice. I'll try this one. Thanks!

User avatar
Kaiohx
Top Rater
Posts:2
Joined:September 17th, 2008
Pet Score:7273
Realm:Argent Dawn-us
Contact:

Re: Macro

Post by Kaiohx » September 8th, 2012, 11:23 pm

Why bother with a macro, just get Guppet.

User avatar
Tarae
Posts:1
Joined:September 11th, 2012
Contact:

Re: Macro

Post by Tarae » September 11th, 2012, 3:43 pm

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!

Post Reply