Advertisement
coinwalk

atom bomb snowybot

Jul 27th, 2024
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Function to calculate the base bet
  2. function calculateBaseBet(balance) {
  3.     return balance / 1000;
  4. }
  5.  
  6. // Initialize variables
  7. var baseBet = calculateBaseBet(parseFloat(document.getElementById('pct_balance').value));
  8. var base = baseBet;
  9. var snowy = 0;
  10. var great = parseFloat(document.getElementById('pct_balance').value);
  11. var troll = false;
  12. var beast = baseBet; // Initial bet amount
  13. var balance = parseFloat(document.getElementById('pct_balance').value);
  14. var boghart = (Math.floor(balance / (baseBet * 10))) * (baseBet * 10);
  15. var previousBalance = (Math.floor(balance / (baseBet * 100))) * (baseBet * 100);
  16.  
  17. // Function to start the betting process
  18. function start() {
  19.     great = parseFloat(document.getElementById('pct_balance').value);
  20.     balance = great;
  21.  
  22.     // Update boghart and previousBalance
  23.     boghart = Math.floor(balance / (baseBet * 10)) * (baseBet * 10);
  24.     previousBalance = (Math.floor(balance / (baseBet * 100))) * (baseBet * 100);
  25.  
  26.     // Check if the balance is within the range defined by 6.9 * baseBet and 7.9 * baseBet
  27.     if (great > ((Math.floor(great / (baseBet * 10))) * (baseBet * 10) + baseBet * 6.9) &&
  28.         great < ((Math.floor(great / (baseBet * 10))) * (baseBet * 10) + baseBet * 7.9) &&
  29.         great !== snowy) {
  30.         beast *= 2;
  31.         snowy = parseFloat(great);
  32.     }
  33.  
  34.     // If balance is less than or equal to previous balance + 3.4 * baseBet and troll is true
  35.     if (balance <= (previousBalance + 3.4 * baseBet) &&
  36.         troll &&
  37.         balance < ((Math.floor(balance / (baseBet * 10))) * (baseBet * 10) + baseBet * 6.9)) {
  38.         troll = false;
  39.         baseBet = base;
  40.         snowy = 0;
  41.         beast = baseBet;
  42.         boghart = (Math.floor(balance / (baseBet * 10))) * (baseBet * 10);
  43.         previousBalance = (Math.floor(balance / (baseBet * 100))) * (baseBet * 100);
  44.     }
  45.  
  46.     // If balance is less than or equal to previous balance - 69.9 * baseBet and troll is false
  47.     if (balance <= (previousBalance - (baseBet * 69.9)) &&
  48.         !troll &&
  49.         balance < ((Math.floor(balance / (baseBet * 10))) * (baseBet * 10) + (baseBet * 6.9))) {
  50.         baseBet = base;
  51.         snowy = 0;
  52.         beast = baseBet;
  53.         boghart = (Math.floor(balance / (baseBet * 10))) * (baseBet * 10);
  54.         previousBalance = (Math.floor(balance / (baseBet * 100))) * (baseBet * 100);
  55.     }
  56.  
  57.     // If balance is greater than or equal to previous balance + 69.9 * baseBet and troll is false
  58.     if (balance >= (previousBalance + (baseBet * 69.9)) &&
  59.         !troll) {
  60.         baseBet *= 10;
  61.         beast = baseBet * 2;
  62.         troll = true;
  63.         snowy = parseFloat(great);
  64.         boghart = (Math.floor(balance / (baseBet * 10))) * (baseBet * 10);
  65.         previousBalance = (Math.floor(balance / (baseBet * 10))) * (baseBet * 10);
  66.     }
  67.  
  68.     // If balance is greater than boghart + baseBet * 10 and less than the range for 6.9 * baseBet
  69.     if (balance > (boghart + (baseBet * 10)) &&
  70.         balance < ((Math.floor(balance / (baseBet * 10))) * (baseBet * 10) + (baseBet * 6.9))) {
  71.         troll = false;
  72.         baseBet = base;
  73.         beast = baseBet;
  74.         snowy = 0;
  75.         previousBalance = (Math.floor(balance / (baseBet * 100))) * (baseBet * 100);
  76.         boghart = (Math.floor(balance / (baseBet * 10))) * (baseBet * 10);
  77.     }
  78.  
  79.     // Set the betting values
  80.     $('#pct_chance').val(49.5);
  81.     $('#pct_bet').val(beast.toFixed(8)); // Ensure brackets are correctly placed
  82.  
  83.     // Simulate a click
  84.     document.body.firstChild.children[5].firstChild.lastChild.lastElementChild.lastChild.click();
  85.  
  86.     // Repeat the process
  87.     setTimeout(start, 1000); // Adjust timeout as needed
  88. }
  89.  
  90. // Start the betting process
  91. start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement