SHOW:
|
|
- or go back to the newest paste.
| 1 | /* | |
| 2 | FinlayDaG33k's Script v2016.10.12.18.28 | |
| 3 | Do not sell script! (it's against my rules :C) | |
| 4 | ||
| 5 | Simple rules apply: | |
| 6 | - Do not sell my script, sharing it is okay though. | |
| 7 | - Give me drink a when see me, I prefer Mountain Dew Citrus Blast. | |
| 8 | - Give me a hug when see me. | |
| 9 | - If make profit, donate some bits. This way I can try to increase the bot's power. | |
| 10 | - Don't claim script as if it where your own. | |
| 11 | - If you improve script, make a commit to the Github. | |
| 12 | */ | |
| 13 | ||
| 14 | // User Settings | |
| 15 | var baseBet = 1; // Set the base bet here. (integer) | |
| 16 | var basecashOut = 1.05; // Set the base cashout multiplier here. (float) | |
| 17 | ||
| 18 | // Change stuff below at risk of breaking bot :D | |
| 19 | var skip1 = 6; // Skip games after first loss | |
| 20 | var skip2 = 0; // Skip games after second loss | |
| 21 | var skip3 = 6; // Skip games after third loss | |
| 22 | var skip4 = 0; // Skip games after fourth loss | |
| 23 | var skip5 = 6; // Skip games after fifth loss | |
| 24 | var skip6 = 2; // Skip games after every next loss | |
| 25 | var bet = baseBet * 100; | |
| 26 | var currentBet = bet; | |
| 27 | var startBalance = engine.getBalance(); | |
| 28 | var currentBalance = startBalance; | |
| 29 | var losses = 0; | |
| 30 | var skip = 0; | |
| 31 | var lostGames = 0; | |
| 32 | var waitXgames = 0; | |
| 33 | var CO = 0; | |
| 34 | ||
| 35 | ||
| 36 | engine.on('game_starting', function(info){
| |
| 37 | if(currentBet && engine.lastGamePlay() == 'LOST'){
| |
| 38 | lostGames++; | |
| 39 | currentBalance = engine.getBalance(); | |
| 40 | losses = startBalance - currentBalance; | |
| 41 | ||
| 42 | currentBet *= 2; | |
| 43 | cashOut = (losses / currentBet) + 1.01; | |
| 44 | ||
| 45 | if (lostGames >= 3) {
| |
| 46 | ||
| 47 | waitXgames = 0; | |
| 48 | ||
| 49 | if(lostGames == 3){ // If we lost 3 games in a row.
| |
| 50 | skip = skip1; | |
| 51 | } | |
| 52 | if(lostGames == 4){ // If we lost 4 games in a row.
| |
| 53 | skip = skip2; | |
| 54 | } | |
| 55 | if(lostGames == 5){ // If we lost 5 games in a row.
| |
| 56 | skip = skip3; | |
| 57 | } | |
| 58 | if(lostGames == 6){ // If we lost 6 games in a row.
| |
| 59 | skip = skip4; | |
| 60 | } | |
| 61 | if(lostGames == 7){ // If we lost 7 games in a row.
| |
| 62 | skip = skip5; | |
| 63 | } | |
| 64 | if(lostGames >= 8){ // If we lost 8 games in a row.
| |
| 65 | skip = skip6; | |
| 66 | } | |
| 67 | } | |
| 68 | }else{
| |
| 69 | currentBalance = engine.getBalance(); | |
| 70 | if (currentBalance > startBalance) {
| |
| 71 | ||
| 72 | currentBet = bet; | |
| 73 | cashOut = basecashOut; | |
| 74 | ||
| 75 | startBalance = engine.getBalance(); | |
| 76 | lostGames = 0; | |
| 77 | skip = 0; | |
| 78 | } | |
| 79 | } | |
| 80 | if (waitXgames >= skip) {
| |
| 81 | console.log('Placing bet of', Math.floor(currentBet / 100), 'at', Math.round(cashOut * 100) / 100, 'Cash out.');
| |
| 82 | engine.placeBet(Math.floor(currentBet / 100) * 100, Math.floor(cashOut * 100), false); | |
| 83 | } | |
| 84 | ||
| 85 | }); | |
| 86 | engine.on('game_crash', function(data){
| |
| 87 | if(data.game_crash / 100 >= CO){
| |
| 88 | waitXgames++; | |
| 89 | }else{
| |
| 90 | waitXgames++; | |
| 91 | } | |
| 92 | }); |