Advertisement
NotADeveloper

Fat Cow Script

Mar 28th, 2017
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. // Script Name: FatCow
  2. // Author: Landrew 03-28-2017
  3. // Donations sent to Landrew
  4. var BetSizeIsBankrollDividedBy=4515;
  5. var CashoutPercentage;
  6. var CashoutWin = 170;
  7. var CashoutLose = 147;
  8. var Algorithm=0 ;
  9.  
  10.  
  11.  
  12. var CashoutTarget = 3;
  13. var CashoutTargetCounterBase = 2; //CashoutTarget*9;
  14. var CashoutTargetCounter = 0;
  15. var CashoutTargetRateBase=1.03;
  16. var CashoutTargetGrowthRate=0.01;
  17. var BitsToBet;
  18.  
  19. var LossCount=0;
  20. engine.on('game_starting', function(data) {
  21. if (engine.lastGamePlay() == 'LOST') {
  22.  
  23.  
  24. if (Algorithm==0) {
  25.  
  26. if (LossCount==0 ) {
  27. BitsToBet=1; //Math.floor((engine.getBalance()/100)/BetSizeIsBankrollDividedBy);
  28.  
  29. CashoutPercentage=CashoutLose;
  30. CashoutPercentage+=35; // Big Profit
  31. if (Math.random() > 0.8) CashoutPercentage+=15;
  32. BitsToBet*=16;
  33. } else if (LossCount ==1) {
  34. CashoutPercentage-=25; // Break even
  35. if (Math.random() > 0.8) CashoutPercentage+=15;
  36. BitsToBet*=2.7;
  37.  
  38. } else if (LossCount ==2) {
  39. CashoutPercentage+=15; // Big profit
  40. BitsToBet*=2.13;
  41.  
  42. } else if (LossCount ==3) {
  43. CashoutPercentage-=25; // Break even
  44. BitsToBet*=2.65;
  45.  
  46. } else if (LossCount ==4) {
  47. CashoutPercentage+=15;
  48. BitsToBet*=2.2;
  49.  
  50. } else {
  51. CashoutPercentage-=5;
  52. BitsToBet*=2.9;
  53. }
  54. LossCount++;
  55.  
  56.  
  57.  
  58.  
  59. } else {
  60.  
  61. LossCount++;
  62. CashoutTargetGrowthRate=0.01;
  63. BitsToBet*=CashoutTargetRateBase+ CashoutTargetGrowthRate;
  64. CashoutPercentage=CashoutTarget*100;
  65.  
  66. }
  67. } else {
  68.  
  69. Algorithm=0;
  70. BitsToBet=1;
  71.  
  72.  
  73. if (CashoutTargetCounter > CashoutTargetCounterBase && LossCount==0) {
  74. // Algorithm=1;
  75. // BitsToBet=5;
  76. CashoutTargetCounter=0;
  77. // CashoutPercentage=CashoutTarget*100;
  78.  
  79. } else {
  80.  
  81.  
  82.  
  83. if (Math.random() > 0.8) {
  84. BitsToBet*=1.3;
  85. console.log('%cBonus 1.3X Bits')
  86. }
  87. if (Math.random() > 0.8) { BitsToBet*=1.3;
  88. console.log('%cBonus 1.3X Bits')
  89. }
  90.  
  91. if (Math.random() > 0.8) {
  92. BitsToBet*=1.3;
  93. console.log('%cBonus 1.3X Bits')
  94. }
  95. if (Math.random() > 0.8) { BitsToBet*=1.3;
  96. console.log('%cBonus 1.3X Bits')
  97. }
  98.  
  99.  
  100. CashoutPercentage=CashoutWin;
  101.  
  102.  
  103. if (Math.random() > 0.8) {
  104. CashoutPercentage*=1.1;
  105. console.log('%cBonus 1.1X Cashout')
  106. }
  107. if (Math.random() > 0.8) {
  108. CashoutPercentage*=1.1;
  109. console.log('%cBonus 1.1X Cashout')
  110. }
  111. }
  112. LossCount=0;
  113.  
  114.  
  115. }
  116. console.log('Algorithm: ', Algorithm);
  117. console.log('Cashout: ', CashoutPercentage);
  118. console.log('Bits Bet: ', BitsToBet);
  119. console.log('%cLoss Count: ' + LossCount, 'color:red');
  120. console.log('Target Counter: ', CashoutTargetCounter);
  121. engine.placeBet(Math.floor(BitsToBet)*100 ,Math.floor(CashoutPercentage));
  122. });
  123.  
  124. engine.on('game_crash', function(data) {
  125. if (data.game_crash/100 < CashoutTarget ) {
  126. if (Algorithm==0 && LossCount ==0) CashoutTargetCounter++;
  127.  
  128. }
  129. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement