I've also been trying to see how the DiceKing is handled and whatnot; Here is what I have so far (Packet-Wise):
Code:
public enum DiceAction
{
ChipIn = 0,
ChipIn_Confirm = 1,
CancelChip = 2,
CancelChip_Confirm = 3,
BeginChip = 4,
EndChip = 5,
Dice = 6,
};
public Byte Action;
public Byte Amount;
public Int32 DiceNpc;
public Byte Type;
public UInt32 Data;
public static DicePacket Create(Int32 Npc, Int32 Time, DiceAction action)
{
var packet = new DicePacket();
if (action == null)
{
return packet;
}
packet.Action = (Byte)action;
packet.Data = 0;
packet.Type = 0;
packet.DiceNpc = Npc;
return packet;
}
public static DicePacket Create(Int32 Npc, DiceAction action)
{
var packet = new DicePacket();
if (action == null)
{
return packet;
}
packet.Action = (Byte)action;
packet.Amount = 0;
packet.Data = 0;
packet.Type = 0;
packet.DiceNpc = Npc;
return packet;
}
I'm aware that I'm going to need another void called the:
Code:
public static implicit operator byte[](DicePacket packet)
But I'm not too sure how the calculations are handled/processed inside that void?