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
| name | type | description |
|---|---|---|
index | number | Numeric index of the pet in the Pet Journal, ascending from 1. |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | petID | string | GUID for this specific pet |
| 2 | speciesID | number | BattlePetSpeciesID |
| 3 | owned | boolean | Whether the pet is owned by the player |
| 4 | customName | string? | Name assigned by the player or nil if unnamed |
| 5 | level | number | The pet's current battle level |
| 6 | favorite | boolean | Whether the pet is marked as a favorite |
| 7 | isRevoked | boolean | True if the pet is C_PetJournal.PetIsRevoked; false otherwise. |
| 8 | speciesName | 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' petType. |
| 11 | companionID | number | NPC ID for the summoned companion pet. |
| 12 | tooltip | 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 | True if the pet was/can be caught in the wild, false otherwise. |
| 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
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 ↗.