0% found this document useful (0 votes)
230 views3 pages

Message

The document contains code for an automated betting script. It defines variables to track the game state, balance, bets and more. Functions are used to handle events when a game starts and ends to place bets or update the game state.

Uploaded by

GrimzWare
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)
230 views3 pages

Message

The document contains code for an automated betting script. It defines variables to track the game state, balance, bets and more. Functions are used to handle events when a game starts and ends to place bets or update the game state.

Uploaded by

GrimzWare
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/ 3

var config = {

numberOfGames: { value: 1000, type: 'number', label: '# of Games Before Shutdown'
},
};

var cashOut = 1.3;


var startingBalance = userInfo.balance;
var currentBet = 25
var activate = 0;
var bettingActive = true;
var activationNumber = 0;
var currentGame = 0;
var wait=false;
var gamesUnder1_5 = 0;
var totalGames = 0;

log('Script is running.... ');


log('Starting Balance: ', startingBalance);
log('Cashout: ', cashOut/100);
log('Base Bet: ', currentBet/100);

var startingBet = currentBet;

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;
}

if(currentGame > 16)


currentGame=0;

if(bettingActive && !wait)


{
log('Game #', currentGame, 'PLACE BET: ', roundBit(currentBet)/100, '
Cashout: ', cashOut, ' User Balance: ', userInfo.balance/100);

if (currentBet > userInfo.balance) {


log('Game KILLED BET TO BIG');
engine.removeListener('GAME_STARTING', onGameStarted);
engine.removeListener('GAME_ENDED', onGameEnded);
}
else
engine.bet(roundBit(currentBet), cashOut);
}
else
{
log('Current Game:', currentGame, 'NO BET: User Balance: ',
userInfo.balance/100);
}
}

function onGameEnded() {
var lastGame = engine.history.first()

if (!lastGame.wager) {
log('SKIP:', lastGame.bust, ' Betting Active: ', bettingActive);

// if(wait && lastGame.bust < 1.5)


// gamesUnder1_5++;
// else
// gamesUnder1_5=0;

// if(gamesUnder1_5 == 3)
// {
// wait = false;
// currentGame = 9;
// log('4 GAMES UNDER 1.5 FOUND IN A ROW. BETTING NOW!');
// }

return;
}

//betting has to be active to reach here.


if (lastGame.cashedAt)
{
log('Current Game:', currentGame, 'WON : ', (lastGame.wager/100) *
(lastGame.cashedAt), ' Bust: ', lastGame.bust, ', Balance: ', userInfo.balance/100,
', Profit: ', (userInfo.balance/100) - (startingBalance/100));
currentGame=0;
//log('config bet is', config.baseBet.value);
//log('current bet is', currentBet);

if(totalGames > config.numberOfGames.value)


{
bettingActive = false;

log('Total Games reached succesfully. Shutting down.');


engine.removeListener('GAME_STARTING', onGameStarted);
engine.removeListener('GAME_ENDED', onGameEnded);
}

}
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(currentGame > 16)


currentGame=0;

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;
}

You might also like