I've updated KLYE's script to handle our new options
var bet = {base: 0.0000001, current: 0.0000001, currency: "tokens", bits:1}; //Modify these values to change your base bet, currency may be "tokens" or "bitcoins", bits is the number of drops made
var placeBet=function(){
$.post( "action.php", { prizes: "1000,16.9,0,0,17,0,0,0,0,0,0,0,17,0,0,16.9,1000",
token: token,
secret:0,
bet:bet.current,
bits:bet.bits,
currency:bet.currency,
user_seed:makeid(),
act:"play",
v:ver,
})
.done(function( data ) {
if (!data.success){
alert(data.msg);
return 0;
}
var win=data.game_result.win;
console.log( win, data.data.balance );
if (win>bet.current){
bet.current=bet.base;
if (bet.current<bet.base) bet.current=bet.base;
}else if (win<bet.current){
bet.current=(bet.current-win)*1.1; //Modify this value in order change the on loss multiplier
}
//console.log(balance);
placeBet();
}).fail(function() {
setTimeout(function(){placeBet();},3000); //This is the value the script uses to re-send the rolls if the server doesn't respond
});
}
//re-randomize our client seed to ensure provably faireness
function makeid()
{
var text = "";
var possible = "abcdef0123456789";
for( var i=0; i < 16; i++ )
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
placeBet();