Advertisement
coinwalk

the best just-dice javascript ever written

Nov 30th, 2021
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. var belance = document.getElementById('pct_balance').value;
  2. document.getElementById('pct_chance').value = 49.5;
  3. document.getElementById('pct_payout').value = 2;
  4. var bob = 100000000000;
  5. var b = ((belance/400).toFixed(8));
  6. var basebet = b;
  7. var i = document.getElementById('pct_balance').value;
  8. var t = b;
  9. var oldbal = document.getElementById('pct_balance').value;
  10. var oldb = document.getElementById('pct_balance').value;
  11. var f = false;
  12. var target = 50000;
  13. var olderest = document.getElementById('pct_balance').value
  14. var old = document.getElementById('pct_balance').value;
  15. var olde = document.getElementById('pct_balance').value;
  16. var oldt = document.getElementById('pct_balance').value;
  17. var nextbet;
  18. var r = true;
  19. var j = true;
  20. var nob = 0;
  21. var wild = document.getElementById('pct_balance').value;
  22. var balance = document.getElementById('pct_balance').value;
  23. var min =document.getElementById('pct_balance').value;
  24. parseFloat(document.getElementById('pct_bet').value = b);
  25. parseFloat(document.getElementById('pct_profit').value = b);
  26.  
  27.  
  28. function dobet(){
  29. console.clear()
  30. balance = document.getElementById('pct_balance').value;
  31. var previousbet = document.getElementById('pct_bet').value;
  32. document.getElementById('pct_chance').value = 49.5;
  33. document.getElementById('pct_payout').value = 2;
  34. if ((nextbet==null)&&(previousbet<(balance-basebet))) {
  35. nextbet = previousbet;
  36. }
  37. if ((nextbet>=(balance-basebet))||((nextbet==null)&&(previousbet>=(balance-(basebet*2))))) {
  38. basebet = ((parseFloat(balance))/4).toFixed(8);
  39. nextbet = basebet;
  40. f = true;
  41. r = false;
  42. j = false;
  43. nob = 0;
  44. oldbal = parseFloat(balance);
  45. old = parseFloat(balance);
  46. }
  47. if ((balance>=(oldt+(basebet*6)))&&(j==true)) {
  48. nextbet = basebet*2;
  49. j = false;
  50. oldt = parseFloat(balance);
  51. }
  52. if (balance<oldt) {
  53. oldt = parseFloat(balance);
  54. }
  55. if (balance<(oldbal-(basebet*3))) {
  56. nextbet = basebet*2;
  57. basebet = nextbet;
  58. f = true;
  59. r = false;
  60. j = true;
  61. oldbal = parseFloat(balance);
  62. }
  63. if (balance<old) {
  64. old = parseFloat(balance);
  65. }
  66. if (((balance>=old)&&(r==false))||(balance>=(old+(basebet*10)))) {
  67. nextbet = basebet;
  68. j = true;
  69. r = true;
  70. oldbal = parseFloat(balance);
  71. old = parseFloat(balance);
  72. oldt = parseFloat(balance);
  73. }
  74. if (balance>=(olde+(b*10))) {
  75. nextbet = b;
  76. basebet = b;
  77. r = true;
  78. j = true;
  79. oldbal = parseFloat(balance);
  80. old = parseFloat(balance);
  81. olde = parseFloat(balance);
  82. oldt = parseFloat(balance);
  83. }
  84. if (balance>=target) {
  85. //stop();
  86. return;
  87. }
  88. if (balance>wild) {
  89. wild = parseFloat(balance);
  90. }
  91. if (balance<min) {
  92. min = parseFloat(balance);
  93. }
  94. var freak = ((balance-olderest).toFixed(8));
  95. console.log("balance made");
  96. console.log(freak);
  97. console.log("biggest balance");
  98. console.log(parseFloat(wild));
  99. console.log("lowest balance");
  100. console.log(parseFloat(min));
  101. parseFloat(document.getElementById('pct_bet').value = (((nextbet*2)-nextbet).toFixed(8)));
  102. parseFloat(document.getElementById('pct_profit').value = (((nextbet*2)-nextbet).toFixed(8)))
  103. $('#a_hi').click();
  104. }
  105. setInterval(() => dobet(), 1200);
  106.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement