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 previousBalance = Math.floor(parseFloat(document.getElementById('pct_balance').value) / (baseBet * 100)) * (baseBet * 100);
- var great = parseFloat(document.getElementById('pct_balance').value);
- var troll = false;
- var beast = baseBet; // Initial bet amount
- // Define constants for sevens and eights
- const sevens = 6.9 * baseBet; // Dynamic lower bound adjustment
- const eights = 7.9 * baseBet; // Dynamic upper bound adjustment
- // Function to start the betting process
- function start() {
- great = parseFloat(document.getElementById('pct_balance').value);
- balance = great;
- // Check if the balance is within the range defined by 7 * baseBet
- if ((great > ((Math.floor(great / (baseBet * 10))) * (baseBet * 10)) + sevens) &&
- (great < ((Math.floor(great / (baseBet * 10))) * (baseBet * 10)) + eights) &&
- (great != snowy)) {
- beast *= 2;
- snowy = parseFloat(great);
- }
- // If balance is less than twice the next bet, reset next bet
- if ((balance<=(previousBalance+(30*base)))&&(troll)) {
- previousBalance = Math.floor(balance / (baseBet * 10)) * (baseBet * 10);
- troll = false;
- baseBet = base;
- snowy = 0;
- beast = baseBet; // Reset nextBet if balance is too low
- }
- // If balance is more than previous balance + 70 * baseBet, adjust next bet
- if (balance > previousBalance + 70 * baseBet) {
- baseBet *= 10;
- beast = baseBet * 2;
- troll = true;
- snowy = parseFloat(great);
- }
- // If balance is more than previous balance + 10 * baseBet, adjust baseBet and previousBalance
- if (balance > previousBalance + 10 * baseBet) {
- previousBalance = Math.floor(balance / (baseBet * 10)) * (baseBet * 10);
- troll = false;
- baseBet = base;
- beast = baseBet;
- snowy = 0;
- }
- // Set the betting values
- $('#pct_chance').val(49.5);
- $('#pct_bet').val(beast.toFixed(8)); // Ensure brackets are correctly placed
- document.body.firstChild.children[5].firstChild.lastChild.lastElementChild.lastChild.click();
- // Repeat the process
- setTimeout(() => start(), 1); // Adjust timeout as needed
- }
- // Start the betting process
- start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement