static Bet BetParser(SQLiteDataReader Reader) { string site = ""; Bet tmp = new Bet(); for (int i = 0; i < Reader.FieldCount; i++) { switch (Reader.GetName(i)) { case "betid": tmp.Id = (long)Reader[i]; break; case "date": tmp.date = (DateTime)Reader[i]; break; case "stake": tmp.Amount = (decimal)Reader[i]; break; case "profit": tmp.Profit = (decimal)Reader[i]; break; case "chance": tmp.Chance = (decimal)Reader[i]; break; case "high": tmp.high = (short)Reader[i] == 1; break; case "lucky": tmp.Roll = (decimal)Reader[i]; break; case "hash": tmp.serverhash = (string)Reader[i]; break; case "nonce": tmp.nonce = (long)Reader[i]; break; case "uid": tmp.uid = (int)Reader[i]; break; case "Client": tmp.clientseed = (string)Reader[i]; break; case "server": tmp.serverseed = (string)Reader[i]; break; case "site": site = (string)Reader[i]; break; } } if (!string.IsNullOrEmpty(tmp.serverseed) && tmp.nonce != -1 && !string.IsNullOrEmpty(tmp.clientseed) && tmp.Roll != -1 && site != "") { switch (site) { case "JustDice": tmp.Verified = tmp.Roll == (decimal)DiceSite.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "PrimeDice": tmp.Verified = tmp.Roll == (decimal)PD.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "999Dice": tmp.Verified = tmp.Roll == (decimal)dice999.sGetLucky(tmp.serverseed, (tmp.clientseed), (int)tmp.nonce, /*(long)(tmp.Roll*10000m),*/ tmp.serverhash); break; //case "SafeDice": tmp.Verified = tmp.Roll == (decimal)SD.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; //case "PRC": tmp.Verified = tmp.Roll == (decimal)PD.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; } } return(tmp); }
public DialogResult ShowDialog(bool register, DiceSite CurrentSite) { if (register) { richTextBox1.Text = "Failed to register account."; btnHelp.Visible = false; } else { richTextBox1.Text = "Failed to log in to your account on " + CurrentSite.Name + @". Check the status bar for more information if available. Are you having trouble logging in? Click the help button below to see the most common login problems and how to resolve them."; HelpLink = "https://bot.seuntjie.com/faqs.aspx#faq25"; btnHelp.Visible = true; } return(ShowDialog()); }
static Bet BetParser(SQLiteDataReader Reader) { string site = ""; Bet tmp = new Bet(); for (int i = 0; i < Reader.FieldCount; i++) { switch (Reader.GetName(i)) { case "betid": tmp.Id = (string)Reader[i]; break; case "date": tmp.date = (DateTime)Reader[i]; break; case "stake": tmp.Amount = (decimal)Reader[i]; break; case "profit": tmp.Profit = (decimal)Reader[i]; break; case "chance": tmp.Chance = (decimal)Reader[i]; break; case "high": tmp.high = (short)Reader[i] == 1; break; case "lucky": tmp.Roll = (decimal)Reader[i]; break; case "hash": tmp.serverhash = (string)Reader[i]; break; case "nonce": tmp.nonce = (long)Reader[i]; break; case "uid": tmp.uid = (int)Reader[i]; break; case "Client": tmp.clientseed = (string)Reader[i]; break; case "server": tmp.serverseed = (string)Reader[i]; break; case "site": site = (string)Reader[i]; break; } } if (!string.IsNullOrEmpty(tmp.serverseed) && !string.IsNullOrEmpty(tmp.clientseed) && tmp.Roll != -1 && site != "") { switch (site) { case "JustDice": tmp.Verified = tmp.Roll == (decimal)DiceSite.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "PrimeDice": tmp.Verified = tmp.Roll == (decimal)PD.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "999Dice": tmp.Verified = tmp.Roll == (decimal)dice999.sGetLucky(tmp.serverseed, (tmp.clientseed), (int)tmp.nonce, /*(long)(tmp.Roll*10000m),*/ tmp.serverhash); break; case "SafeDice": tmp.Verified = tmp.Roll == (decimal)SafeDice.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "PRCDice": tmp.Verified = tmp.Roll == (decimal)PRC.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "RollinIO": tmp.Verified = tmp.Roll == (decimal)rollin.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "BitDice": tmp.Verified = tmp.Roll == (decimal)bitdice.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "BetterBets": tmp.Verified = tmp.Roll == (decimal)BB.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "MoneyPot": tmp.Verified = tmp.Roll == (decimal)moneypot.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "MoneroDice": tmp.Verified = tmp.Roll == (decimal)MoneroDice.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "FortuneJack": tmp.Verified = tmp.Roll == (decimal)FortuneJack.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "Coinichiwa": tmp.Verified = tmp.Roll == (decimal)Coinichiwa.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "CoinMillions": tmp.Verified = tmp.Roll == (decimal)CoinMillions.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "CryptoGames": tmp.Verified = tmp.Roll == (decimal)cryptogames.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "Bitsler": tmp.Verified = tmp.Roll == (decimal)Bitsler.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "Wealthydice": tmp.Verified = tmp.Roll == (decimal)WD.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "SatoshiDice": tmp.Verified = tmp.Roll == (decimal)SatoshiDice.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "Bitvest": tmp.Verified = tmp.Roll == (decimal)Bitvest.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "KingDice": tmp.Verified = tmp.Roll == (decimal)Kingdice.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; case "YoloDice": tmp.Verified = tmp.Roll == (decimal)YoloDice.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break; } } return(tmp); }
private void justDiceToolStripMenuItem_CheckedChanged(object sender, EventArgs e) { EnableNotLoggedInControls(false); if (CurrentSite != null) { CurrentSite.Disconnect(); } if (CurrentSite is PD) { (CurrentSite as PD).ispd = false; } if ((sender as ToolStripMenuItem).Checked) { foreach (ToolStripMenuItem t in siteToolStripMenuItem.DropDownItems) { if (t == sender as ToolStripMenuItem) { t.Checked = true; } else { t.Checked = false; } } switch ((sender as ToolStripMenuItem).Name) { case "justDiceToolStripMenuItem": CurrentSite = new JD(this); siteToolStripMenuItem.Text = "Site " + "(JD)"; break; case "pocketRocketsCasinoToolStripMenuItem": CurrentSite = new PRC(this); siteToolStripMenuItem.Text = "Site " + "(PRC)"; break; case "diceToolStripMenuItem": CurrentSite = new dice999(this); siteToolStripMenuItem.Text = "Site " + "(999D)"; break; case "primeDiceToolStripMenuItem": CurrentSite = new PD(this); siteToolStripMenuItem.Text = "Site " + "(PD)"; break; case "safediceToolStripMenuItem": CurrentSite = new SafeDice(this); siteToolStripMenuItem.Text = "Site (SD)"; break; case "daDiceToolStripMenuItem": CurrentSite = new dadice(this); siteToolStripMenuItem.Text = "Site (DAD)"; break; case "rollinIOToolStripMenuItem": CurrentSite = new rollin(this); siteToolStripMenuItem.Text = "Site (RIO)"; break; case "bitDiceToolStripMenuItem": CurrentSite = new bitdice(this); siteToolStripMenuItem.Text = "Site (BD)"; break; case "betterbetsToolStripMenuItem": CurrentSite = new BB(this); siteToolStripMenuItem.Text = "Site (BB)"; break; case "moneyPotToolStripMenuItem" : CurrentSite = new moneypot(this); siteToolStripMenuItem.Text = "Site (MP)"; break; case "coinMillionsToolStripMenuItem": CurrentSite = new CoinMillions(this); siteToolStripMenuItem.Text = "Site(CM)"; break; } if (CurrentSite is dadice || CurrentSite is CoinMillions) { lblPass.Text = "API key:"; } else if (CurrentSite is BB || CurrentSite is moneypot) { lblPass.Text = "API Token"; } else { lblPass.Text = "Password:"; } if (CurrentSite is moneypot) { btnMPDeposit.Visible = btnMPWithdraw.Visible = true; } else { btnMPDeposit.Visible = btnMPWithdraw.Visible = false; } rdbInvest.Enabled = CurrentSite.AutoInvest; if (!rdbInvest.Enabled) rdbInvest.Checked = false; rdbWithdraw.Enabled = CurrentSite.AutoWithdraw; if (!rdbWithdraw.Enabled) rdbWithdraw.Checked = false; if (UseProxy) CurrentSite.SetProxy(proxHost, proxport, proxUser, proxPass); } }
static Bet BetParser(SQLiteDataReader Reader) { string site = ""; Bet tmp = new Bet(); for (int i = 0; i < Reader.FieldCount; i++) { switch (Reader.GetName(i)) { case "betid": tmp.Id = (string)Reader[i]; break; case "date": tmp.date = (DateTime)Reader[i]; break; case "stake": tmp.Amount = (decimal)Reader[i]; break; case "profit": tmp.Profit = (decimal)Reader[i]; break; case "chance": tmp.Chance = (decimal)Reader[i]; break; case "high": tmp.high = (short)Reader[i] == 1; break; case "lucky": tmp.Roll = (decimal)Reader[i]; break; case "hash": tmp.serverhash = (string)Reader[i]; break; case "nonce": tmp.nonce = (long)Reader[i]; break; case "uid": tmp.uid = (int)Reader[i]; break; case "Client": tmp.clientseed = (string)Reader[i]; break; case "server": tmp.serverseed = (string)Reader[i]; break; case "site": site = (string)Reader[i]; break; } } if (!string.IsNullOrEmpty(tmp.serverseed) && !string.IsNullOrEmpty(tmp.clientseed) && tmp.Roll != -1 && site != "") { switch (site) { case "JustDice": tmp.Verified = tmp.Roll == (decimal)DiceSite.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "PrimeDice": tmp.Verified = tmp.Roll == (decimal)PD.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "999Dice": tmp.Verified = tmp.Roll == (decimal)dice999.sGetLucky(tmp.serverseed, (tmp.clientseed), tmp.nonce, /*(long)(tmp.Roll*10000m),*/ tmp.serverhash); break; case "SafeDice": tmp.Verified = tmp.Roll == (decimal)SafeDice.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "BetKing": tmp.Verified = tmp.Roll == (decimal)BetKing.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "BitDice": tmp.Verified = tmp.Roll == (decimal)bitdice.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "FortuneJack": tmp.Verified = tmp.Roll == (decimal)FortuneJack.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "CryptoGames": tmp.Verified = tmp.Roll == (decimal)cryptogames.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "Bitsler": tmp.Verified = tmp.Roll == (decimal)Bitsler.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "SatoshiDice": case "MegaDice": tmp.Verified = tmp.Roll == (decimal)SatoshiDice.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "Bitvest": tmp.Verified = tmp.Roll == (decimal)Bitvest.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "KingDice": tmp.Verified = tmp.Roll == (decimal)Kingdice.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "YoloDice": tmp.Verified = tmp.Roll == (decimal)YoloDice.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "DuckDice": tmp.Verified = tmp.Roll == (decimal)DuckDice.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "NitroDice": tmp.Verified = tmp.Roll == (decimal)NitroDice.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "WolfBet": tmp.Verified = tmp.Roll == (decimal)WolfBet.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "WinDice": tmp.Verified = tmp.Roll == (decimal)WinDice.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "Bit-Exo": tmp.Verified = tmp.Roll == (decimal)BitExo.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "FreeBitcoin": tmp.Verified = tmp.Roll == (decimal)Freebitcoin.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "Nitrogen Sports": tmp.Verified = tmp.Roll == (decimal)NitrogenSports.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; case "Stake": tmp.Verified = tmp.Roll == (decimal)Stake.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break; } } return(tmp); }