Advertisement
coinwalk

consle but check min bet

Apr 26th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 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. if (x==1) {
  11. mySeed = 633953150;
  12. }
  13. else if (x==2)
  14. {
  15. mySeed = 7777;
  16. }
  17. else
  18. {
  19. mySeed = 999;
  20. }
  21. setTimeout(() => {
  22. $(".ManualSeedControls:visible input").val(mySeed)}, 50);
  23. }
  24. $('#LastBetInfoSecret').bind('DOMSubtreeModified', onBetComplete );}
  25. let timerId = setInterval(() => go(), 50);
  26.  
  27. var maxstrike =15;
  28. var stoploss = 50;// %
  29. var min = 80;
  30. var max = 95;
  31. //--------------------------
  32. var minbet = 1;
  33. var balance = parseFloat(document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText);
  34. var basebet;
  35. var profit = parseFloat($('#LastBetInfoProfit').html());
  36. var bet;
  37. var betid;
  38. var chance = 93;
  39. var startbalance = balance;
  40. var sbalance = balance;
  41. var tick = 0;
  42. var betting = true;
  43. var maxbet = startbalance*stoploss/100;
  44. var b;
  45. var i = 0;
  46.  
  47. b = balance*stoploss/100;
  48. while(i<maxstrike){
  49. b/=4;
  50. i++;
  51. }
  52. basebet = b;
  53. if(basebet < minbet) basebet = minbet;
  54. bet = basebet;
  55.  
  56. document.getElementById('BetSizeInput').value = (bet).toFixed(8);
  57. document.getElementById('BetChanceInput').value = chance;
  58. $('#BetLowButton').click();
  59. balance = parseFloat(document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText);
  60. profit = parseFloat($('#LastBetInfoProfit').html());
  61.  
  62. startbalance = balance;
  63. console.log('Game started at balance ',(balance).toFixed(8));
  64.  
  65. setInterval("roll()", 1000);
  66.  
  67. function roll(){
  68. tick+=1;
  69. if (betting && tick >=15 || betid != parseFloat($('#LastBetInfoSecret').html())){
  70. betid = parseFloat($('#LastBetInfoSecret').html());
  71. profit = parseFloat($('#LastBetInfoProfit').html());
  72. balance = parseFloat(document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText);
  73.  
  74.  
  75. if(profit < 0){
  76. if(balance-bet*4 > startbalance*stoploss/100)bet*=4;
  77. else if(balance-bet*2 > startbalance*stoploss/100)bet*=2;
  78. }else{
  79. if(balance > startbalance){
  80. i = 0;
  81. b = balance*stoploss/100;
  82. while(i<maxstrike){
  83. b/=4;
  84. i++;
  85. }
  86. basebet = b;
  87. if(basebet < minbet) basebet = minbet;
  88. bet = basebet;
  89. console.log('Current balance ',(balance).toFixed(8),' profit ',(balance-startbalance).toFixed(8),
  90. ' Session profit ',(balance-sbalance).toFixed(8),' ',(100*(balance-sbalance)/sbalance).toFixed(2),'%');
  91. startbalance = balance;
  92. maxbet = startbalance*stoploss/100;
  93. }
  94. }
  95.  
  96. chance = (Math.random() * (max - min) + min).toFixed(2);
  97.  
  98. if(betting && bet <= maxbet){
  99. document.getElementById('BetSizeInput').value = (bet).toFixed(8);
  100. document.getElementById('BetChanceInput').value = chance;
  101. if(Math.random() < 0.5){
  102. $('#BetLowButton').click();
  103. }else{
  104. $('#BetHighButton').click();
  105. }
  106. tick = 0;
  107. }else{
  108. betting = false;
  109. console.log('Game stopped at balance ',(balance).toFixed(8),' Loss ',(startbalance - balance).toFixed(8));
  110. }
  111. }
  112. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement