Advertisement
coinwalk

for just-dice and 50coin

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