coinwalk

snowy bot ultimate

May 4th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.57 KB | None | 0 0
  1. function getR(min, max) {
  2. min = Math.ceil(min);
  3. max = Math.floor(max);
  4. return Math.floor(Math.random() * (max - min + 1)) + min;
  5. }
  6. function go () {
  7. var x =getR(1,3);
  8. $('#LastBetInfoSecret').unbind('DOMSubtreeModified')
  9. onBetComplete = function(e){
  10. var myseed;
  11. if (x==1) {
  12. myseed = 633953150;
  13. }
  14. else if (x==2)
  15. {
  16. myseed = 571233842;
  17. } else {
  18. myseed = 7777;
  19. }
  20. setTimeout(() => {
  21. $(".ManualSeedControls:visible input").val(myseed)}, 50);
  22. }
  23. $('#LastBetInfoSecret').bind('DOMSubtreeModified', onBetComplete );}
  24. setInterval(() => go(), 51);
  25.  
  26. var balance = document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  27. var baseBet = balance/100000;
  28. var mulBet = 2;
  29. var mulPlaceBet = 499499;
  30. var betMode = 0;
  31. var newPlaceBet = balance/100000;
  32. var cntWin = 0;
  33.  
  34. function applyFormula(bet) {
  35. processBet(betMode, bet);
  36. }
  37.  
  38. pipe = {
  39. events: {
  40. connected: null,
  41. disconnected: null,
  42. startupInfoReceived: null,
  43. withdrawPending: null,
  44. withdrawInsufficientFunds: null,
  45. withdrawError: null,
  46. },
  47. betsAllowed: !0,
  48. server: {
  49. isBetOutstanding: !1,
  50. lastReceivedBetId: 0,
  51. overlappingBetCount: 0,
  52. placeBet: function(n, t, i, r, u, f) {
  53. 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) {
  54. var f, e, o;
  55. pipe.server.isBetOutstanding = !1;
  56. --pipe.server.overlappingBetCount;
  57. switch (n.status) {
  58. case 0:
  59. f = new BetInfo;
  60. f.accountId = data.user.accountId;
  61. f.betCount = 1;
  62. f.betWins = n.secret >= t && n.secret <= i ? 1 : 0;
  63. f.secret = n.secret;
  64. f.clientSeed = r;
  65. f.currencyId = u;
  66. f.guessHigh = i;
  67. f.guessLow = t;
  68. f.id = n.id;
  69. f.payIn = n.payIn;
  70. f.payOut = n.payOut;
  71. f.name = data.user.friendlyName;
  72. e = data.user.currencyStats[u];
  73. o = data.site.betStats[u];
  74. data.user.serverSeedHash = n.next ? n.next : null;
  75. pipe.server.lastReceivedBetId < f.id && (pipe.server.lastReceivedBetId = f.id, e.balance = n.startingBalance + f.payIn + f.payOut);
  76. ++e.betStats.count;
  77. ++o.count;
  78. e.betStats.payIn += f.payIn;
  79. e.betStats.payOut += f.payOut;
  80. o.payIn += f.payIn;
  81. o.payOut += f.payOut;
  82. f.betWins && (++e.betStats.winCount, ++o.winCount);
  83. pipe.events.betComplete && pipe.events.betComplete(f, 10);
  84. $('.UserBalance').text((e.balance * 1e-8).toFixed(8));
  85. $('#LastBetInfoProfit').text(((n.payIn + n.payOut) / 1e8).toFixed(8));
  86. $("#LastBetInfoSecret").text(n.secret);
  87. f.betWins ? ($("#LastBetInfoContainer").removeClass("BadNumber"), $("#LastBetInfoContainer").addClass("GoodNumber")) : ($("#LastBetInfoContainer").removeClass("GoodNumber"), $("#LastBetInfoContainer").addClass("BadNumber"));
  88. if(f.betWins) {
  89. cntWin++;
  90. newPlaceBet = baseBet;
  91. } else {
  92. newPlaceBet = (newPlaceBet * mulBet).toFixed(8);
  93. }
  94. applyFormula(newPlaceBet);
  95. break;
  96. default:
  97. pipe.events.betError && pipe.events.betError(n.msg)
  98. }
  99. }).fail(function() {
  100. --pipe.server.overlappingBetCount;
  101. pipe.server.isBetOutstanding = !1
  102. })))
  103. },
  104. twoFactorAdjust: function(n, t) {
  105. // $.connection.mainHub.server.twoFactorAdjust(n, t)
  106. }
  107. },
  108. client: {
  109. infoUpdates: function(n) {
  110. var t, i;
  111. if (data.site.betStats[1].count) {
  112. if (n.bets && pipe.events.receivedSiteBets && pipe.events.receivedSiteBets(pipe.betsFromSiteBroadcastFormat(n.bets)), n.betStats) {
  113. 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];
  114. pipe.events.betStatsUpdated && pipe.events.betStatsUpdated()
  115. }
  116. n.faucet !== undefined && (data.site.faucet = n.faucet, pipe.events.faucetStatusUpdated && pipe.events.faucetStatusUpdated());
  117. n.announcedBets && pipe.events.receivedAnnouncedBets && pipe.events.receivedAnnouncedBets(n.announcedBets);
  118. n.lastRain && (data.site.lastRain = n.lastRain, pipe.events.lastRainUpdated && pipe.events.lastRainUpdated())
  119. }
  120. },
  121. disableBets: function() {
  122. pipe.betsAllowed = !1
  123. },
  124. enableBets: function() {
  125. pipe.betsAllowed = !0
  126. }
  127. }
  128. };
  129.  
  130. function processBet(mode, newBet) {
  131. var n;
  132. n = config.displayCurrencyId;
  133. view.disableBetControls(20);
  134. var t = view.parseCommaFloat(newBet) * 1e8,
  135. r = mulPlaceBet,
  136. i = view.controls.getClientSeed();
  137. if(mode == 0) {
  138. i !== -1 && view.confirmBetCurrency(n) && (config.prefs.confirmMaxBet && t &&
  139. t == data.user.currencyStats[n].balance &&
  140. !confirm(phrases.bet + " " + view.util.fixNumberString(t / 1e8) + " " + getCurrencyName(n) + "?") ||
  141. pipe.server.placeBet(t, 0, r, i, n, !0));
  142. } else {
  143. i !== -1 && view.confirmBetCurrency(n) && (config.prefs.confirmMaxBet && t &&
  144. t == data.user.currencyStats[n].balance &&
  145. !confirm(phrases.bet + " " + view.util.fixNumberString(t / 1e8) + " " + getCurrencyName(n) + "?") ||
  146. pipe.server.placeBet(t, config.betRange - r - 1, config.betRange - 1, i, n, !0));
  147. }
  148.  
  149. }
  150.  
  151. processBet(betMode, baseBet);
Add Comment
Please, Sign In to add comment