28 lines
1.0 KiB
Markdown
28 lines
1.0 KiB
Markdown
# C1 3C - TradeButtonStateChanged (by server)
|
|
|
|
## Is sent when
|
|
|
|
After the trading partner checked or unchecked the trade accept button.
|
|
|
|
## Causes the following actions on the client side
|
|
|
|
The game client updates the trade button state accordingly.
|
|
|
|
## Structure
|
|
|
|
| Index | Length | Data Type | Value | Description |
|
|
|-------|--------|-----------|-------|-------------|
|
|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
|
|
| 1 | 1 | Byte | 4 | Packet header - length of the packet |
|
|
| 2 | 1 | Byte | 0x3C | Packet header - packet type identifier |
|
|
| 3 | 1 | TradeButtonState | | State |
|
|
|
|
### TradeButtonState Enum
|
|
|
|
Defines the state of the trade button.
|
|
|
|
| Value | Name | Description |
|
|
|-------|------|-------------|
|
|
| 0 | Unchecked | Trade button is not pressed. It means that the trade is not yet accepted by the trader. |
|
|
| 1 | Checked | Trade Button is pressed. It means that the trade is accepted by the trader. |
|
|
| 2 | Red | This state is only sent to the client. After some seconds the client is changing back to normal Unchecked. | |