Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Script Name: Bob the Banker
- // Author: Jiggles 03-24-2017
- // for background music when playing: https://www.youtube.com/watch?v=XlUjryOP3LE
- // Please remember Jiggles if you do well with this script - send a transfer - will be in Jiggles history and can assist in custom tweaking requests.
- // I spend hours a day refining scripts, so all people have to do is paste them in.
- // So keep ole Jiggles in mind if you do well. Thanks
- // User Defined variables
- var BetSizeIsBankrollDividedBy = 50;
- var BetSizeIsBankrollDividedByBase = BetSizeIsBankrollDividedBy;
- var BetSizeIsBankrollDividedByMinimum=10;
- var CashoutPercentage = 110;
- var UpperRangeLimit = 136;
- var BetProtectionLimit = 10;
- // Internal use
- var CashoutPercentageBase = CashoutPercentage;
- var BitsToBet=10;
- var BitsToBetBase; //BitsToBet;
- var LossCount =0; // forces aggressive first bet for win streak
- var WinCount=0;
- var LastCrash=0;
- var BitsToRecover=0;
- var RoundCount=0;
- var LossRecoveryTemp =1;
- var NyanChaseCounterBase = 25;
- var NyanChaseAmount = 5;
- var NyanChaseCounter =0;
- var NyanNotSeenSince = 950
- ; // Manually set this at run to current Nyan Seen last count
- var NyanTrigger = 2500;
- var NyanTest =0;
- var NeverChaseNyan = false;
- var WinStreak=0;
- var BitsToBetTemp;
- var TempCashout;
- // Round Start Evaluate last round status was it a win or loss:
- engine.on('game_starting', function(data) {
- RoundCount++;
- // if (RoundCount==1) alert('If you do well with this script - please consider sending something back to the author Landrew - greatly appreciated, ask in chat for updates. Press F12 or CTRL-Shift I to see console log / stats');
- // Last round was a loss record loss for later recovery
- if (engine.lastGamePlay() == 'LOST') {
- if (NyanChaseCounter <= 0) {
- if (LossCount==0) {
- BetSizeIsBankrollDividedBy-=0.25;
- CashoutPercentage=CashoutPercentageBase+20+Math.random()*25;
- BitsToBet=(BitsToBet-(BitsToRecover(0.05)))*2.9;
- BitsToRecover+=BitsToBet;
- console.log('%cFirst Loss Adjusted to: ' + BitsToBet, 'color:orange');
- } else if (LossCount==1) {
- BitsToBet=(BitsToBet-(BitsToRecover*0.05))*2.1;
- BitsToRecover+=BitsToBet;
- CashoutPercentage+=10;
- BetSizeIsBankrollDividedBy-=1;
- } else {
- BitsToRecover+=BitsToBet*1.1;
- BitsToBet*=0.90;
- CashoutPercentage+=10;
- BetSizeIsBankrollDividedBy-=1;
- }
- }
- LossCount++;
- WinCount=0;
- }
- // Last round was a win - derive base bet plus loss recovery portion.
- else {
- if (WinCount ==0 || WinStreak==0) {
- CashoutPercentage=CashoutPercentageBase;
- } else {
- CashoutPercentage+=Math.random()*10;
- BetSizeIsBankrollDividedBy+=0.1
- }
- BitsToBetBase = Math.floor(((engine.getBalance()/100)-BitsToRecover)/BetSizeIsBankrollDividedBy);
- BitsToBet=BitsToBetBase;
- // BetSizeIsBankrollDividedBy*=0.99 ;
- //BetSizeIsBankrollDividedBy-=WinCount;
- if (BetSizeIsBankrollDividedBy < BetSizeIsBankrollDividedByMinimum) BetSizeIsBankrollDividedBy = BetSizeIsBankrollDividedByBase;
- LossRecoveryTemp = BitsToRecover*0.05; // 5% of debt
- BitsToBet+=LossRecoveryTemp;
- BitsToRecover-=LossRecoveryTemp*0.75; // 25% interest on debt remaining
- if (BitsToRecover < 0) BitsToRecover = 0;
- if (BitsToRecover > 0) CashoutPercentage+=5;
- if (!NeverChaseNyan) {
- NyanTest = Math.random();
- if (NyanNotSeenSince > NyanTrigger) {
- if (NyanTest > 0.66) {
- NyanChaseCounter=NyanChaseCounterBase;
- console.log('Past Due Date: NyanTest= ', NyanTest);
- }
- }
- if (NyanTest > 0.99) {
- NyanChaseCounter=NyanChaseCounterBase;
- console.log('Random Chance: NyanTest= ', NyanTest);
- }
- if (NyanNotSeenSince > NyanTrigger*2) {
- NyanChaseCounter=NyanChaseCounterBase;
- console.log('Past 2x Due: NyanTest= ', NyanTest);
- }
- }
- if (CashoutPercentage > UpperRangeLimit && LossCount <=0) CashoutPercentage = CashoutPercentageBase
- WinCount++;
- WinStreak++;
- LossCount=0;
- }
- TempCashout=CashoutPercentage;
- BitsToBetTemp=BitsToBet;
- if (Math.random() > 0.8 && WinCount > 0) {
- BitsToBetTemp*=1.3;
- console.log('Bonus WinCount> 0: ' + BitsToBetTemp, 'color:green');
- }
- if (Math.random() > 0.8 && WinCount > 5) {
- TempCashout*=1.1;
- console.log('Bonus WinCount> 5: ' + BitsToBetTemp, 'color:green');
- }
- if (Math.random() > 0.8 && WinCount > 3) {
- BitsToBetTemp*=1.2;
- console.log('Bonus WinCount> 3: ' + BitsToBetTemp, 'color:green');
- }
- if (WinStreak > 10) {
- WinStreak=0;
- BetSizeIsBankrollDividedBy+=10;
- BitsToBetTemp*=0.8;
- CashoutPercentage=1.05;
- }
- if (NyanChaseCounter > 0 && !NeverChaseNyan) {
- NyanChaseCounter--;
- if (NyanChaseCounter==0) WinCount=0;
- BitsToBetTemp=NyanChaseAmount + ((NyanChaseCounterBase-NyanChaseCounter)/2);
- TempCashout=100000;
- console.log(' ');
- console.log('Chasing %cN'+'%cY'+'%cA'+'%cN', 'color:red', 'color:blue', 'color:yellow', 'color:green');
- console.log('Nyan Counter: ', NyanChaseCounter)
- console.log('Bits Bet: ', BitsToBetTemp);
- console.log('Cashout: ', TempCashout);
- } else {
- console.log(' ');
- console.log('Bits Bet: ', BitsToBetTemp);
- console.log('Bit Bet Minimum: ',BitsToBetBase);
- console.log('Cashout: ', TempCashout);
- console.log('WinCount: ', WinCount);
- console.log('LossCount: ', LossCount);
- console.log('Last Crash: ', LastCrash);
- console.log('Divide BR by: ',BetSizeIsBankrollDividedBy);
- console.log('Bits To Recover: ',BitsToRecover);
- console.log('Recovery Add-on: ', LossRecoveryTemp*1.1);
- }
- //alert(BitsToBetTemp + ':' + Math.floor(((engine.getBalance()/100)-BitsToRecover)/BetProtectionLimit));
- if (BitsToBetTemp < Math.floor(((engine.getBalance()/100)-BitsToRecover)/BetProtectionLimit)) {
- engine.placeBet(Math.floor(BitsToBetTemp)*100 ,Math.floor(TempCashout));
- } else {
- engine.placeBet(Math.floor(BitsToBetTemp/2)*100 ,Math.floor(TempCashout));
- BitsToRecover+=BitsToBetTemp*0.5;
- console.log('%cOVERFLOW: ' + Math.floor(BitsToBetTemp) + ' to ' +Math.floor(((engine.getBalance()/100)-BitsToRecover)/BetProtectionLimit) , 'color:red')
- BetSizeIsBankrollDividedBy+=10;
- }
- });
- engine.on('game_crash', function(data) {
- LastCrash=data.game_crash/100;
- if (LastCrash < 100000) {
- NyanNotSeenSince++;
- } else {
- NyanNotSeenSince=0;
- }
- // if (CashoutPercentage/100 > LastCrash) BitsToRecover+=BitsToBetTemp;
- });
Add Comment
Please, Sign In to add comment