v0.13.8

C_PetJournal.GetPetInfoByPetID

functionguessedavailable in: camelot

Returns information about a battle pet.

The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.

Parameters

nametypedescription
petIDstringGUID

Returns

#nametypedescription
1speciesIDnumberBattlePetSpeciesID
2customNamestring?Name assigned by the player or nil if unnamed
3levelnumberThe pet's current battle level
4xpnumberThe pet's current xp
5maxXpnumberThe pet's maximum xp
6displayIDnumberThe display ID of the pet
7isFavoritebooleanWhether the pet is marked as a favorite
8namestringName of the pet species ("Albino Snake", "Blue Mini Jouster", etc.)
9iconnumberFull path for the species' icon
10petTypenumberIndex of the species' pet type
11creatureIDnumberNPC ID for the summoned companion pet
12sourceTextstringSection of the tooltip that provides location information
13descriptionstringSection of the tooltip that provides pet description ("flavor text")
14isWildbooleanFor pets in the player's possession, true if the pet *was* caught in the wild. For pets not in the player's possession, true if the pet *can* be caught in the wild.
15canBattlebooleanTrue if this pet can be used in battles, false otherwise.
16isTradeablebooleanTrue if this pet can be traded, false otherwise.
17isUniquebooleanTrue if this pet is unique, false otherwise.
18obtainablebooleanTrue if this pet can be obtained, false otherwise (only false for tamer pets and developer/test pets).

In wowlua's emulated client

guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean

sources

Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.