0% found this document useful (0 votes)
117 views

Freebitcoin Script

This document contains JavaScript code for an automated betting game. It defines variables to track the starting balance, stop criteria, wait times, and game state. Functions are defined to multiply the current bet, generate random strings and wait times, reset the balance, and place random high or low bets with timeouts between bets. Event bindings check for win/loss outcomes on the buttons and trigger multiplying the bet, waiting, and placing the next random bet accordingly. The code starts the game by triggering an initial random bet.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
117 views

Freebitcoin Script

This document contains JavaScript code for an automated betting game. It defines variables to track the starting balance, stop criteria, wait times, and game state. Functions are defined to multiply the current bet, generate random strings and wait times, reset the balance, and place random high or low bets with timeouts between bets. Event bindings check for win/loss outcomes on the buttons and trigger multiplying the bet, waiting, and placing the next random bet accordingly. The code starts the game by triggering an initial random bet.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

var startValue = '0.

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


current balance stopPercentage = 0.001,  maxWait = 3022, minWait = 1010, resting =
600000000, minimumRandom = minWait, maximumRandom = 1443345325, randomNumber =
0, stopped = false, // debugging, isWin = false, loseCount = 0, stopBefore = 1; //
In minutes for timer before stopping redirect on webpage
var $hiButton = $('#double_your_btc_bet_hi_button'),  $loButton = $
('#double_your_btc_bet_lo_button');
function multiply(){  var current = $('#double_your_btc_stake').val(); var multiply
= (current * 2).toFixed(8); $('#double_your_btc_stake').val(multiply);}
function randomString(length, chars) {    var result = '';    for (var i = length;
i > 0; --i) result += chars[Math.floor(Math.random() * chars.length)];    return
result;}
function getRandomWait(){ var wait = Math.random()*(maxWait-minWait)
+minWait; console.log('Tunggu ' + wait + 'ms sebelum bet selanjutnya');
 return wait ;}
function getWait() {     var wait = getRandomWait();     return wait;}
function startGame(){ console.log('Game
started!'); reset(); $hiButton.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.00000001function
deexponentize(number){ return number * 10000000;}
function iHaveEnoughMoni(){ var balance = deexponentize(parseFloat($
('#balance').text())); var current = deexponentize($
('#double_your_btc_stake').val());
 return ((balance)*2/100) * (current*2) > stopPercentage/100;}
function stopBeforeRedirect(){ var minutes = parseInt($('title').text());
 if( minutes < stopBefore ) {  console.log('Approaching redirect! Stop the game so
we don\'t get redirected while loosing.');  stopGame();
  return true; }
 return false;}
// Unbind$('#double_your_btc_bet_lose').unbind();$
('#double_your_btc_bet_win').unbind();
function randbet(){    generateClientSeed();    var i = random();    if(i%2 == 0) 
{ $hiButton.trigger('click');        }    else        {       
$loButton.trigger('click');        }}
function generateClientSeed(){    var rString = randomString(50,
'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');    var
finalString = randomString(16, rString);   
document.getElementById("next_client_seed").value = finalString;}
function random()  {    if (randomNumber >= maximumRandom) {       randomNumber = 
Math.floor(getRandomWait());       minimumRandom = randomNumber - minWait;    }
else {       randomNumber = randomNumber + Math.floor(getRandomWait());    }   
return Math.floor(Math.random()*(randomNumber-minimumRandom)+minimumRandom);}
// Loser$('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event)
{ if( $(event.currentTarget).is(':contains("lose")') ) {  isWin = false; 
console.log('_______________ KALAH');    multiply();
  setTimeout(function(){   randbet();  }, getWait());
  //$hiButton.trigger('click'); }});
// Winner$('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event)
{ if( $(event.currentTarget).is(':contains("win")') ) {  isWin = true; 
if( stopBeforeRedirect() )                {                        return;         
}
  if( iHaveEnoughMoni() )  {   console.log('MENANG_______________ ');
   reset();
   if( stopped )   {    stopped = false;    return false;   }  }  else  { 
console.log('MENANG_______________');  }
  setTimeout(function(){   randbet();  }, getWait()); }});
startGame()

You might also like