Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API C_PetJournal.GetSummonedPetGUID

From Wowpedia
Jump to: navigation, search

Returns information about a battle pet.

summonedPetGUID = C_PetJournal.GetSummonedPetGUID()

Returns

summonedPetGUID 
String - GUID identifying the currently-summoned battle pet, or nil if no battle pet is summoned.

Details

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

Mists of Pandaria Patch 5.1.0 (2012-11-27): Renamed to C_PetJournal.GetSummonedPetGUID, 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).

Mists of Pandaria Patch 5.0.4 (2012-08-28): Added (as C_PetJournal.GetSummonedPetID).

See Also