WowAddons

World of Warcraft Forever API · C_StableInfo.md, for your AI

C_StableInfo

17 functions, 5 events, 2 tables, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_StableInfo.BuyStableSlot

C_StableInfo.BuyStableSlot()

C_StableInfo.ClosePetStables

C_StableInfo.ClosePetStables()

C_StableInfo.GetActivePetList

activePets = C_StableInfo.GetActivePetList()

Returns

activePetsPetInfo[]

C_StableInfo.GetAvailablePetSpecInfos

petSpecInfos = C_StableInfo.GetAvailablePetSpecInfos()

Returns

petSpecInfosPetSpecInfo[]

C_StableInfo.GetNextStableSlotCost

cost = C_StableInfo.GetNextStableSlotCost()

Returns

costnumber

C_StableInfo.GetNumActivePets

numActivePets = C_StableInfo.GetNumActivePets()

Returns

numActivePetsnumber

C_StableInfo.GetNumStablePets

numStablePets = C_StableInfo.GetNumStablePets()

Returns

numStablePetsnumber

C_StableInfo.GetNumStableSlots

numSlots = C_StableInfo.GetNumStableSlots()

Returns

numSlotsnumber

C_StableInfo.GetStablePetFoodTypes

foodTypes = C_StableInfo.GetStablePetFoodTypes(index)

Arguments

indexluaIndex

Returns

foodTypesstring[]

C_StableInfo.GetStablePetInfo

petInfo = C_StableInfo.GetStablePetInfo(index)

Arguments

indexluaIndex

Returns

petInfoPetInfo may be nil

C_StableInfo.GetStabledPetList

stabledPets = C_StableInfo.GetStabledPetList()

Returns

stabledPetsPetInfo[]

C_StableInfo.IsAtStableMaster

isAtStableMaster = C_StableInfo.IsAtStableMaster()

Returns

isAtStableMasterbool

C_StableInfo.IsBonusPetSlotAvailable

isAvailable = C_StableInfo.IsBonusPetSlotAvailable()

Returns

isAvailablebool

C_StableInfo.IsPetFavorite

isFavorite = C_StableInfo.IsPetFavorite(slot)

Arguments

slotluaIndex

Returns

isFavoritebool

C_StableInfo.PickupStablePet

C_StableInfo.PickupStablePet(index)

Arguments

indexluaIndex

C_StableInfo.SetPetFavorite

C_StableInfo.SetPetFavorite(slot, isFavorite)

Arguments

slotluaIndex
isFavoritebool

C_StableInfo.SetPetSlot

C_StableInfo.SetPetSlot(index, slot)

Arguments

indexluaIndex
slotluaIndex

Events

PET_INFO_UPDATE

No payload.

PET_STABLE_CLOSED

No payload.

PET_STABLE_FAVORITES_UPDATED

No payload.

PET_STABLE_SHOW

No payload.

PET_STABLE_UPDATE

No payload.

Tables

PetInfo structure

slotIDnumber
iconfileID
namestring
levelnumber
familyNamestring
specializationstring
typestring
petAbilitiesnumber[]
specAbilitiesnumber[]
displayIDnumber
isFavoritebool
isExoticbool
uiModelSceneIDnumber default 718
petNumbernumber
creatureIDnumber
specIDnumber
loyaltyLevelnumber
loyaltyNamestring
happinessLevelnumber
experiencenumber
experienceNeedednumber

PetSpecInfo structure

specIDnumber
specIndexluaIndex
specializationNamestring

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows