Advertisement
coinwalk

for just-dice with 5 clams javascript

Sep 30th, 2021
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. var b = 0.0001;
  2. var target = 64000;
  3. parseFloat(document.getElementById('pct_bet').value = b);
  4. parseFloat(document.getElementById('pct_profit').value = b);
  5. var old = document.getElementById('pct_balance').value;
  6. var older = document.getElementById('pct_balance').value;
  7. var olderest = document.getElementById('pct_balance').value
  8. var bob = 10000000
  9. var x = 10000000
  10. var v = 10000000
  11. var win;
  12. var nextbet;
  13.  
  14.  
  15. function dobet(){
  16. console.clear()
  17. var balance=document.getElementById('pct_balance').value;
  18. var previousbet = document.getElementById('pct_bet').value;
  19. document.getElementById('pct_chance').value = 49.5;
  20. if (balance>older) {
  21. win=true;
  22. older=parseFloat(balance);
  23. }else if (balance<older) {
  24. win=false;
  25. older=parseFloat(balance);
  26. }
  27. if (win==true) {
  28. v = v+1;
  29. }else if (win==false){
  30. v = v-1;
  31. }
  32. if ((v<=(x-4)) || (v>=(x+7))) {
  33. nextbet = previousbet*2;
  34. x = parseFloat(v);
  35. v = parseFloat(x);
  36. }
  37. if (balance>=(old+0.001)) {
  38. nextbet = 0.0001;
  39. v = 10000000;
  40. x = 10000000;
  41. old = parseFloat(balance);
  42. }
  43. if (nextbet==null) {
  44. nextbet=previousbet;
  45. }
  46. if ((balance > target) || (nextbet>balance)){
  47. //stop();
  48. }
  49. var freak = balance-olderest;
  50. console.log("balance made");
  51. console.log(freak);
  52. parseFloat(document.getElementById('pct_bet').value = nextbet);
  53. parseFloat(document.getElementById('pct_profit').value = nextbet);
  54. $('#a_lo').click();
  55. }
  56. setInterval(() => dobet(), 800);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement