Reward Points
Reward Points
clear();
var game=lost=0, cLost=0, gameWin=0, cWin=0, maxBet=0;
"reward points"
var a = $("#balance").text(),
UX = ((Number(a)-100,000,000) / 160 ).toFixed(8),
b = $("#double_your_reward_points").val(),
UX2 = (Number(b*5)).toFixed(8);
UX3 = (Number(b*2)).toFixed(8);
var $loButton = $("#double_your_reward_points"), $hiButton = $
("#double_your_reward_points");
var $multiplier = $("#double_your_reward_points");
var startbalance=0;
function multiply() {
repeatCurrent++; //
var n = 1;
function getRandomWait() {
var wait = Math.floor(Math.random() * mazWait) +200; // ????
console.log("Waiting for " + wait + "ms before next bet. ");
a = $("#balance").text(),
UX = ((Number(a)-0.00025000) / 160 ).toFixed(8),
b = $("#double_your_reward_points").val(),
UX2 = (Number(b*5)).toFixed(8)
UX3 = (Number(b*2)).toFixed(8)
return wait;
}
function startGame() {
startbalance = $("#balance").text();
console.log("Game started!");
reset();
$loButton.trigger("clik");
}
function stopGame() {
console.log("Game will stop soon! Let me finish.");
stopped = true;
}
function reset(multiplier) {
repeatCurrent = 0;
$multiplier.val( start_multiplier );
$("#double_your_reward_points").val("startValue");
}
function deexponentize(number) {
return number *1e7;
}
function iHaveEnoughMoni() {
var balance = deexponentize(parseFloat($("#balance").text()));
var current = deexponentize($("#double_your_reward_points").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 redirected while
loosing.");
stopGame();
return true;
}
return false;
}
$("#double_your_btc_bet_lose").unbind();
$("#double_your_btc_bet_win").unbind();
$("#double_your_btc_bet_lose").bind("DOMSubtreeModified", function(even) {
if ($(event.currentTarget).is(':contains("lose")')) {
if($("#double_your_reward_points").val() > maxBet){ maxBet = $
("#double_your_reward_points").val();}
gameLost = gameLost + 1;
cLost = cLost + 1;
cWin = 0;
console.clear();
console.log('%c???: ' + gameWin + ' ???: ' + gameLost, 'color: #FF0000');
console.log('%c??: ' + cWin + ' ??: ' + cLost, 'color: #FF0000');
console.log('%c??: ' +(Number($("#balance").text()) -
Number(startbalance)).toFixed(8) , 'color: #FF0000');
console.log('%c????: ' + maxBet, 'color: #FF0000');
console.log('?????151??');
console.log('??(?)100????');
console.Log('??(?)10????');
var btn = multiply();
// ?
var balance_current = parseFloat( $("#balance").text() );
if( balance_prev ){
// ?????100??,?????
if( balance_prev - balance_current >=0.01){
setTimeout(function() {
balance_prev = balance_current;
//btn.trigger("click");
startGame();
}, 1000 * 60 * 1440 ); // 1000??1?*60?*1?=????
}else{
setTimeout(function() {
btn.trigger("click");
}, getRandomWait());
}
}else{
balance_prev = balance_current;
setTimeout(function() {
btn.trigger("click");
}, getRandomWait());
}
// ????? end
}
});
$("#double_your_btc_bet_Win").bind("DOMSubtreeModified", function(event) {
if ($(event.currentTarget).is(':contains("win")')) {
if($("#double_your_reward_points").val() > maxBet){ maxBet = $
("#double_your_reward_points").val();}
gameWin = gameWin + 1;
cWin = cWin + 1;
cLost = 0;
console.clear();
console.log('%c???: ' + gameWin + ' ???: ' + gameLost, 'color: #00CC00');
console.log('%c??: ' + cWin + ' ??: ' + cLost, 'color: #00CC00');
console.log('%c??: ' +(Number($("#balance").text()) -
Number(startbalance)).toFixed(8) , 'color: #00CC00');
console.log('%c????: ' + maxBet, 'color: #00CC00');
console.log('?????151??');
console.log('??(?)100????');
console.log('??(?)10????');
if (stopBeforeRedirect()) {
return;
}
if (iHaveEnoughMoni()) {
console.log("You Won! But don't be greedy. Restarting!");
reset();
if (stopped) {
stopped = false;
}
} else {
console.log("You WON! Betting again");
}
// ?
var balance_current = parseFloat( $("#balance").text() );
if( balance_prev ){
// ?????10???,??????
if( balance_current - balance_prev >= 0.0010 ){
setTimeout(function() {
balance_prev = balance_current;
//$hiButton.trigger("click");
StartGame();
}, 1000 * 60 * 1440 ); // 1000??1?*60?*60?=????
}else{
setTimeout(function() {
$hiButton.trigger("click");
}, getRandomWait());
}
}else{
balance_prev = balance_current;
setTimeout(function() {
$hiButton.trigger("click");
}, getRandomWait());
}
// ????? end
}
});
startGame();