Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1006 Bytes

7a-sell.md

File metadata and controls

58 lines (42 loc) · 1006 Bytes

Sell

Utilized when the player sells resources from the market.

Definition

def Sell
  int8 :action_identifier
  int8 :player_number
  int8 :resource_type
  int8 :amount
  int32 :market_id
end

Description

: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.

Examples

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_type 05 — amount = 500
00 00 00 00 — market_id