benilla-re systems structs docs

Script::GetSelectedStablePet

function · ui · primitive

Address
0x4cb810 · 94 bytes, up to 0x4cb86d
Signature
int __fastcall (lua_State *L)
Meaning
Returns the selected pet's slot, 0 for the summoned pet and -1 for none
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 1

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