MsgDice

One of the first street gambling games introduced in Conquer Online was the dice game hosted by DiceKing in the Market. The game revolves around the NPC rolling four dice and the player making bets on the outcome. The outcome can be high or low, three of a kind, or specific values.

Interestingly, results of the game are broadcast to all participants using the MsgName message rather than a server message via MsgTalk. MsgName is also used to add players to the game.

The game is split into three phases: a 30 second phase where players can bet (Amount is set to 30 for BEGINCHIP), followed by a 5 second phase where all bets are in (ENDCHIP), followed by the result (DICE).

Table of Contents

Patch 4267

Message Definition

☑️ Assumed (Soul)

PosTypeNameDescriptionExample
0UInt16MsgSizeSize of the message20
2UInt16MsgTypeType of message1113
4ByteActionHow to process the message0
5ByteAmountAmount of data or time1
6UInt32NPC IDRole ID of the NPC169
10StructDiceDataPayload for dices

Action Type

☑️ Assumed (Soul)

ValNameDescriptionRecipient
0CHIPINShows a new betBoth
1CHIPIN_CONFIRMConfirms a betClient
2CANCELCHIPRemoves a betBoth
3CANCELCHIP_CONFIRMConfirms removalClient
4BEGINCHIPStart a betting windowClient
5ENDCHIPStops betting windowClient
6DICEResults of the roleClient

Dice Data

☑️ Assumed (Soul)

PosTypeNameDescriptionExample
0ByteTypeDice Value for betting1
1UInt32DataAmount of money or array of dice1000

Dice Values

☑️ Assumed (Soul)

enum DiceValues {

    DICE_VALUE_SMALL = 0;
    DICE_VALUE_BIG = 1;
    DICE_VALUE_111 = 2;
    DICE_VALUE_222 = 3;
    DICE_VALUE_333 = 4;
    DICE_VALUE_444 = 5;
    DICE_VALUE_555 = 6;
    DICE_VALUE_666 = 7;
    DICE_VALUE_4 = 8;
    DICE_VALUE_5 = 9;
    DICE_VALUE_6 = 10;
    DICE_VALUE_7 = 11;
    DICE_VALUE_8 = 12;
    DICE_VALUE_9 = 13;
    DICE_VALUE_10 = 14;
    DICE_VALUE_11 = 15;
    DICE_VALUE_12 = 16;
    DICE_VALUE_13 = 17;
    DICE_VALUE_14 = 18;
    DICE_VALUE_15 = 19;
    DICE_VALUE_16 = 20;
    DICE_VALUE_17 = 21;
    DICE_VALUE_ALL = 22;
}