Advertisement
NotADeveloper

Untitled

Apr 14th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 KB | None | 0 0
  1. // Script Name: not yet released
  2. // Author: Landrew 03-31-2017
  3. // Donations sent to Landrew
  4.  
  5.  
  6. // 1.10 cashout on loss 1.11 cashout
  7. var BetSizeIsBankrollDividedBy=111;
  8. var CashoutPercentageWin=108;
  9. var CashoutPercentageLoss=109;
  10. var CurrentBalance;
  11. var CashoutPercentage;
  12. var BitMultiplierLoss=12;
  13.  
  14. var QuitAt=15020;
  15.  
  16. var SkipCount=0;
  17.  
  18. var BitsToBet;
  19. var BitsToBetBase;
  20. var LossCount=0;
  21. var FirstRun = true;
  22. var FirstRunBonuse= false;
  23. var WinCount=0;
  24. var WinCountMax=25;
  25. var BigLoss=false;
  26. var BitsToBetWinMultiplier;
  27. engine.on('game_starting', function(data) {
  28. BitsToBetBase=Math.floor((engine.getBalance()/100)/BetSizeIsBankrollDividedBy)+2;
  29.  
  30. if (SkipCount ==0 || engine.lastGamePlay() == 'WON' ) {
  31. if (engine.lastGamePlay() =='WON' || FirstRun) {
  32.  
  33.  
  34. if (WinCount==0) {
  35. BitsToBetWinMultiplier = 0.94;
  36. BitsToBet=BitsToBetBase;
  37. if (BigLoss) BitsToBet*=2;
  38. } else {
  39. BitsToBet*=BitsToBetWinMultiplier;
  40. if (Math.random() > 0.80) BitsToBet*=0.9;
  41. }
  42. BitsToBetWinMultiplier-=(0.003+WinCount/500 );
  43. //BitsToBet+=(Math.sin(WinCount)*10);
  44. BetSizeIsBankrollDividedBy+=(WinCount/100);
  45. if (FirstRun) {
  46. BitsToBet*=5;
  47. FirstRunBonus=true;
  48. }
  49. FirstRun=false;
  50. CashoutPercentage=CashoutPercentageWin;
  51. // CashoutPercentage=105+Math.abs(Math.sin(WinCount/10)*Math.PI**2)
  52. SkipCount=0;
  53. LossCount=0;
  54. BigLoss=false;
  55. WinCount++;
  56. if (Math.random() > 0.99) SkipCount=Math.floor(Math.random()*50);
  57. if (BitsToBet < 5) WinCount=0;
  58. } else if (engine.lastGamePlay() == 'LOST' || LossCount > 0) {
  59. CashoutPercentage=CashoutPercentageLoss;
  60.  
  61. if (LossCount==0) {
  62. if (FirstRunBonus) {
  63. CashoutPercentage+=15;
  64. SkipCount=0;
  65. BitsToBet=1;
  66. FirstRunBonus=false;
  67. } else {
  68. BitsToBet*=(BitMultiplierLoss);
  69. SkipCount=Math.floor(Math.random()*5)+5;
  70. BitsToBet*=1.01;
  71. }
  72. } else if (LossCount ==1) {
  73. engine.placeBet(Math.floor(BitsToBet)*100 ,Math.floor(CashoutPercentage));
  74. BitsToBet*=(BitMultiplierLoss);
  75. BitsToBet*=1.02;
  76. SkipCount=Math.floor(Math.random()*10)+5;;
  77.  
  78. } else if (LossCount >=2) {
  79. engine.placeBet(Math.floor(BitsToBet)*100 ,Math.floor(CashoutPercentage));
  80. SkipCount=1;
  81.  
  82. BitsToBet=BitsToBetBase;
  83. BigLoss=true;
  84. }
  85.  
  86.  
  87. LossCount++;
  88. WinCount=0;
  89.  
  90. }
  91.  
  92. CurrentBalance=engine.getBalance();
  93.  
  94.  
  95.  
  96. if (CurrentBalance/100 > QuitAt) {
  97. console.log('Stopping');
  98. engine.stop();
  99.  
  100. }
  101. if (SkipCount ==0)
  102. engine.placeBet(Math.floor(BitsToBet)*100 ,Math.floor(CashoutPercentage));
  103.  
  104. } else {
  105. SkipCount--;
  106. console.log('SkipCount: ', SkipCount);
  107. }
  108. console.log('%cBitsBet: '+ BitsToBet, 'color:green; font-size:16px');
  109. console.log('LossCount: ', LossCount);
  110. console.log('WinCount: ', WinCount);
  111. console.log('BetSizeIsBankrollDividedBy: ', BetSizeIsBankrollDividedBy);
  112. console.log('BitsToBetWinMultiplier: ', BitsToBetWinMultiplier);
  113. });
  114.  
  115.  
  116. engine.on('game_crash', function(data) {
  117.  
  118. if (data.game_crash>= CashoutPercentage) {
  119.  
  120. }
  121. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement