SHOW:
|
|
- or go back to the newest paste.
| 1 | // Bustabit Pluscoup Bot | |
| 2 | // By: Mayor Pogi | |
| 3 | // Version 0.0.0.0.0.0.1.5 | |
| 4 | // Pluscoup betting explained http://www.onlinerouletter.com/pluscoup.html | |
| 5 | ||
| 6 | /******************/ | |
| 7 | ||
| 8 | var baseBet = 70; | |
| 9 | var cashout = 1.75; | |
| 10 | ||
| 11 | /******************/ | |
| 12 | ||
| 13 | baseBet = Math.round(baseBet) * 100; | |
| 14 | cashout = Math.round(cashout * 100); | |
| 15 | ||
| 16 | var n = 1; | |
| 17 | var p = 0; | |
| 18 | ||
| 19 | var currentGameData; | |
| 20 | var playedLast = false; | |
| 21 | var wonLast = true; | |
| 22 | ||
| 23 | engine.on('game_started', function(data) {
| |
| 24 | currentGameData = data; | |
| 25 | }); | |
| 26 | ||
| 27 | engine.on('game_starting', function(info) {
| |
| 28 | ||
| 29 | if(playedLast) {
| |
| 30 | if(wonLast) {
| |
| 31 | p += (n * baseBet * (cashout/100 - 1)); | |
| 32 | if(p > 0) p = 0; | |
| 33 | ||
| 34 | if(p < 0) {
| |
| 35 | n++; | |
| 36 | } else {
| |
| 37 | n = 1; | |
| 38 | } | |
| 39 | } else {
| |
| 40 | p -= (n * baseBet); | |
| 41 | } | |
| 42 | } | |
| 43 | ||
| 44 | var currentBet = n * baseBet; | |
| 45 | ||
| 46 | console.log("{n:" + n + ", p:" + p/100 + ", currentBet:" + currentBet/100 + "}");
| |
| 47 | ||
| 48 | engine.placeBet(Math.round(currentBet), cashout); | |
| 49 | ||
| 50 | }); | |
| 51 | ||
| 52 | engine.on('game_crash', function(data) {
| |
| 53 | if (!currentGameData || !currentGameData.hasOwnProperty(engine.getUsername())) {
| |
| 54 | playedLast = false; | |
| 55 | return; | |
| 56 | }; | |
| 57 | ||
| 58 | playedLast = true; | |
| 59 | wonLast = data.game_crash >= cashout; | |
| 60 | }); |