v0.13.8

C_PetInfo

namespaceavailable in: camelot

Status in wowlua

14 functions: 2 implemented, 0 recorded, 11 guessed, 1 not implemented. 12 events, 3 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
CanPetEatItemWhether the hunter's pet can eat the given item. · by wowlua
(itemID: number): boolean
guessed
GetPetFoodTypesReturns the kinds of food the hunter's pet eats. · by wowlua
(): string[]
guessed
GetPetHappinessReturns the hunter pet's happiness, the damage it deals in percent, and its loyalty rate. · by wowlua
(): (number?, number?, number?)
implemented
GetPetLoyaltyReturns the name of the hunter pet's loyalty level, or nil without a pet. · by wowlua
(): string?
implemented
GetPetTalentTreeReturns the name of the hunter pet's talent tree, or nil without one. · by wowlua
(): stringView?
guessed
GetPetTamersForMapReturns the pet battle tamers on the given map. · by wowlua
(uiMapID: number): PetTamerMapInfo[]
guessed
GetPetTrainingPointsReturns the hunter pet's total and spent training points. · by wowlua
(): (number, number)
guessed
GetPetUIModelSceneIDReturns the ID of the model scene the pet frame uses. · by wowlua
(): number
guessed
GetSpellForPetActionReturns the spell ID of a pet action, or nil when it has none. · by wowlua
(actionID: number): number?
guessed
IsPetActionPassiveWhether the pet action is passive. · by wowlua
(actionID: number): boolean
guessed
IsPetOrderMoveToPendingNo description yet.
(): boolean
not implemented
PetAbandonAbandons the hunter's pet. · by wowlua
(petNumber: number?)
guessed
PetAssistModeSets the pet to assist mode. · by wowlua
()
guessed
PetRenameRenames the hunter's pet. · by wowlua
(name: string, petNumber: number?, declensions: string[]?)
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
PET_ATTACK_STARTno payloadimplemented
PET_ATTACK_STOPno payloadimplemented
PET_BAR_HIDEGRIDno payloadnot implemented
PET_BAR_SHOWGRIDno payloadnot implemented
PET_BAR_UPDATE_COOLDOWNno payloadnot implemented
PET_DISMISS_STARTdelay: numbernot implemented
PET_FORCE_NAME_DECLENSIONname: string, petNumber: number?, declinedName1: string?, declinedName2: string?, declinedName3: string?, declinedName4: string?, declinedName5: string?not implemented
PET_ORDER_MOVE_TO_PENDING_CHANGEDisPetOrderMoveToPending: booleannot implemented
PET_UI_CLOSEno payloadnot implemented
RAISED_AS_GHOULno payloadnot implemented
UPDATE_POSSESS_BARno payloadnot implemented
UPDATE_VEHICLE_ACTIONBARno payloadimplemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("PET_BAR_HIDEGRID").

Structures

  • PetTamerMapInfo · areaPoiID, position, name, atlasName?, textureIndex?

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (PetInfo system, camelot 1.60.1). Descriptions: written by wowlua where no documentation describes the entry.