Script::GetStablePetInfo
function · ui · primitive
- Address
0x4cb230· 376 bytes, up to0x4cb3a7- Signature
int __fastcall (lua_State *L)- Meaning
- Returns a stable pet's family icon, name, level, family name and loyalty name
- 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 9
- __ftol crt
- ClntObjMgrGetActivePlayer objectlayer
- CreatureCacheGetRecord dbcache
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnil lua
- lua_pushnumber lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.