Script::GetStablePetFoodTypes
function · ui · primitive
- Address
0x4cba70· 346 bytes, up to0x4cbbc9- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the food type names of a stable pet's family
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/stable#stable-lua-functions
Finding: Stable Lua functions in ui: the stable master window
The thirteen functions are registered by 0x4cbbd0. GetNumStablePets() and GetNumStableSlots() return the two counts.
GetStablePetInfo(index) returns the icon path of the pet's family, the name, the level, the family name and the loyalty
name; on a missing record or an unfetched creature it returns nil, nil, 0, nil, nil. GetSelectedStablePet() returns 0
for the summoned pet, the 1-based slot for a stabled one and -1 for none or a pet that is gone. GetNextStableSlotCost()
returns the next slot's cost row or 0. GetStablePetFoodTypes(index) returns the food names of the pet's family and nothing
on failure. SetPetStablePaperdoll(frame) puts the selected pet's model on a model frame.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 8
- __ftol crt
- ClntObjMgrGetActivePlayer objectlayer
- CreatureCacheGetRecord dbcache
- lua_checkstack lua
- lua_isnumber lua
- lua_tonumber lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.