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
| name | type | description |
|---|---|---|
itemID | number | an item ID |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | name | string | Name of the pet species ("Albino Snake", "Blue Mini Jouster", etc.) |
| 2 | icon | number | Numeric identifier for the species' icon. |
| 3 | petType | number | BattlePetTypeID |
| 4 | creatureID | number | NPC ID for the summoned companion pet. |
| 5 | sourceText | string | Section of the species tooltip that provides location information. |
| 6 | description | string | Section of the species tooltip that provides pet description ("flavor text"). |
| 7 | isWild | boolean | For 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. |
| 8 | canBattle | boolean | True if this pet can be used in battles, false otherwise. |
| 9 | isTradeable | boolean | True if this pet can be traded, false otherwise. |
| 10 | isUnique | boolean | True if this pet is unique, false otherwise. |
| 11 | obtainable | boolean | True if this pet can be obtained, false otherwise (only false for tamer pets and developer/test pets). |
| 12 | displayID | number | CreatureDisplayID |
| 13 | speciesID | number | BattlePetSpeciesID |
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 ↗.