SHOW:
|
|
- or go back to the newest paste.
| 1 | var config = {
| |
| 2 | msg: { type: 'noop', label: 'NYAN CHASER BETA by voule' },
| |
| 3 | }; | |
| 4 | ||
| 5 | var betArray = [2,200,295,300,390,400,396,296,290,290,400,400,400,405,512,512,490,200]; // 0 is skip and other is in Bits. | |
| 6 | var cashArray =[1000,1.3,1.3,1.3,2,1.30,1.30,1.3,1.3,1.7,1.30,1.30,1.30,3,1.3,1.30,1.3,1.8]; // must have 0 in same place as in betArray to cashout nicely. | |
| 7 | ||
| 8 | var index = 0; | |
| 9 | var bet = betArray[index]; | |
| 10 | var cashout = cashArray[index]; | |
| 11 | var winrow = 0; | |
| 12 | var skip = 0; | |
| 13 | ||
| 14 | log('Welcome to Nyan Chaser Z, script is running...');
| |
| 15 | log('Your balance is...' + (userInfo.balance / 100) + ' bits');
| |
| 16 | ||
| 17 | ||
| 18 | // Main: | |
| 19 | engine.on("GAME_STARTING", function() {
| |
| 20 | ||
| 21 | if(bet > 0 && skip == 0){
| |
| 22 | engine.bet(bet * 100, cashout); | |
| 23 | }else{
| |
| 24 | skip--; | |
| 25 | log('Skipping the Next Round');
| |
| 26 | } | |
| 27 | ||
| 28 | // Change from 80000 (800 bits) to your max balance | |
| 29 | ||
| 30 | if (userInfo.balance > 2500000) {
| |
| 31 | stop('You have reached Max Profit!')
| |
| 32 | } | |
| 33 | ||
| 34 | }); | |
| 35 | ||
| 36 | engine.on("GAME_ENDED", function() {
| |
| 37 | ||
| 38 | var lastGame = engine.history.first(); | |
| 39 | ||
| 40 | ||
| 41 | if (!lastGame.wager) {
| |
| 42 | ||
| 43 | if(lastGame.bust >= cashout){
| |
| 44 | log('We skipped the bet but we would have win , so resetting array');
| |
| 45 | index = 0; | |
| 46 | bet = betArray[index]; | |
| 47 | cashout = cashArray[index]; | |
| 48 | ||
| 49 | ||
| 50 | } | |
| 51 | ||
| 52 | return; | |
| 53 | } | |
| 54 | ||
| 55 | ||
| 56 | if(!lastGame.cashedAt) {
| |
| 57 | log('We didn\'t manage to win, but we will win soon.');
| |
| 58 | index++; | |
| 59 | bet = betArray[index]; | |
| 60 | cashout = cashArray[index]; | |
| 61 | winrow = 0; | |
| 62 | skip = 3; | |
| 63 | } | |
| 64 | else{
| |
| 65 | log('We managed to win! Let’s win again.');
| |
| 66 | index = 0; | |
| 67 | bet = betArray[index]; | |
| 68 | cashout = cashArray[index]; | |
| 69 | winrow++; | |
| 70 | if(winrow >= 5) {
| |
| 71 | skip = 3; | |
| 72 | } | |
| 73 | ||
| 74 | } | |
| 75 | ||
| 76 | ||
| 77 | ||
| 78 | }); |