Utilized when the player sells resources from the market.
def Sell
int8 :action_identifier
int8 :player_number
int8 :resource_type
int8 :amount
int32 :market_id
end
:action_identifier
Always has the value 0x7a
.
:player_number
The ID of the player who sells the resources (0x01
- 0x08
).
:resource_type
The resource type that is sold.
Hex Value | Resource |
---|---|
0x00 | Food |
0x01 | Wood |
0x02 | Stone |
:amount
The amount being sold in hundreds. Can be either 0x01
or 0x05
.
:market_id
The ID of the market.
Normal Sell
7a 01 02 01 46 1a 00 00
7b
— action_identifier
01
— player_number
02
— resource_type
01
— amount
46 1a 00 00
— market_id
Shift-Sell
7A
— action_identifier
01
— player_number
01
— resource_type05
— amount = 500
00 00 00 00
— market_id