Advertisement
NotADeveloper

Fat Cow Script by Landrew - please send donations to LANDREW

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