Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Script Name: CornDiet
- // Author: Landrew 04-08-2017
- // Donations sent to Landrew
- var CashoutPercentage=110;
- var QuitAt=10020;
- var CurrentBalance;
- var BitsToBet=25;
- var SkipCount=0;
- var LossCount =0;
- var LossFlag = false;
- var LossSkipValue=3;
- engine.on('game_starting', function(data) {
- console.log('max is ', (engine.getBalance()/100)/4);
- if (SkipCount == 0 || engine.lastGamePlay() == 'WON') {
- if (engine.lastGamePlay() == 'WON'){
- LossCount=0;
- BitsToBet=(engine.getBalance()/100)/112;
- BitsToBet+=LossCount*100
- SkipCount=0;
- if (Math.random() > 0.99) SkipCount = Math.round(Math.random()*15)+15;
- } else if (engine.lastGamePlay() == 'LOST' || LossCount > 0) {
- if (LossCount > 0) {
- BitsToBet*=10;
- BitsToBet+=LossCount*10;
- LossFlag=true;
- }
- if (BitsToBet > (engine.getBalance()/100)/2) BitsToBet*=0.66;
- SkipCount = LossSkipValue-LossCount;
- LossCount++;
- }
- CurrentBalance=engine.getBalance();
- console.log('Balance: ', CurrentBalance/100);
- console.log('%cCashout: '+ CashoutPercentage, 'color: blue');
- console.log('Bits Bet: ', BitsToBet);
- console.log('LossCount: ', LossCount);
- if (CurrentBalance/100 > QuitAt) {
- console.log('Stopping');
- engine.stop();
- }
- if (SkipCount ==0 || LossFlag) {
- engine.placeBet(Math.floor(BitsToBet)*100 ,Math.floor(CashoutPercentage));
- LossFlag=false;
- }
- } else {
- SkipCount--;
- console.log('SkipCount: ', SkipCount);
- }
- });
- engine.on('game_crash', function(data) {
- // if (data.game_crash < 1000) {
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement