Advertisement
coinwalk

touch up

Jul 24th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 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. var good=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  22. var longer=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  23. var long=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  24. var myseed;
  25. var chance = 5;
  26. var nextbet;
  27. var fraction=50000;
  28. var basebet=longer/fraction;
  29. var more = document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  30. var target = 350000;
  31. parseFloat(document.getElementById('BetSizeInput').value = (basebet));
  32. var win;
  33. var botbuddy=0;
  34. var bogus=false;
  35.  
  36. function dobet(){
  37. var secret=parseFloat($('#LastBetInfoSecret').html());
  38. var bal=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  39. var previousbet=document.getElementById('BetSizeInput').value;
  40. document.getElementById('BetChanceInput').value = chance;
  41. if (bal<=more){
  42. win=false;}
  43.  
  44. if (bal>more){
  45. win=true;
  46. more=(parseFloat(bal));}
  47.  
  48. if (win==false){
  49. botbuddy++;
  50. }
  51. if (botbuddy==8){
  52. nextbet=(previousbet*2);
  53. botbuddy=0;
  54. }
  55. if (win==true){
  56. nextbet=basebet;
  57. botbuddy=0;
  58. }
  59. if (nextbet==null){
  60. nextbet= previousbet;}
  61.  
  62. if (bal>good){
  63. console.log('in profit');
  64. }else{
  65. console.log('not in profit');
  66. }
  67.  
  68. if (bal>target) {
  69. //stop();
  70. console.log('get int');
  71. return;
  72. }
  73. var lol;
  74. if ((win==true)&&(secret>949999)){
  75. bogus=true;
  76. lol=true;
  77. }else if ((win==true)&&(secret<50000)){
  78. bogus=false;
  79. lol=false;
  80. }else if ((win==false)&&(secret>949999)){
  81. bogus=false;
  82. lol=false;
  83. }else if ((win==false)&&(secret<50000)){
  84. bogus=true;
  85. lol=true;
  86. }else if (lol==true){
  87. bogus=true;
  88. }else if (lol==false){
  89. bogus=false;
  90. }
  91.  
  92. parseFloat(document.getElementById('BetSizeInput').value = (nextbet));
  93. if (bogus==true){
  94. $('#BetLowButton').click();
  95. }else if (bogus==false){
  96. $('#BetHighButton').click();}}
  97.  
  98. var lol= document.getElementsByClassName("HighlightedText FairTabServerSeedHash")[0].innerHTML;
  99.  
  100. function zim(){
  101. lol= document.getElementsByClassName("HighlightedText FairTabServerSeedHash")[0].innerHTML;
  102. return (parseInt(lol,16));
  103. }
  104.  
  105. function go(){
  106. var sec=(parseFloat($('#LastBetInfoSecret').html()));
  107. $('#LastBetInfoSecret').unbind('DOMSubtreeModified');
  108. function onBetComplete(e){
  109. myseed = Math.ceil(zim()/(999999999999999999999999999999999999999999999999999999999999999999999999999/(sec)));
  110. setTimeout(() => { $(".ManualSeedControls:visible input").val(myseed)}, 50);
  111. }
  112. $('#LastBetInfoSecret').bind('DOMSubtreeModified', onBetComplete );}
  113. setInterval(() => go(), 51);
  114. setInterval(() => dobet(), 3000);
  115.  
  116.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement