benilla-re systems structs docs

Script::PickupStablePet

function · ui · primitive

Address
0x4cb7a0 · 105 bytes, up to 0x4cb808
Signature
int __fastcall (lua_State *L)
Meaning
Lifts a stable pet onto the cursor
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/stable#click-and-drag

Finding: Click and drag in ui: the stable master window

PickupStablePet(index) lifts a pet onto the cursor: an index of 0 or less is the summoned pet, 1 to N a stable slot. It does nothing for an empty slot or a pet whose family has no icon, and it clears the cursor first. The payload is mode 10 with the index. ClickStablePet(index) selects the pet and returns 1 unless the cursor holds the pet payload. With it, the click sends one request and returns nil. A summoned pet dropped on an occupied slot sends a swap (0x275 with the occupant's number) and on an empty owned slot stable (0x270). A stabled pet dropped on the summoned slot sends a swap when a pet is out and unstable (0x271) otherwise.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 5

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