Advertisement
Guest User

Untitled

a guest
Apr 16th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. var config = {
  2. msg: { type: 'noop', label: 'Created By SellingScripts' },
  3. };
  4.  
  5. var betArray = [1,4,15,15,75,125,80,106,143,403,1000]; // 0 is skip and other is in Bits.
  6. 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.
  7.  
  8. var index = 0;
  9. var bet = betArray[index];
  10. var cashout = cashArray[index];
  11. var roundCounter = 0;
  12.  
  13. var losestreak=0;
  14. var maxLosestreak=11;
  15.  
  16. var skippedRounds=0;
  17. var maxSkippedRounds=1000000;
  18.  
  19. var skipAfterGreen=0;
  20. var maxFirstSkipAfterGreen=3;
  21. var maxSkipAfterGreen = maxFirstSkipAfterGreen -1;
  22.  
  23. log('Welcome script is running...');
  24. log('Your balance is...' + (userInfo.balance / 100) + ' bits');
  25. log('Good Luck!');
  26.  
  27.  
  28. // Main:
  29. engine.on("GAME_STARTING", function() {
  30.  
  31. if(losestreak<maxLosestreak){
  32. engine.bet(bet * 100, cashout);
  33. }else if (skipAfterGreen > maxSkipAfterGreen) {
  34. engine.bet(bet * 100, cashout);
  35. skipAfterGreen=0;
  36. losestreak=0;
  37. } else {
  38. if(losestreak>=maxLosestreak){
  39. skippedRounds+=1;
  40. if(skippedRounds>=maxSkippedRounds){
  41. skippedRounds=0;
  42. losestreak=0;
  43. }
  44. }
  45. log('Skipping the Next Round');
  46. }
  47.  
  48. });
  49.  
  50. engine.on("GAME_ENDED", function() {
  51.  
  52. var lastGame = engine.history.first();
  53.  
  54.  
  55. if (!lastGame.wager & roundCounter !== 0) {
  56. if(lastGame.bust >= cashout){
  57. skipAfterGreen++;
  58. log('The red streak ended, waiting for ' + maxFirstSkipAfterGreen + ' greens before betting. ' + skipAfterGreen);
  59.  
  60. }
  61.  
  62. return;
  63. }
  64.  
  65.  
  66. if(!lastGame.cashedAt) {
  67. log('We lost.');
  68. index++;
  69. bet = betArray[index];
  70. cashout = cashArray[index];
  71. losestreak++;
  72. roundCounter++;
  73.  
  74. }
  75. else{
  76. log('We won.');
  77. index = 0;
  78. bet = betArray[index];
  79. losestreak = 0;
  80. cashout = cashArray[index];
  81. roundCounter++;
  82. }
  83.  
  84.  
  85.  
  86. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement