Advertisement
NotADeveloper

Drunken Martingale Script

Mar 22nd, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.34 KB | None | 0 0
  1. // Script Name: Drunken Martingale
  2. // Author: Lander 03-22-2017
  3. // https://www.youtube.com/watch?v=XlUjryOP3LE
  4.  
  5. // User Defined variables
  6.  
  7. var BetSizeIsBankrollDividedBy = 11;
  8. var BetSizeIsBankrollDividedByBase = BetSizeIsBankrollDividedBy;
  9. var BetSizeIsBankrollDividedByMinimum=10;
  10. var CashoutPercentage = 114;
  11.  
  12.  
  13. // Internal use
  14. var CashoutPercentageBase = CashoutPercentage;
  15. var BitsToBet=10;
  16. var BitsToBetBase; //BitsToBet;
  17. var LossCount =1; // forces aggressive first bet for win streak
  18. var WinCount=0;
  19. var LastCrash=0;
  20. var BitsToRecover=0;
  21.  
  22. var RoundCount=0;
  23.  
  24. var NyanChaseCounterBase = 25;
  25. var NyanChaseAmount = 5;
  26. var NyanChaseCounter =0;
  27. var NyanNotSeenSince = 2262; // Manually set this at run to current Nyan Seen last count
  28. var NyanTrigger = 2500;
  29.  
  30.  
  31. var BitsToBetTemp;
  32.  
  33. var TempCashout;
  34.  
  35. // Round Start Evaluate last round status was it a win or loss:
  36.  
  37. engine.on('game_starting', function(data) {
  38. RoundCount++;
  39. // 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');
  40.  
  41.  
  42. // Last round was a loss record loss for later recovery
  43. if (engine.lastGamePlay() == 'LOST') {
  44.  
  45. if (NyanChaseCounter <= 0) {
  46. if (LossCount==0) {
  47. CashoutPercentage=CashoutPercentageBase;
  48.  
  49. BitsToBet*=1.5;
  50.  
  51. CashoutPercentage+=40;
  52. } else {
  53.  
  54. BetSizeIsBankrollDividedBy+=10;
  55. CashoutPercentage+=LossCount;
  56. BitsToRecover+=BitsToBet+BitsToBetBase;
  57. if (LossCount ==1) BitsToRecover+=BitsToBetBase;
  58. BitsToBet=1;
  59. }
  60.  
  61. LossCount++;
  62. WinCount=0;
  63. }
  64. }
  65. // Last round was a win - derive base bet plus loss recovery portion.
  66. else {
  67. if (WinCount ==0) {
  68. CashoutPercentage=CashoutPercentageBase;
  69. } else {
  70. CashoutPercentage+=0.5;
  71. }
  72.  
  73. BitsToBetBase = Math.floor(((engine.getBalance()/100)-BitsToRecover)/BetSizeIsBankrollDividedBy);
  74.  
  75. BitsToBet=BitsToBetBase;
  76.  
  77. BetSizeIsBankrollDividedBy*=0.99 ;
  78. //BetSizeIsBankrollDividedBy-=WinCount;
  79.  
  80. if (BetSizeIsBankrollDividedBy < BetSizeIsBankrollDividedByMinimum) BetSizeIsBankrollDividedBy = BetSizeIsBankrollDividedByBase;
  81. LossRecoveryTemp = BitsToRecover*0.15;
  82. BitsToBet+=LossRecoveryTemp*1.1;
  83. BitsToRecover-=LossRecoveryTemp*0.85;
  84. if (BitsToRecover < 0) BitsToRecover = 0;
  85.  
  86.  
  87.  
  88. if (NyanNotSeenSince > NyanTrigger) {
  89.  
  90. if (Math.random() > 0.66) NyanChaseCounter=NyanChaseCounterBase;
  91.  
  92. }
  93.  
  94. if (Math.random() > 0.98) NyanChaseCounter=NyanChaseCounterBase;
  95.  
  96. if (NyanNotSeenSince > NyanTrigger*2) {
  97.  
  98. NyanChaseCounter=NyanChaseCounterBase;
  99.  
  100. }
  101.  
  102.  
  103. WinCount++;
  104. LossCount=0;
  105. }
  106.  
  107. TempCashout=CashoutPercentage;
  108. BitsToBetTemp=BitsToBet;
  109.  
  110. if (NyanChaseCounter > 0) {
  111. NyanChaseCounter--;
  112. if (NyanChaseCounter==0) WinCount=0;
  113. BitsToBetTemp=NyanChaseAmount + ((NyanChaseCounterBase-NyanChaseCounter)/2);
  114. TempCashout=100000;
  115.  
  116. console.log(' ');
  117. console.log('Chasing %cN'+'%cY'+'%cA'+'%cN', 'color:red', 'color:blue', 'color:yellow', 'color:green');
  118. console.log('Nyan Counter: ', NyanChaseCounter)
  119. console.log('Bits Bet: ', BitsToBetTemp);
  120. console.log('Cashout: ', TempCashout);
  121. } else {
  122.  
  123. console.log(' ');
  124. console.log('Bits Bet: ', BitsToBetTemp);
  125. console.log('Cashout: ', TempCashout);
  126. console.log('WinCount: ', WinCount);
  127. console.log('LossCount: ', LossCount);
  128.  
  129. console.log('Last Crash: ', LastCrash);
  130. console.log('Divide BR by: ',BetSizeIsBankrollDividedBy);
  131. console.log('Bits To Recover: ',BitsToRecover);
  132. }
  133.  
  134. engine.placeBet(Math.floor(BitsToBetTemp)*100 ,Math.floor(TempCashout));
  135.  
  136.  
  137. });
  138.  
  139. engine.on('game_crash', function(data) {
  140. LastCrash=data.game_crash/100;
  141. if (LastCrash < 100000) NyanNotSeenSince++;
  142.  
  143. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement