benilla-re systems structs docs

Script::PetPassiveMode

function · ui · orchestration

Address
0x4be450 · 8 bytes, up to 0x4be457
Signature
int __fastcall (lua_State *L)
Meaning
Presses the passive reaction
Confidence
verified, proof one
Name from
the community database (idb)
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 0

None by a direct call or jump.

Callees 1

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