SHOW:
|
|
- or go back to the newest paste.
| 1 | /** Busta-A-Bit Follow Script | |
| 2 | * | |
| 3 | * This script will try to hunt that nyan cat down. This is the way it works | |
| 4 | * * Waits until 1,000 games have passed without a nyan cat | |
| 5 | * * It will then start betting the base bet every game and hopefully catch a cat | |
| 6 | * | |
| 7 | * By using this script you agree to the following: | |
| 8 | * * Using this script does not mean that you will get bits. In fact, you could always lose them. | |
| 9 | * | |
| 10 | * | |
| 11 | * Built by Peekaboi | |
| 12 | * Profile: http://hackforums.net/member.php?action=profile&uid=2925654 | |
| 13 | * | |
| 14 | * Please do not distribute | |
| 15 | * Please do not remove any commas | |
| 16 | * Please do not sell | |
| 17 | * Please do not claim as your own | |
| 18 | * Please do not blame me for any bits lost | |
| 19 | * | |
| 20 | */ | |
| 21 | ||
| 22 | /** -------------- Settings -------------- **/ | |
| 23 | var settings = {
| |
| 24 | ||
| 25 | 'baseBet': 1, | |
| 26 | //Your base bet, in bits | |
| 27 | ||
| 28 | 'nyanMultiplier': 2, | |
| 29 | //What nyan multiplier would you like to grab | |
| 30 | ||
| 31 | 'waitGames': 2 | |
| 32 | //How many games should we wait before starting to look for thy nyan. This should be the same number as nyanMultiplier | |
| 33 | ||
| 34 | }; | |
| 35 | /** -------------- Settings -------------- **/ | |
| 36 | ||
| 37 | ||
| 38 | var script = {
| |
| 39 | 'totalWaited': 0, | |
| 40 | 'placingBet': false, | |
| 41 | 'attempts': 0 | |
| 42 | }; | |
| 43 | ||
| 44 | engine.on('game_starting', function(info)
| |
| 45 | {
| |
| 46 | ||
| 47 | if(script.totalWaited >= settings.waitGames) | |
| 48 | {
| |
| 49 | script.placingBet = true; | |
| 50 | engine.placeBet(Math.round(settings.baseBet) * 100, Math.round(settings.nyanMultiplier * 100), false); | |
| 51 | log('Placing bet now for the nyan cat');
| |
| 52 | } | |
| 53 | else | |
| 54 | {
| |
| 55 | log('Still waiting before we place the bet.');
| |
| 56 | script.placingBet = false; | |
| 57 | } | |
| 58 | ||
| 59 | if(script.placingBet) | |
| 60 | {
| |
| 61 | if (engine.lastGamePlay() == 'LOST') | |
| 62 | {
| |
| 63 | log('Shot and a miss, maybe next game <3');
| |
| 64 | } | |
| 65 | else | |
| 66 | {
| |
| 67 | log('YO WE GOT THAT CAT. GG <3');
| |
| 68 | script.totalWaited = 0; | |
| 69 | script.attempts = 0; | |
| 70 | } | |
| 71 | } | |
| 72 | ||
| 73 | }); | |
| 74 | ||
| 75 | engine.on('game_started', function(data)
| |
| 76 | {
| |
| 77 | if(!script.placingBet) | |
| 78 | {
| |
| 79 | script.totalWaited++; | |
| 80 | } | |
| 81 | else | |
| 82 | {
| |
| 83 | script.attempts++; | |
| 84 | } | |
| 85 | }); | |
| 86 | ||
| 87 | function log(message) | |
| 88 | {
| |
| 89 | console.log('[Bot] ' + message);
| |
| 90 | } |