Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SAddEquip (0x37)

Previous: SShowUsers | Server action index | Next: SRemoveEquip

SAddEquip is server-to-client action 0x37 in the 4.21 protocol.

Direction: server to client

Encrypted: Yes. See Sequence and XOR Transformation.

Payload offsets begin with the first byte after the action. The frame marker, frame length, action, sequence, and trailing zero are excluded.

Payload format

OffsetWidthFieldEstablished meaning
0x001slotEquipment slot index.
0x012item_idBig-endian equipment icon or item identifier.
0x031name_lengthNumber of following name bytes.
0x04name_lengthnameEquipment display name bytes.

Handler functions

Function addressCurrent IDA nameRole
Darkages.exe:0x0042EAF0ui_equip_pane_handle_server_packetAccepts the action in its pane’s Event type 9 packet handler.

Handler notes

Darkages.exe:0x0042EAF0 ui_equip_pane_handle_server_packet.

UI behavior

ui_equip_pane_add_item accepts normal slots 1 through 13. It stores the identifier at pane +0xB22 + 2 * slot and the name at +0xB3E + 0x80 * (slot - 1), then redraws. The identifier is native little-endian in memory after the packet’s big-endian value is decoded. This action does not show the equipment pane.

See Runtime UI Memory Map and UI, Input, and Packet Flows.