Advertisement
coinwalk

snowybot returns part 2

Jul 19th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.44 KB | None | 0 0
  1. function resetseed(){
  2. var a=document.getElementsByClassName('ManualSeedControls')[0];
  3. if(!a)return;
  4. if(a.style.display!='block'){
  5. console.log('Enabling manual seed');
  6. if(document.getElementById('AccountTabManualSeed')){
  7. document.getElementById('AccountTabManualSeed').click();
  8. }
  9. resetseed();
  10. }
  11. }
  12. resetseed();
  13. function getR(min, max) {
  14. min = Math.ceil(min);
  15. max = Math.floor(max);
  16. return Math.floor(Math.random() * (max - min + 1)) + min;
  17. }
  18.  
  19.  
  20. Math.fmod = function (a,b) { return Number((a - (Math.floor(a / b) * b)).toPrecision(8)); }
  21.  
  22. var longer=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  23. var long=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  24. var loss=0;
  25. var winn=0;
  26. var chance = 49.95;
  27. var nextbet;
  28. var fraction=200;
  29. var basebet=longer/fraction;
  30. var more = document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  31. var target = 50000;
  32. var nob=getR(1,2);
  33. var wyn=0;
  34. var bad=0;
  35. parseFloat(document.getElementById('BetSizeInput').value = (basebet));
  36. function bethigh() {
  37. var secret=parseFloat($('#LastBetInfoSecret').html());
  38. var tossy=0;
  39. var lossy=0;
  40. var bethight;
  41. var mosy=0;
  42. var kossy=0;
  43. if (secret<499500){
  44. bethight=false;
  45. return false;
  46. }else{
  47. bethight=true;
  48. return true;
  49. }
  50. if ((secret < 499500)&&(bethight==true)) {
  51. tossy++;
  52. lossy=0;
  53. mosy=0;
  54. kossy=0;
  55. } else if ((secret < 499500)&&(bethight==false)) {
  56. lossy++;
  57. mosy=0;
  58. kossy=0;
  59. tossy=0
  60. }else if ((secret > 499500)&&(bethight==true)) {
  61. mosy++;
  62. kossy=0;
  63. lossy=0;
  64. tossy=0;
  65. }else{
  66. kossy++;
  67. lossy=0;
  68. tossy=0;
  69. mosy=0;
  70. }
  71. if (tossy>=1){
  72. return true;
  73. tossy = 0;}
  74. if (mosy>=1){
  75. return true;
  76. mosy = 0;}
  77. if (lossy>=1){
  78. return false;
  79. lossy = 0;}
  80. if (kossy>=1){
  81. return false;
  82. kossy = 0;}}
  83.  
  84. function dobet(){
  85. var secret=parseFloat($('#LastBetInfoSecret').html());
  86. var bal=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  87. var previousbet=document.getElementById('BetSizeInput').value;
  88. document.getElementById('BetChanceInput').value = chance;
  89. basebet=bal/fraction;
  90. if (bal>=(more+(basebet*4))) {
  91. nextbet=previousbet*2;
  92. more=(parseFloat(bal));
  93. }
  94. if (bal>=(long+(basebet*8))) {
  95. nextbet=basebet;
  96. long=(parseFloat(bal));
  97. more=(parseFloat(bal));
  98. }
  99. if (nextbet==null) {
  100. nextbet=previousbet;
  101. }
  102. if (bal > target) {
  103. //stop();
  104. $('#notification').html('Relax & Reload');
  105. alert('Relax & Reload');
  106. console.log('Relax & Reload');
  107. return;
  108. }
  109. parseFloat(document.getElementById('BetSizeInput').value = (nextbet));
  110. if (bethigh()==true) {
  111. $('#BetHighButton').click();}
  112. else if (bethigh()==false) {
  113. $('#BetLowButton').click();}}
  114.  
  115. setInterval(() => dobet(), 3000);
  116.  
  117. function no () {
  118. var vim = document.getElementsByClassName("HighlightedText FairTabServerSeedHash")[0].innerHTML
  119. return parseInt(vim,16);
  120. }
  121. function go () {
  122. $('#LastBetInfoSecret').unbind('DOMSubtreeModified');
  123. onBetComplete = function(e){
  124. var secret=parseFloat($('#LastBetInfoSecret').html());
  125. var bal=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  126. var now;
  127. var hitlerone=0;
  128. var hitlertwo=0;
  129. var hitlerthree=0;
  130. if ((bethigh()==true)&&(secret>499500)){
  131. now = Math.ceil(no()/99999999999999999999999999999999999999999999999999999999999999999999999);
  132. }else if ((bethigh()==false)&&(secret<499500)){
  133. now = Math.ceil(no()/99999999999999999999999999999999999999999999999999999999999999999999999);}
  134. else{
  135. hitlerone++;
  136. hitlertwo++;
  137. hitlerthree++;}
  138. if (hitlerone==1){
  139. now = Math.ceil(no()/(99999999999999999999999999999999999999999999999999999999999999999999999*(secret/1000000)));
  140. hitlerone=0 } else
  141. if (hitlertwo==2){
  142. now = Math.ceil(no()/(99999999999999999999999999999999999999999999999999999999999999999999999*(secret/100000)));
  143. hitlertwo=0 } else
  144. if (hitlerthree==3){
  145. now = Math.ceil(no()/(99999999999999999999999999999999999999999999999999999999999999999999999*(secret/10000)));
  146. hitlerthree=0; }
  147. else {
  148. now = Math.ceil(no()/99999999999999999999999999999999999999999999999999999999999999999999999);}
  149.  
  150. setTimeout(() => {
  151. $(".ManualSeedControls:visible input").val(now)}, 50);
  152. }
  153. $('#LastBetInfoSecret').bind('DOMSubtreeModified', onBetComplete );}
  154. setInterval(() => go(), 51);
  155.  
  156. setInterval(() => dobet(), 3000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement