Script::ClickStablePet
function · ui · primitive
- Address
0x4cb420· 890 bytes, up to0x4cb799- Signature
int __fastcall (lua_State *L)- Meaning
- Selects a stable pet, or drops the held pet as a stable, unstable or swap request
- 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 13
- __ftol crt
- CDataStore::PutUInt32 base
- CDataStore::PutGuid base
- 0x48efa0 ui
- ClearCursor ui
- 0x4c9a80 ui
- 0x4c9aa0 ui
- ClientServices::Send net
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnil lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.