Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Bustabit BlackShadow Bot With Sophia Pause V.2
- // By: BlackShadow
- // Version 2
- // A martingale that pauses for a certian number of games after a certian number of losses
- /******************/
- var baseBet = 1333; // Your bet ammount in bits
- var multiplier = 3; // After loss the next bet will be multiplied (for this method 4)
- var cashout = 1.36; // This is the cashout ammount (1.5 rcommended for this)
- var pauseThreshold = 1000000; // when game crashes above this, betting pauses (Recomended 50)
- var continueThreshold = 2; // when paused and the game crashes above this, betting resumes (Recomended 2)
- var pauseAfterNLosses = 2; // Number of losses before it pauses
- var pauseForMGames = 1000000;
- /***************2**/
- baseBet = Math.round(baseBet) * 100;
- cashout = Math.round(cashout * 100);
- pauseThreshold = Math.round(pauseThreshold * 100);
- continueThreshold = Math.round(continueThreshold * 100);
- var currentGameData;
- var bet = baseBet;
- var lastCrash = cashout;
- var paused = false;
- var pauseLossStreak = 0;
- var pausedFor = 0;
- engine.on('game_started', function(data) {
- currentGameData = data;
- });
- engine.on('game_starting', function(info) {
- console.log(lastCrash, pauseThreshold);
- /********************/
- if(lastCrash >= pauseThreshold) {
- paused = true;
- console.log("Pausing Betting");
- return;
- }
- if(paused) {
- if(lastCrash >= continueThreshold) {
- console.log("Continuing Betting");
- lastCrash = cashout;
- paused = false;
- } else {
- console.log("Betting Is Paused");
- return;
- }
- }
- /********************/
- if(pausedFor > 0) {
- pausedFor++;
- if(pausedFor <= pauseForMGames) {
- console.log("Paused " + pausedFor + " of " + pauseForMGames + " games");
- return;
- } else {
- console.log("Resuming");
- pausedFor = 0;
- pauseLossStreak = 0;
- }
- }
- if(pauseLossStreak >= pauseAfterNLosses) {
- console.log("Pausing for 1 of " + pauseForMGames + " games");
- pausedFor = 1;
- return;
- }
- /********************/
- console.log("Betting " + Math.round(bet/100));
- engine.placeBet(Math.round(bet), cashout);
- });
- engine.on('game_crash', function(data) {
- lastCrash = data.game_crash;
- if (!currentGameData || !currentGameData.hasOwnProperty(engine.getUsername())) {
- return;
- };
- lostLast = engine.lastGamePlay() == 'LOST';
- console.log((lostLast ? "Lost" : "Won") + " this game.");
- /********************/
- if(!lostLast) {
- bet = baseBet;
- pauseLossStreak = 0;
- } else {
- pauseLossStreak++;
- bet = bet * multiplier;
- }
- /********************/
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement