coinwalk

awesome snowy

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