Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Returns pet species and GUID by pet name.

speciesId, petGUID = C_PetJournal.FindPetIDByName(petName)

Arguments

petName
string - Name of the pet to find species/GUID of.

Returns

speciesId
number - Species ID of the first battle pet (or species) with the specified name, nil if no such pet exists.
petGUID
string - GUID of the first battle pet collected by the player with the specified name, nil if the player has not collected any pets with the specified name.

Patch changes

Mists of Pandaria Patch 5.1.0 (2012-11-27): Added.

Advertisement