Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Bustabit Pluscoup Bot
- // By: Mayor Pogi
- // Version 0.0.0.0.0.0.1.5
- // Pluscoup betting explained http://www.onlinerouletter.com/pluscoup.html
- /******************/
- var baseBet = 70;
- var cashout = 1.75;
- /******************/
- baseBet = Math.round(baseBet) * 100;
- cashout = Math.round(cashout * 100);
- var n = 1;
- var p = 0;
- var currentGameData;
- var playedLast = false;
- var wonLast = true;
- engine.on('game_started', function(data) {
- currentGameData = data;
- });
- engine.on('game_starting', function(info) {
- if(playedLast) {
- if(wonLast) {
- p += (n * baseBet * (cashout/100 - 1));
- if(p > 0) p = 0;
- if(p < 0) {
- n++;
- } else {
- n = 1;
- }
- } else {
- p -= (n * baseBet);
- }
- }
- var currentBet = n * baseBet;
- console.log("{n:" + n + ", p:" + p/100 + ", currentBet:" + currentBet/100 + "}");
- engine.placeBet(Math.round(currentBet), cashout);
- });
- engine.on('game_crash', function(data) {
- if (!currentGameData || !currentGameData.hasOwnProperty(engine.getUsername())) {
- playedLast = false;
- return;
- };
- playedLast = true;
- wonLast = data.game_crash >= cashout;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement