Advertisement
coinwalk

justdice javascript phase 2

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