Skip to main content

trade.list_item

Generated from spec/protocol.yaml. Do not edit by hand.

Overview

  • ID: 2024
  • Header: TRADE_LIST_ITEM
  • Direction: Server to Client (s2c)
  • Realm: Economy & Trading
  • Phase: session
  • Since: nitro-1.6.6
  • Summary: Update the trade item lists for both users

Payload fields

FieldTypeRequiredDescription
firstUserIdint32requiredRoom entity ID of the first trader.
firstUserItemslist<object>requiredItems offered by the first user (ItemDataStructure per item).
firstUserNumItemsint32requiredTotal item count for the first user.
firstUserNumCreditsint32requiredCredit value for the first user.
secondUserIdint32requiredRoom entity ID of the second trader.
secondUserItemslist<object>requiredItems offered by the second user.
secondUserNumItemsint32requiredTotal item count for the second user.
secondUserNumCreditsint32requiredCredit value for the second user.

Behavior

Sender

Sent whenever items are added or removed from either side of the trade.

Receiver

The client refreshes the trade window showing both users' offered items.

Notes

  • No additional notes