C_PetJournal. FindPetIDByName
functionguessedavailable in: camelot
Returns pet species and GUID by pet name.
The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.
Parameters
| name | type | description |
|---|---|---|
petName | string | Name of the pet to find species/GUID of. |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | speciesId | number? | Species ID of the first battle pet (or species) with the specified name, nil if no such pet exists. |
| 2 | petGUID | string? | GUID of the first battle pet collected by the player with the specified name, nil if the player has not collected any pets with the specified name. |
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 ↗.