Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var bolly = 0.00001;
- var ten = 0.0001;
- var krux = 0.00007;
- var get = 5000;
- var james = bolly;
- var old = ((Math.floor(($('#pct_balance')[0].value)/ten))*ten);
- var two = ((Math.floor(($('#pct_balance')[0].value)/ten))*ten);
- var basebet = bolly;
- var digitToFind = 7; // for example, to find the digit "5" in the balance
- var balanceStr = document.getElementById('pct_balance').value; // get the balance as a string
- var balanceDecimalIndex = balanceStr.indexOf("."); // find the index of the decimal point
- var balanceAtBasebet = balanceStr.substr(0, balanceDecimalIndex + basebet.toString().length + 1); // get the balance up to the decimal point plus the length of basebet (including the decimal point)
- var digitIndex = balanceAtBasebet.indexOf(digitToFind.toString()); // find the index of the digit you want to find
- var oldDigit = document.getElementById('pct_balance').value;
- function findDigitInBalance() {
- var balanceStr = document.getElementById('pct_balance').value; // get the balance as a string
- var balanceDecimalIndex = balanceStr.indexOf("."); // find the index of the decimal point
- var balanceAtBasebet = balanceStr.substr(0, balanceDecimalIndex + basebet.toString().length + 1); // get the balance up to the decimal point plus the length of basebet (including the decimal point)
- var digitIndex = balanceAtBasebet.indexOf(digitToFind.toString()); // find the index of the digit you want to find
- var utter = document.getElementById('pct_balance').value;
- if ((digitIndex !== -1) && (utter !== oldDigit)) { // if the digit was found
- james = james*2;
- oldDigit = parseFloat(utter);
- digitToFind = 7;
- }
- if ((utter>(two+(ten*5)))&&(digitIndex == -1)) {
- james = bolly;
- two = parseFloat(utter);
- oldDigit = parseFloat(utter);
- digitToFind = 7;
- }
- if ((utter>(two+(ten*5)))&&(digitIndex !== -1)) {
- james = bolly*2;
- two = parseFloat(utter);
- oldDigit = parseFloat(utter);
- digitToFind = 7;
- }
- return james;
- findDigitInBalance()
- }
- function xig(){
- findDigitInBalance();
- if (($('#pct_balance')[0].value)>=get){
- console.log('omg you won');
- return;
- console.log('omg you won');
- }
- document.getElementById('pct_chance').value = 49.5;
- document.getElementById('pct_payout').value = 2;
- document.getElementById('pct_bet').value = findDigitInBalance();
- document.getElementById('pct_profit').value = findDigitInBalance();
- document.getElementById('a_lo').click();
- setTimeout(() => xig(), 700);
- }
- xig();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement