benilla-re systems structs docs

SetPetBarSlot

function · ui · primitive

Address
0x4bc9a0 · 514 bytes, up to 0x4bcba1
Signature
bool __fastcall (uint32_t slot, uint32_t *word, bool send)
Meaning
Stores a dropped word in a pet slot, relocating a duplicate or displaced token, and sends the change
Confidence
verified, proof one
Finding
ui/petbar#picking-up-and-dropping-pet-actions

Finding: Picking up and dropping pet actions in ui: the pet bar and the form bar

PickupPetAction(index) drops a held pet action onto the slot, or with an empty cursor puts the slot's action on the cursor (0x494e20) and, for a spell slot only, blanks the slot's spell id and sends it. A drop runs 0x4bc9a0(target, &word, send). It ignores a word equal to the slot's, refuses a passive spell without a message, and empties another slot holding the same type and action, giving it the displaced word. A displaced reaction or command with no duplicate goes to the first slot that is not one and has no spell id, and with none nothing happens. The result is sent as CMSG_PET_SET_ACTION (372): pet guid and one or two u32 slot, u32 word pairs, then PET_BAR_UPDATE.

The derivation is in the doc.

Callers 3

Callees 7

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