Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Script Name: CanyonClimber
- // Author: Landrew 04-2-2017
- // Donations sent to Landrew
- var BetSizeIsBankrollDividedBy=400;
- var CashoutPercentage=121;
- var CashoutPercentageBase = CashoutPercentage;
- var BitMultiplierBase=3.2;
- var BitMultiplierOffset;
- var QuitAt=50020;
- var WonLast=false;
- var CurrentBalance;
- var BitsBet=0
- var BitsToBet;
- var LossCount=0;
- var SkipCount=0;
- var RoundCount=0;
- var BelowParCount=0
- var WinCount=0;
- var WinProfit=0;
- var LastCrash;
- var WinCountMax = 8;
- engine.on('game_starting', function(data) {
- RoundCount++
- if (SkipCount ==0) {
- if (engine.lastGamePlay() == 'LOST') {
- if (LossCount==0) {
- CashoutPercentage=CashoutPercentageBase; BitsToBet=Math.floor((engine.getBalance()/100)/BetSizeIsBankrollDividedBy)+1;
- CashoutPercentage+=22;
- }
- BitsToBet*=(BitMultiplierBase+BitMultiplierOffset);
- BitMultiplierOffset+=0.1;
- CashoutPercentage+=2;
- BitsBet+=BitsToBet;
- LossCount++;
- WinCount=0;
- WonLast=false;
- } else {
- CashoutPercentage=CashoutPercentageBase;
- BitsToBet=Math.floor((engine.getBalance()/100)/BetSizeIsBankrollDividedBy)+1;
- BitsToBet+=WinCount*2;
- BitMultiplierOffset=0;
- WonLast=true;
- LossCount=0;
- BetSizeIsBankrollDividedBy+=1;
- WinCount++;
- BitsBet=BitsToBet;
- if (WinCount > WinCountMax) {
- SkipCount=Math.floor(WinCount/2);
- WinCount=0;
- }
- }
- CurrentBalance=engine.getBalance();
- if (WonLast) console.log('%cWin Profit: ' + WinProfit, 'color: purple; font-size: 20px');
- console.log('Balance: ', CurrentBalance/100);
- console.log('%cCashout: '+ CashoutPercentage, 'color: blue; font-size:15px');
- console.log('%cBits Bet: '+ BitsToBet, 'color:red; font-size:20px');
- console.log('X factor: ', BitMultiplierBase+BitMultiplierOffset);
- console.log('%cLoss Count: ' + LossCount, 'color:red; font-size:14px');
- console.log('Divide By: ', BetSizeIsBankrollDividedBy);
- console.log('X Offset: ', BitMultiplierOffset);
- console.log('%cTotal Bits Bet: '+ BitsBet, 'color: green; font-size:18px');
- console.log('WinCount: ', WinCount);
- if (CurrentBalance/100 > QuitAt) {
- console.log('Stopping');
- engine.stop();
- }
- engine.placeBet(Math.floor(BitsToBet)*100 ,Math.floor(CashoutPercentage));
- } else {
- SkipCount--;
- console.log('Skip Count: ', SkipCount);
- }
- });
- engine.on('game_crash', function(data) {
- console.log('Game crashed at ', data.game_crash);
- LastCrash=data.game_crash;
- if (data.game_crash> CashoutPercentage) {
- WonLast=true;
- WinProfit = Math.floor(engine.getBalance()/100-BitsBet-CurrentBalance/100);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement