Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = {};
- var waitXgames = 2;
- var bets = [1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30];
- var games = [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5];
- var cashOut = 10;
- var maxProfit = 1000;
- var maxLosses = 1000;
- // Do no change anything below this line.
- //-----------------------------------------------------------------------------
- var x = 0;
- var currentBet = bets[x];
- var gtp = games[x];
- var mia = 0;
- var lc = 0;
- var beton = false;
- var startBR = userInfo.balance;
- var currentBR = startBR;
- var sessionBR = startBR;
- console.log('Starting to skip.');
- //-----------------------------------------------------------------------------
- engine.on('GAME_STARTING', () => {
- if (beton){
- console.log(`Betting ${Math.round(currentBet)} bits @ ${Math.round(cashOut*100)/100}x`);
- engine.bet(Math.round(currentBet)*100, cashOut);
- }
- });
- engine.on('GAME_ENDED', () => {
- console.clear();
- currentBR = userInfo.balance;
- let lastGame = engine.history.first();
- let lastCrash = lastGame.bust;
- if (lastCrash < cashOut){
- mia++;
- }else{
- mia = 0;
- console.log('Last game was our target.');
- console.log('Resetting the skip.');
- }
- if (mia >= waitXgames){
- beton = true;
- }
- console.log('Current profit+/losses-:', (currentBR-startBR)/100);
- console.log('Session profit+/losses-:', (currentBR-sessionBR)/100);
- console.log(' ');
- if (mia <= waitXgames){
- console.log('Skipped', mia, 'of', waitXgames, 'games.');
- }
- if (!lastGame.wager) return;
- //-----------------------------------------------
- if (lastGame.cashedAt) {
- x = 0;
- lc = 0;
- beton = false;
- mia = 0;
- console.log('Starting to skip again.');
- } else {
- lc++;
- if (lc >= gtp){
- lc = 0;
- x++;
- }
- }
- currentBet = bets[x];
- gtp = games[x];
- if (currentBR >= startBR){startBR = currentBR;}
- if ((startBR-currentBR)/100 >= maxLosses){
- stop('We have lost maxLosses amount.');
- }
- if ((currentBR-sessionBR)/100 >= maxProfit){
- stop('We have won maxProfit amount.');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement