Message
Message
Message
numberOfGames: { value: 1000, type: 'number', label: '# of Games Before Shutdown'
},
};
engine.on('GAME_STARTING', onGameStarted);
engine.on('GAME_ENDED', onGameEnded);
function onGameStarted()
{
totalGames++;
currentGame++;
cashOut = 1.3;
if(currentGame == 1)
{
bettingActive = true;
currentBet = 100; //1.00 decimals implied
}
else if(currentGame == 4)
{
bettingActive = true;
currentBet = 500; // 5.00
}
else if(currentGame == 6)
{
bettingActive = true;
currentBet = 2000; //20.00
}
else if(currentGame == 8)
{
bettingActive = true;
currentBet = 8000; // 80.00
}
else if(currentGame == 10)
{
bettingActive = true;
currentBet = 32000; //320.00
cashOut= 1.3; //1.2
}
else if(currentGame == 16)
{
bettingActive = true;
currentBet = 57400; //574.00 cashout 1.9
cashOut= 2.01;
}
else
{
bettingActive = false;
currentBet = 0;
}
function onGameEnded() {
var lastGame = engine.history.first()
if (!lastGame.wager) {
log('SKIP:', lastGame.bust, ' Betting Active: ', bettingActive);
// if(gamesUnder1_5 == 3)
// {
// wait = false;
// currentGame = 9;
// log('4 GAMES UNDER 1.5 FOUND IN A ROW. BETTING NOW!');
// }
return;
}
}
else
{
log('Current Game:', currentGame, 'LOST : ', lastGame.wager/100, '
Bust: ', lastGame.bust, ', Balance: ', userInfo.balance/100, ', Profit: ',
(userInfo.balance/100) - (startingBalance/100));
//(currentGame==10)
//wait = true;
}
if (userInfo.balance/100 < 1) {
log('Game ended. Balance Below 10.');
engine.removeListener('GAME_STARTING', onGameStarted);
engine.removeListener('GAME_ENDED', onGameEnded);
}
function roundBit(bet) {
return Math.round(bet / 100) * 100;
}