Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Function to calculate the base bet
- function calculateBaseBet(balance) {
- return balance / 1000;
- }
- // Initialize variables
- var baseBet = calculateBaseBet(parseFloat(document.getElementById('pct_balance').value));
- var base = baseBet;
- var snowy = 0;
- var great = parseFloat(document.getElementById('pct_balance').value);
- var troll = false;
- var beast = baseBet; // Initial bet amount
- var balance = parseFloat(document.getElementById('pct_balance').value);
- var boghart = Math.floor(balance / (baseBet * 10)) * (baseBet * 10);
- var previousBalance = (Math.floor(balance / (baseBet * 100))) * (baseBet * 100);
- // Function to start the betting process
- function start() {
- great = parseFloat(document.getElementById('pct_balance').value);
- balance = great;
- // Update boghart and previousBalance
- boghart = Math.floor(balance / (baseBet * 10)) * (baseBet * 10);
- previousBalance = (Math.floor(balance / (baseBet * 100))) * (baseBet * 100);
- // Check if the balance is within the range defined by 6.9 * baseBet and 7.9 * baseBet
- if (great > ((Math.floor(great / (baseBet * 10))) * (baseBet * 10) + baseBet * 6.9) &&
- great < ((Math.floor(great / (baseBet * 10))) * (baseBet * 10) + baseBet * 7.9) &&
- great !== snowy) {
- beast *= 2;
- snowy = parseFloat(great);
- }
- // If balance is less than or equal to previous balance + 3.4 * baseBet and troll is true
- if (balance <= (previousBalance + 3.4 * baseBet) &&
- troll &&
- balance < ((Math.floor(balance / (baseBet * 10))) * (baseBet * 10) + baseBet * 6.9)) {
- troll = false;
- baseBet = base;
- snowy = 0;
- beast = baseBet;
- boghart = Math.floor(balance / (baseBet * 10)) * (baseBet * 10);
- previousBalance = (Math.floor(balance / (baseBet * 100))) * (baseBet * 100);
- }
- // If balance is less than or equal to previous balance - 69.9 * baseBet and troll is false
- if (balance <= (previousBalance - (baseBet * 69.9)) &&
- !troll &&
- balance < ((Math.floor(balance / (baseBet * 10))) * (baseBet * 10) + (baseBet * 6.9))) {
- baseBet = base;
- snowy = 0;
- beast = baseBet;
- boghart = (Math.floor(balance / (baseBet * 10))) * (baseBet * 10);
- previousBalance = (Math.floor(balance / (baseBet * 100))) * (baseBet * 100);
- }
- // If balance is greater than or equal to previous balance + 69.9 * baseBet and troll is false
- if (balance >= (previousBalance + (baseBet * 69.9)) &&
- !troll) {
- baseBet *= 10;
- beast = baseBet * 2;
- troll = true;
- snowy = parseFloat(great);
- boghart = (Math.floor(balance / (baseBet * 10))) * (baseBet * 10);
- previousBalance = (Math.floor(balance / (baseBet * 10))) * (baseBet * 10);
- }
- // If balance is greater than boghart + baseBet * 10 and less than the range for 6.9 * baseBet
- if (balance > (boghart + baseBet * 10) &&
- balance < (Math.floor(balance / (baseBet * 10))) * (baseBet * 10) + (baseBet * 6.9))) {
- troll = false;
- baseBet = base;
- beast = baseBet;
- snowy = 0;
- previousBalance = (Math.floor(balance / (baseBet * 100))) * (baseBet * 100);
- boghart = (Math.floor(balance / (baseBet * 10))) * (baseBet * 10);
- }
- // Set the betting values
- $('#pct_chance').val(49.5);
- $('#pct_bet').val(beast.toFixed(8)); // Ensure brackets are correctly placed
- // Simulate a click
- document.body.firstChild.children[5].firstChild.lastChild.lastElementChild.lastChild.click();
- // Repeat the process
- setTimeout(start, 1000); // Adjust timeout as needed
- }
- // Start the betting process
- start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement