coinwalk

robot snowball

Jul 21st, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 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 bs;
  27. var chance = 49.95;
  28. var nextbet;
  29. var fraction=400;
  30. var basebet=longer/fraction;
  31. var more = document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  32. var target = 50000;
  33. var nob=getR(1,2);
  34. var wyn=0;
  35. var bad=0;
  36. parseFloat(document.getElementById('BetSizeInput').value = (basebet));
  37. var secret=parseFloat($('#LastBetInfoSecret').html());
  38. var bethight=0;
  39. var tossy=0;
  40. var lossy=0;
  41. var fuck;
  42. var low;
  43. var savage;
  44. var god=0;
  45.  
  46. function win(){
  47. if ((low==true)&&(secret<499500)){
  48. return true;
  49. bs=false;
  50. }else if ((low==false)&&(secret>500499)) {
  51. return true;
  52. bs=true;
  53. }else{
  54. return false;
  55. bs=false;
  56. }}
  57. function dobet(){
  58. var secrets=$('#LastBetInfoSecret').html();
  59. var secret=parseFloat($('#LastBetInfoSecret').html());
  60. var bal=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  61. var previousbet=document.getElementById('BetSizeInput').value;
  62. document.getElementById('BetChanceInput').value = chance;
  63. basebet=bal/fraction;
  64. if (win()==true) {
  65. nextbet=basebet;
  66. more=(parseFloat(bal));
  67. longer=(parseFloat(bal));
  68. }
  69. if (bal<=longer){
  70. nextbet=previousbet*1.8;
  71. longer=(parseFloat(bal));
  72. }
  73. if (bal>=(long+(basebet*8))) {
  74. nextbet=basebet;
  75. long=(parseFloat(bal));
  76. longer=(parseFloat(bal));
  77. more=(parseFloat(bal));
  78. }
  79. if (nextbet==null) {
  80. nextbet=previousbet;
  81. }
  82. if (bal > target) {
  83. //stop();
  84. $('#notification').html('Relax & Reload');
  85. alert('Relax & Reload');
  86. console.log('Relax & Reload');
  87. return;
  88. }
  89. if ((win()==true)&&(secrets<500499)){
  90. bs=true;}
  91. else{
  92. bs=false}
  93.  
  94.  
  95. if (win()==false){
  96. lossy++;
  97. }else{
  98. savage=false;
  99. lossy=0;}
  100. if (lossy==2){
  101. savage=true;
  102. god++;
  103. lossy=0;}
  104. if (god>1){
  105. savage=false;
  106. god=0;}
  107.  
  108. parseFloat(document.getElementById('BetSizeInput').value = (nextbet));
  109.  
  110.  
  111. if ((bs==false)&&(savage==false)) {
  112. low=false;
  113. $('#BetHighButton').click();}
  114. else if ((bs==true)&&(savage==true)) {
  115. low=false;
  116. $('#BetHighButton').click();}
  117. else if (bs==true) {
  118. low=true;
  119. $('#BetLowButton').click();}
  120. else{
  121. low=true;
  122. $('#BetLowButton').click();
  123. }}
  124.  
  125. function no () {
  126. var vim = document.getElementsByClassName("HighlightedText FairTabServerSeedHash")[0].innerHTML
  127. return parseInt(vim,16);
  128. }
  129. function go () {
  130. $('#LastBetInfoSecret').unbind('DOMSubtreeModified');
  131. onBetComplete = function(e){
  132. var secret=parseFloat($('#LastBetInfoSecret').html());
  133. var bal=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  134. var now;
  135. var hitlerone=0;
  136. var hitlertwo=0;
  137. var hitlerthree=0;
  138. if ((win()==true)&&(secret>499500)){
  139. now = Math.ceil(no()/999999999999999999999999999999999999999999999999999999999999999999999999999/(secret));
  140. }else if ((win()==true)&&(secret<499500)){
  141. now = Math.ceil(no()/999999999999999999999999999999999999999999999999999999999999999999999999999/(secret));}
  142. else{
  143. hitlerone++;
  144. hitlertwo++;
  145. hitlerthree++;}
  146. if (hitlerone==1){
  147. now = Math.ceil(no()/(999999999999999999999999999999999999999999999999999999999999999999999999999/(secret)));
  148. hitlerone=0 } else
  149. if (hitlertwo==2){
  150. now = Math.ceil(no()/(999999999999999999999999999999999999999999999999999999999999999999999999999/(secret)));
  151. hitlertwo=0 } else
  152. if (hitlerthree==3){
  153. now = Math.ceil(no()/(999999999999999999999999999999999999999999999999999999999999999999999999999/(secret)));
  154. hitlerthree=0; }
  155. else {
  156. now = Math.ceil(no()/99999999999999999999999999999999999999999999999999999999999999999999999);}
  157.  
  158. setTimeout(() => {
  159. $(".ManualSeedControls:visible input").val(now)}, 50);
  160. }
  161. $('#LastBetInfoSecret').bind('DOMSubtreeModified', onBetComplete );}
  162. setInterval(() => go(), 51);
  163.  
  164. setInterval(() => dobet(), 4000);
Add Comment
Please, Sign In to add comment