v0.13.7

C_PetJournal.GetPetInfoByItemID

functionguessedavailable in: camelot

Retrieves information about the battle pet species taught by the specified item.

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

Parameters

nametypedescription
itemIDnumberan item ID

Returns

#nametypedescription
1namestringName of the pet species ("Albino Snake", "Blue Mini Jouster", etc.)
2iconnumberNumeric identifier for the species' icon.
3petTypenumberBattlePetTypeID
4creatureIDnumberNPC ID for the summoned companion pet.
5sourceTextstringSection of the species tooltip that provides location information.
6descriptionstringSection of the species tooltip that provides pet description ("flavor text").
7isWildbooleanFor 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.
8canBattlebooleanTrue if this pet can be used in battles, false otherwise.
9isTradeablebooleanTrue if this pet can be traded, false otherwise.
10isUniquebooleanTrue if this pet is unique, false otherwise.
11obtainablebooleanTrue if this pet can be obtained, false otherwise (only false for tamer pets and developer/test pets).
12displayIDnumberCreatureDisplayID
13speciesIDnumberBattlePetSpeciesID

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 ↗.