We have begun migration of most wikis to our new host, Amazon Web Services. All but the top 100 wikis are in read-only mode until the migration is complete. Estimated completion: TBD -- Update: Fri 10/20 11pm UTC - We have encountered some unexpected issues. Our staff is working around the clock to complete this process as quickly as possible. Thank you for your patience.

API C_PetJournal.SummonPetByGUID

From Wowpedia
Jump to: navigation, search

Summons (or dismisses) a pet.

C_PetJournal.SummonPetByGUID("petID")

Arguments

petID 
String - GUID of the battle pet to summon. If the pet is already summoned, it will be dismissed.

Notes

You can dismiss the currently-summoned battle pet by running

C_PetJournal.SummonPetByGUID(C_PetJournal.GetSummonedPetGUID())

Note that this will throw an error if you do not have a pet summoned.

Blizzard has moved all petIDs over to the "petGUID" system, but left all of their functions using the petID terminology (not the petGUID terminology) except for this one. For consistency, the term "petID" should continue to be used.

Patch history

MoP Patch 5.1.0 (2012-11-27): Renamed to C_PetJournal.SummonPetByGUID, first argument is now a GUID string.

The GUID can be derived from the old (numeric) unique pet IDs using petGUID = ("0x%016x"):format(petID).

MoP Patch 5.0.4 (2012-08-28): Added (as C_PetJournal.SummonPetByID).

See Also