benilla-re systems structs docs

PressPetDefensive

function · ui · orchestration

Address
0x4bd530 · 58 bytes, up to 0x4bd569
Signature
void __cdecl ()
Meaning
Presses the pet action word 0x06000001 with a zero target
Confidence
verified, proof one
Finding
ui/petbar#pet-commands-from-lua

Finding: Pet commands from Lua in ui: the pet bar and the form bar

CastPetAction(index) drops a held pet action onto the slot; with an empty cursor it plays a sound and presses the slot with a zero target override, so the click carries the current target. PetPassiveMode, PetDefensiveMode, PetAggressiveMode, PetWait, PetFollow and PetAttack take no arguments and press the slot words 0x06000000, 0x06000001, 0x06000002, 0x07000000, 0x07000001 and 0x07000002 as 0x4bd1d0 does, so the mode or command byte is set and signalled before the packet. PetStopAttack does nothing unless the latch is set, then sends opcode 0x2ea with the pet guid, clears the latch and signals PET_BAR_UPDATE, without the pet gate. PetDismiss presses 0x07000003 with a zero target, then signals PET_DISMISS_START with 10000 whether or not a packet went out.

The derivation is in the doc.

Callers 1

Callees 1

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