Advertisement
coinwalk

woot bot

Jun 27th, 2020
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 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. function no () {
  19. var vim = document.getElementsByClassName("HighlightedText FairTabServerSeedHash")[0].innerHTML
  20. return parseInt(vim,16);
  21. }
  22. function go () {
  23. $('#LastBetInfoSecret').unbind('DOMSubtreeModified');
  24. onBetComplete = function(e){
  25. var xol= getR(1,3)
  26. var now;
  27. if (xol==1){
  28. now = (getR(300,500));
  29. }else if (xol==2) {
  30. now = (getR(7777,9999));
  31. }else{
  32. now = (getR(777777777,999999999));
  33. }
  34. setTimeout(() => {
  35. $(".ManualSeedControls:visible input").val(now)}, 50);
  36. }
  37. $('#LastBetInfoSecret').bind('DOMSubtreeModified', onBetComplete );}
  38. setInterval(() => go(), 51);
  39.  
  40.  
  41. Math.fmod = function (a,b) { return Number((a - (Math.floor(a / b) * b)).toPrecision(8)); }
  42.  
  43. var longer = document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  44. var loss=0;
  45. var winn=0;
  46. var chance = 49.95;
  47. var nextbet;
  48. var fraction=44;
  49. var basebet=longer/fraction;
  50. var more = document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  51. var target = longer*25;
  52. var targ = longer*4;
  53. parseFloat(document.getElementById('BetSizeInput').value = (basebet));
  54.  
  55. function dobet(){
  56. var secret=parseFloat($('#LastBetInfoSecret').html());
  57. var bal=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  58. var previousbet=document.getElementById('BetSizeInput').value;
  59. document.getElementById('BetChanceInput').value = chance;
  60. var basebet=bal/fraction;
  61. if (secret<500500) {
  62. loss++;
  63. }else{
  64. winn++;
  65. }
  66. if (Math.fmod(winn,2)==0){
  67. nextbet = previousbet*2;
  68. }
  69. if (Math.fmod(loss,4)==0){
  70. nextbet = previousbet*2;
  71. }
  72. if ((bal>more)&&(bal<targ)&&(bal<target)) {
  73. nextbet = basebet;
  74. more = parseFloat(bal);
  75. }
  76. if ((bal> targ)&&(bal<target)) {
  77. var basebet=basebet;
  78. targ=(parseFloat(bal))*4
  79. }
  80. if ((nextbet==null)&&(bal<more)&&(bal<targ)&&(bal<target)) {
  81. nextbet=previousbet;
  82. }
  83. if (bal > target) {
  84. //stop();
  85. $('#notification').html('Relax & Reload');
  86. alert('Relax & Reload');
  87. console.log('Relax & Reload');
  88. return;
  89. }
  90. parseFloat(document.getElementById('BetSizeInput').value = (nextbet));
  91. $('#BetHighButton').click();}
  92.  
  93. setInterval(() => dobet(), 3000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement