public override void OnDiceRolled() { base.OnDiceRolled(); RollDice(3); int matches = GetMatches(); Dealer.PrivateOverheadMessage(MessageType.Regular, 0x35, 1153391, String.Format("{0}\t{1}\t{2}", Roll[0], Roll[1], Roll[2]), Player.NetState); // *rolls the dice; they land on ~1_FIRST~ ~2_SECOND~ ~3_THIRD~* if (matches == 0) { Dealer.PrivateOverheadMessage(MessageType.Regular, 0x35, 1153376, String.Format("{0}\t{1}", Player.Name, CurrentBet.ToString(CultureInfo.GetCultureInfo("en-US"))), Player.NetState); // *rakes in ~1_NAME~'s ~2_VAL~-chip bet* } else { int winnings = CurrentBet * matches; PointsSystem.CasinoData.AwardPoints(Player, winnings); Winner = true; OnWin(); Dealer.PrivateOverheadMessage(MessageType.Regular, 0x35, 1153377, String.Format("{0}\t{1}", Player.Name, winnings.ToString(CultureInfo.GetCultureInfo("en-US"))), Player.NetState); // *pays out ~2_VAL~ chips to ~1_NAME~* } }
public override void BeginRollDice() { base.BeginRollDice(); Player.PrivateOverheadMessage(MessageType.Regular, 0x35, 1153375, String.Format("{0}\t{1}", CurrentBet.ToString(), ((HighMiddleLowType)BettingOn).ToString()), Player.NetState); // *bets ~1_AMT~ chips on ~2_PROP~* }
public override void OnDiceRolled() { base.OnDiceRolled(); RollDice(3); if (Roll[0] == Roll[1] && Roll[0] == Roll[2]) { ThreeOfAKind = true; } else { int total = Roll[0] + Roll[1] + Roll[2]; int winnings = 0; Dealer.PrivateOverheadMessage(MessageType.Regular, 0x35, 1153391, String.Format("{0}\t{1}\t{2}", Roll[0], Roll[1], Roll[2]), Player.NetState); // *rolls the dice; they land on ~1_FIRST~ ~2_SECOND~ ~3_THIRD~* switch (BetType) { default: case HighMiddleLowType.High: if (WinsHi(total)) { winnings = CurrentBet * 2; } break; case HighMiddleLowType.Middle: if (WinsMiddle(total)) { winnings = CurrentBet * 2; } break; case HighMiddleLowType.Low: if (WinsLow(total)) { winnings = CurrentBet * 2; } break; case HighMiddleLowType.Outside: if (WinsOutside(total)) { winnings = CurrentBet * 5; } break; } if (winnings > 0) { PointsSystem.CasinoData.AwardPoints(Player, winnings); Winner = true; OnWin(); Dealer.PrivateOverheadMessage(MessageType.Regular, 0x35, 1153377, String.Format("{0}\t{1}", Player.Name, winnings.ToString(CultureInfo.GetCultureInfo("en-US"))), Player.NetState); // *pays out ~2_VAL~ chips to ~1_NAME~* } else { Dealer.PrivateOverheadMessage(MessageType.Regular, 0x35, 1153376, String.Format("{0}\t{1}", Player.Name, CurrentBet.ToString(CultureInfo.GetCultureInfo("en-US"))), Player.NetState); // *rakes in ~1_NAME~'s ~2_VAL~-chip bet* } } }