Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = {
- msg: { type: 'noop', label: 'Created By SellingScripts' },
- };
- var betArray = [1,4,15,15,75,125,80,106,143,403,1000]; // 0 is skip and other is in Bits.
- var cashArray =[2,1.25,1.35,2.4,1.5,1.9,4,4,4,2.4,2]; // must have 0 in same place as in betArray to cashout nicely.
- var index = 0;
- var bet = betArray[index];
- var cashout = cashArray[index];
- var roundCounter = 0;
- var losestreak=0;
- var maxLosestreak=11;
- var skippedRounds=0;
- var maxSkippedRounds=1000000;
- var skipAfterGreen=0;
- var maxFirstSkipAfterGreen=3;
- var maxSkipAfterGreen = maxFirstSkipAfterGreen -1;
- log('Welcome script is running...');
- log('Your balance is...' + (userInfo.balance / 100) + ' bits');
- log('Good Luck!');
- // Main:
- engine.on("GAME_STARTING", function() {
- if(losestreak<maxLosestreak){
- engine.bet(bet * 100, cashout);
- }else if (skipAfterGreen > maxSkipAfterGreen) {
- engine.bet(bet * 100, cashout);
- skipAfterGreen=0;
- losestreak=0;
- } else {
- if(losestreak>=maxLosestreak){
- skippedRounds+=1;
- if(skippedRounds>=maxSkippedRounds){
- skippedRounds=0;
- losestreak=0;
- }
- }
- log('Skipping the Next Round');
- }
- });
- engine.on("GAME_ENDED", function() {
- var lastGame = engine.history.first();
- if (!lastGame.wager & roundCounter !== 0) {
- if(lastGame.bust >= cashout){
- skipAfterGreen++;
- log('The red streak ended, waiting for ' + maxFirstSkipAfterGreen + ' greens before betting. ' + skipAfterGreen);
- }
- return;
- }
- if(!lastGame.cashedAt) {
- log('We lost.');
- index++;
- bet = betArray[index];
- cashout = cashArray[index];
- losestreak++;
- roundCounter++;
- }
- else{
- log('We won.');
- index = 0;
- bet = betArray[index];
- losestreak = 0;
- cashout = cashArray[index];
- roundCounter++;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement