var base = 5; //Base bet var autocashout = 8.00; //Auto cashout at var waitgamesafterwin = 20; //If you win, wait games before betting again var onloseincreasebet = 116; //If you lose, increase bet by % / dont edit below / var waited = waitgamesafterwin; var currbet = base * 100; var bet = false; var first = true; var autocashoutx = autocashout * 100; engine.on('game_starting', function(info) { waited++; if(waited >= waitgamesafterwin) { if(!first){ if (engine.lastGamePlay() == 'LOST') { currbet = ((currbet / 100) * onloseincreasebet); console.log("LOST, waited = "+waited+", currbet = " + currbet+", autocashout = "+autocashout); } else { if(waited != waitgamesafterwin) { currbet = base * 100; waited = 0; console.log("WON, waited = "+waited+", currbet = " + currbet+", autocashout = "+autocashout); } } } else { first = false; } if(waited >= waitgamesafterwin) { console.log("Betting, waited = "+waited+", currbet = " + currbet+", autocashout = "+autocashout); engine.placeBet((Math.floor(currbet / 100) * 100), Math.round(autocashoutx), false); }else{ console.log("Waiting, waited = "+waited+", currbet = " + currbet+", autocashout = "+autocashout);} } else { console.log("Waiting, waited = "+waited+", currbet = " + currbet+", autocashout = "+autocashout); } });