Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Script Name: Drunken Martingale
- // Author: Lander 03-22-2017
- // https://www.youtube.com/watch?v=XlUjryOP3LE
- // User Defined variables
- var BetSizeIsBankrollDividedBy = 15;
- var BetSizeIsBankrollDividedByBase = BetSizeIsBankrollDividedBy;
- var BetSizeIsBankrollDividedByMinimum=10;
- var CashoutPercentage = 114;
- // Internal use
- var CashoutPercentageBase = CashoutPercentage;
- var BitsToBet=10;
- var BitsToBetBase; //BitsToBet;
- var LossCount =1; // forces aggressive first bet for win streak
- var WinCount=0;
- var LastCrash=0;
- var BitsToRecover=0;
- var RoundCount=0;
- var NyanChaseCounterBase = 25;
- var NyanChaseAmount = 5;
- var NyanChaseCounter =0;
- var NyanNotSeenSince = 2562; // Manually set this at run to current Nyan Seen last count
- var NyanTrigger = 2500;
- var NeverChaseNyan = true;
- 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) {
- CashoutPercentage=CashoutPercentageBase;
- BitsToBet*=1.5;
- CashoutPercentage+=40;
- } else {
- BetSizeIsBankrollDividedBy+=2;
- CashoutPercentage+=LossCount;
- BitsToRecover+=BitsToBet+BitsToBetBase;
- if (LossCount ==1) BitsToRecover+=BitsToBetBase;
- BitsToBet=1;
- }
- LossCount++;
- WinCount=0;
- }
- }
- // Last round was a win - derive base bet plus loss recovery portion.
- else {
- if (WinCount ==0) {
- CashoutPercentage=CashoutPercentageBase;
- } else {
- CashoutPercentage+=0.5;
- }
- BitsToBetBase = Math.floor(((engine.getBalance()/100)-BitsToRecover)/BetSizeIsBankrollDividedBy);
- BitsToBet=BitsToBetBase;
- BetSizeIsBankrollDividedBy*=0.99 ;
- //BetSizeIsBankrollDividedBy-=WinCount;
- if (BetSizeIsBankrollDividedBy < BetSizeIsBankrollDividedByMinimum) BetSizeIsBankrollDividedBy = BetSizeIsBankrollDividedByBase;
- LossRecoveryTemp = BitsToRecover*0.15;
- BitsToBet+=LossRecoveryTemp*1.1;
- BitsToRecover-=LossRecoveryTemp*0.85;
- if (BitsToRecover < 0) BitsToRecover = 0;
- if (!NeverChaseNyan) {
- if (NyanNotSeenSince > NyanTrigger) {
- if (Math.random() > 0.66) NyanChaseCounter=NyanChaseCounterBase;
- }
- if (Math.random() > 0.98) NyanChaseCounter=NyanChaseCounterBase;
- if (NyanNotSeenSince > NyanTrigger*2) {
- NyanChaseCounter=NyanChaseCounterBase;
- }
- }
- WinCount++;
- LossCount=0;
- }
- TempCashout=CashoutPercentage;
- BitsToBetTemp=BitsToBet;
- 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('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);
- }
- engine.placeBet(Math.floor(BitsToBetTemp)*100 ,Math.floor(TempCashout));
- });
- engine.on('game_crash', function(data) {
- LastCrash=data.game_crash/100;
- if (LastCrash < 100000) NyanNotSeenSince++;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement