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
| Offset | Width | Field | Established meaning |
|---|---|---|---|
0x00 | 1 | slot | Equipment slot index. |
0x01 | 2 | item_id | Big-endian equipment icon or item identifier. |
0x03 | 1 | name_length | Number of following name bytes. |
0x04 | name_length | name | Equipment display name bytes. |
Handler functions
| Function address | Current IDA name | Role |
|---|---|---|
Darkages.exe:0x0042EAF0 | ui_equip_pane_handle_server_packet | Accepts 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.