benilla-re systems structs docs

Script::SetPetStablePaperdoll

function · ui · primitive

Address
0x4cb870 · 473 bytes, up to 0x4cba48
Signature
int __fastcall (lua_State *L)
Meaning
Puts the selected pet's model on a model frame
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 10

Calls and jumps by a bare address, from tables/calls.tsv.