0% found this document useful (0 votes)
682 views1 page

Auto Roll Script

The document contains JavaScript code for a gambling game that doubles a bitcoin bet. It defines variables for the starting value, stop percentage, maximum wait time, and a stopped flag. Functions are defined to multiply the bet by 2, get a random wait time, start the game by resetting and clicking the low button, stop the game by setting the stopped flag, and reset the starting value. A deexponentize function is also defined to remove decimal places for small bitcoin balances.

Uploaded by

conbenz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
682 views1 page

Auto Roll Script

The document contains JavaScript code for a gambling game that doubles a bitcoin bet. It defines variables for the starting value, stop percentage, maximum wait time, and a stopped flag. Functions are defined to multiply the bet by 2, get a random wait time, start the game by resetting and clicking the low button, stop the game by setting the stopped flag, and reset the starting value. A deexponentize function is also defined to remove decimal places for small bitcoin balances.

Uploaded by

conbenz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

var startValue = '0.

00000001', // Don't lower the decimal point more than 4x of


current balance
stopPercentage = 0.001,
maxWait = 777,
stopped = false, // debugging
stopBefore = 1; // In minutes for timer before stopping redirect on webpage

var $loButton = $('#double_your_btc_bet_lo_button'),


$hiButton = $('#double_your_btc_bet_hi_button');

function multiply(){
var current = $('#double_your_btc_stake').val();
var multiply = (current * 2).toFixed(8);
$('#double_your_btc_stake').val(multiply);
}

function getRandomWait(){
var wait = Math.floor(Math.random() * maxWait ) + 100;

console.log('Waiting for ' + wait + 'ms before next bet.');

return wait ;
}

function startGame(){
console.log('Game started!');
reset();
$loButton.trigger('click');
}

function stopGame(){
console.log('Game will stop soon! Let me finish.');
stopped = true;
}

function reset(){
$('#double_your_btc_stake').val(startValue);
}

// quick and dirty hack if you have very little bitcoins like 0.00000001
function deexponentize(number){
return number * 10000000;

You might also like