Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Bustabit BlackShadow Bot
- // By: BlackShadow & MartinG
- // Version 1
- // A martingale that pauses for a certian number of games after a certian number of losses
- /******************/
- var baseBet = 100; // You can change this to your own amount its on 100 preset
- var multiplier = 2; // Leave this no need to change it multiplies your bet by 2
- var cashout = 2.12; // Leave this no need to change, these are my custom settings
- var pauseAfterNLosses = 6; // You can change this to less, it will pause after 6 losses its set to.
- var pauseForMGames = 1000;
- /******************/
- baseBet = Math.round(baseBet) * 100;
- cashout = Math.round(cashout * 100);
- var currentGameData;
- var lastCrash = cashout;
- var bet = baseBet;
- var lossStreak = 0;
- var pauseStreak = 0;
- var playedLast = false;
- var wonLast = true;
- engine.on('game_started', function(data) {
- currentGameData = data;
- });
- engine.on('game_starting', function(info) {
- if(pauseStreak > 0) {
- pauseStreak++;
- if(pauseStreak <= pauseForMGames) {
- console.log("Paused " + pauseStreak + " of " + pauseForMGames + " games");
- return;
- } else {
- console.log("Resuming");
- pauseStreak = 0;
- lossStreak = 0;
- }
- }
- if(lossStreak >= pauseAfterNLosses) {
- console.log("Pausing for 1 of " + pauseForMGames + " games");
- pauseStreak = 1;
- return;
- }
- console.log("Betting " + Math.round(bet/100));
- engine.placeBet(Math.round(bet), cashout);
- });
- engine.on('game_crash', function(data) {
- if (!currentGameData || !currentGameData.hasOwnProperty(engine.getUsername())) {
- playedLast = false;
- return;
- };
- playedLast = true;
- wonLast = data.game_crash >= cashout;
- if(wonLast) {
- bet = baseBet;
- lossStreak = 0;
- } else {
- bet = bet * multiplier;
- lossStreak++;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement