benilla-re systems structs docs

Script::SetActionBarToggles

function · ui · orchestration

Address
0x4e76e0 · 155 bytes, up to 0x4e777a
Signature
int __fastcall (lua_State *L)
Meaning
Sends CMSG_SET_ACTIONBAR_TOGGLES built from four flag arguments
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/actionuse#bar-toggles

Finding: Bar toggles in ui: placing, picking up and using actions

SetActionBarToggles (0x4e76e0) reads Lua arguments 1 to 4 with 0x6f1c10 (default false) into bits 0 to 3 of one byte and sends CMSG_SET_ACTIONBAR_TOGGLES: u32 703, u8 byte. A fifth argument is never read. It changes no local state and adds no check of its own. GetActionBarToggles (0x4e7660) returns four values, 1 or nil for bits 0 to 3 of the active player's PLAYER_FIELD_BYTES byte 2 ([player+0xe68]+0x102a), and four nils without a player, so a missing player and a zero byte look alike. Nothing in the client writes that byte; only the server's field update does, and no event follows.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 4

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