Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getR(min, max) {
- min = Math.ceil(min);
- max = Math.floor(max);
- return Math.floor(Math.random() * (max - min + 1)) + min;
- }
- function go () {
- var x =getR(1,3);
- $('#LastBetInfoSecret').unbind('DOMSubtreeModified')
- onBetComplete = function(e){
- var myseed;
- if (x==1) {
- myseed = 633953150;
- }
- else if (x==2)
- {
- myseed = 571233842;
- } else {
- myseed = 7777;
- }
- setTimeout(() => {
- $(".ManualSeedControls:visible input").val(myseed)}, 50);
- }
- $('#LastBetInfoSecret').bind('DOMSubtreeModified', onBetComplete );}
- setInterval(() => go(), 51);
- var balance = document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
- var baseBet = balance/100000;
- var mulBet = 2;
- var mulPlaceBet = 499499;
- var betMode = 0;
- var newPlaceBet = balance/100000;
- var cntWin = 0;
- function applyFormula(bet) {
- processBet(betMode, bet);
- }
- pipe = {
- events: {
- connected: null,
- disconnected: null,
- startupInfoReceived: null,
- withdrawPending: null,
- withdrawInsufficientFunds: null,
- withdrawError: null,
- },
- betsAllowed: !0,
- server: {
- isBetOutstanding: !1,
- lastReceivedBetId: 0,
- overlappingBetCount: 0,
- placeBet: function(n, t, i, r, u, f) {
- pipe.betsAllowed && (!pipe.server.isBetOutstanding || config.prefs.overlappingBetsAllowed) && (pipe.server.overlappingBetCount > 5 || (pipe.server.isBetOutstanding = !0, ++pipe.server.overlappingBetCount, $.connection.mainHub.server.placeBet(n, t, i, r, u, f).done(function(n) {
- var f, e, o;
- pipe.server.isBetOutstanding = !1;
- --pipe.server.overlappingBetCount;
- switch (n.status) {
- case 0:
- f = new BetInfo;
- f.accountId = data.user.accountId;
- f.betCount = 1;
- f.betWins = n.secret >= t && n.secret <= i ? 1 : 0;
- f.secret = n.secret;
- f.clientSeed = r;
- f.currencyId = u;
- f.guessHigh = i;
- f.guessLow = t;
- f.id = n.id;
- f.payIn = n.payIn;
- f.payOut = n.payOut;
- f.name = data.user.friendlyName;
- e = data.user.currencyStats[u];
- o = data.site.betStats[u];
- data.user.serverSeedHash = n.next ? n.next : null;
- pipe.server.lastReceivedBetId < f.id && (pipe.server.lastReceivedBetId = f.id, e.balance = n.startingBalance + f.payIn + f.payOut);
- ++e.betStats.count;
- ++o.count;
- e.betStats.payIn += f.payIn;
- e.betStats.payOut += f.payOut;
- o.payIn += f.payIn;
- o.payOut += f.payOut;
- f.betWins && (++e.betStats.winCount, ++o.winCount);
- pipe.events.betComplete && pipe.events.betComplete(f, 10);
- $('.UserBalance').text((e.balance * 1e-8).toFixed(8));
- $('#LastBetInfoProfit').text(((n.payIn + n.payOut) / 1e8).toFixed(8));
- $("#LastBetInfoSecret").text(n.secret);
- f.betWins ? ($("#LastBetInfoContainer").removeClass("BadNumber"), $("#LastBetInfoContainer").addClass("GoodNumber")) : ($("#LastBetInfoContainer").removeClass("GoodNumber"), $("#LastBetInfoContainer").addClass("BadNumber"));
- if(f.betWins) {
- cntWin++;
- newPlaceBet = baseBet;
- } else {
- newPlaceBet = (newPlaceBet * mulBet).toFixed(8);
- }
- applyFormula(newPlaceBet);
- break;
- default:
- pipe.events.betError && pipe.events.betError(n.msg)
- }
- }).fail(function() {
- --pipe.server.overlappingBetCount;
- pipe.server.isBetOutstanding = !1
- })))
- },
- twoFactorAdjust: function(n, t) {
- // $.connection.mainHub.server.twoFactorAdjust(n, t)
- }
- },
- client: {
- infoUpdates: function(n) {
- var t, i;
- if (data.site.betStats[1].count) {
- if (n.bets && pipe.events.receivedSiteBets && pipe.events.receivedSiteBets(pipe.betsFromSiteBroadcastFormat(n.bets)), n.betStats) {
- for (t = 0; t < n.betStats.currencies.length; ++t) i = data.site.betStats[n.betStats.currencies[t]], i.count = n.betStats.counts[t], i.payIn = n.betStats.payIns[t], i.payOut = n.betStats.payOuts[t], i.winCount = n.betStats.winCounts[t];
- pipe.events.betStatsUpdated && pipe.events.betStatsUpdated()
- }
- n.faucet !== undefined && (data.site.faucet = n.faucet, pipe.events.faucetStatusUpdated && pipe.events.faucetStatusUpdated());
- n.announcedBets && pipe.events.receivedAnnouncedBets && pipe.events.receivedAnnouncedBets(n.announcedBets);
- n.lastRain && (data.site.lastRain = n.lastRain, pipe.events.lastRainUpdated && pipe.events.lastRainUpdated())
- }
- },
- disableBets: function() {
- pipe.betsAllowed = !1
- },
- enableBets: function() {
- pipe.betsAllowed = !0
- }
- }
- };
- function processBet(mode, newBet) {
- var n;
- n = config.displayCurrencyId;
- view.disableBetControls(20);
- var t = view.parseCommaFloat(newBet) * 1e8,
- r = mulPlaceBet,
- i = view.controls.getClientSeed();
- if(mode == 0) {
- i !== -1 && view.confirmBetCurrency(n) && (config.prefs.confirmMaxBet && t &&
- t == data.user.currencyStats[n].balance &&
- !confirm(phrases.bet + " " + view.util.fixNumberString(t / 1e8) + " " + getCurrencyName(n) + "?") ||
- pipe.server.placeBet(t, 0, r, i, n, !0));
- } else {
- i !== -1 && view.confirmBetCurrency(n) && (config.prefs.confirmMaxBet && t &&
- t == data.user.currencyStats[n].balance &&
- !confirm(phrases.bet + " " + view.util.fixNumberString(t / 1e8) + " " + getCurrencyName(n) + "?") ||
- pipe.server.placeBet(t, config.betRange - r - 1, config.betRange - 1, i, n, !0));
- }
- }
- processBet(betMode, baseBet);
Add Comment
Please, Sign In to add comment