v0.13.8

C_PetJournal.GetPetInfoByIndex

functionrecordedavailable 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
indexnumberNumeric index of the pet in the Pet Journal, ascending from 1.

Returns

#nametypedescription
1petIDstringGUID for this specific pet
2speciesIDnumberBattlePetSpeciesID
3ownedbooleanWhether the pet is owned by the player
4customNamestring?Name assigned by the player or nil if unnamed
5levelnumberThe pet's current battle level
6favoritebooleanWhether the pet is marked as a favorite
7isRevokedbooleanTrue if the pet is C_PetJournal.PetIsRevoked; false otherwise.
8speciesNamestringName of the pet species ("Albino Snake", "Blue Mini Jouster", etc.)
9iconnumberFull path for the species' icon
10petTypenumberIndex of the species' petType.
11companionIDnumberNPC ID for the summoned companion pet.
12tooltipstringSection of the tooltip that provides location information
13descriptionstringSection of the tooltip that provides pet description ("flavor text")
14isWildbooleanTrue if the pet was/can be caught in the wild, false otherwise.
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

recordedThe answer was recorded from the real client and is played back for the same call. what the statuses mean

sources

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