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
| name | type | description |
|---|---|---|
petID | string | GUID |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | speciesID | number | BattlePetSpeciesID |
| 2 | customName | string? | Name assigned by the player or nil if unnamed |
| 3 | level | number | The pet's current battle level |
| 4 | xp | number | The pet's current xp |
| 5 | maxXp | number | The pet's maximum xp |
| 6 | displayID | number | The display ID of the pet |
| 7 | isFavorite | boolean | Whether the pet is marked as a favorite |
| 8 | name | string | Name of the pet species ("Albino Snake", "Blue Mini Jouster", etc.) |
| 9 | icon | number | Full path for the species' icon |
| 10 | petType | number | Index of the species' pet type |
| 11 | creatureID | number | NPC ID for the summoned companion pet |
| 12 | sourceText | string | Section of the tooltip that provides location information |
| 13 | description | string | Section of the tooltip that provides pet description ("flavor text") |
| 14 | 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. |
| 15 | canBattle | boolean | True if this pet can be used in battles, false otherwise. |
| 16 | isTradeable | boolean | True if this pet can be traded, false otherwise. |
| 17 | isUnique | boolean | True if this pet is unique, false otherwise. |
| 18 | obtainable | boolean | True 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 ↗.