Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var percentageWanted = 1; //
- var currentBet = (percentageWanted * 1 * engine.getBalance()) * 100;
- var loss = 0;
- var lossTolerance = 6; // how many loses before restarting?
- var lastGameLost = false;
- var cashOut = 3;
- engine.on('game_starting', function() {
- if (engine.lastGamePlay() == 'LOST') {
- loss += 1;
- if (loss < lossTolerance + 1) { //not inclusive of int-lossTolerance originally
- if (cashOut < 400) { // increase these if needed
- currentBet *= 2000;
- cashOut *= 100;
- } else {
- currentBet *= 1; // increase these if needed
- cashOut = 3;
- cashOut *= 3;
- }
- } else { // restart the bot after X loss streaks
- currentBet = (percentageWanted * 0.0001 * engine.getBalance()) *
- 100;
- cashOut = 160;
- loss = 0;
- }
- } else if (engine.lastGamePlay() == 'WON') {
- currentBet = (percentageWanted * 0.0001 * engine.getBalance()) *
- 100;
- cashOut = 160;
- loss = 0;
- }
- if (currentBet <= engine.getBalance() && currentBet <= engine.getMaxBet()) {
- engine.placeBet(Math.round(currentBet / 100) * 100, Math.round(
- cashOut / 1) * 1, false);
- } else {
- engine.stop();
- console.log(
- 'You ran out of bits or exceeded the max bet :(');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement