Advertisement
NotADeveloper

Untitled

Mar 29th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. // Script Name: FatCow
  2. // Author: Landrew 03-28-2017
  3. // Donations sent to Landrew
  4.  
  5. var CashoutPercentage;
  6. var CashoutWin = 190;
  7. var CashoutLose = 157;
  8. var BitsToBet;
  9. var LossCount=0;
  10.  
  11. engine.on('game_starting', function(data) {
  12.  
  13. if (engine.lastGamePlay() == 'LOST') {
  14.  
  15. if (LossCount==0 ) {
  16. BitsToBet=1;
  17.  
  18. CashoutPercentage=CashoutLose;
  19. CashoutPercentage+=40; // Big Profit
  20. if (Math.random() > 0.8) CashoutPercentage+=15;
  21. BitsToBet*=18;
  22. } else if (LossCount ==1) {
  23. if (Math.random() > 0.8) CashoutPercentage+=15;
  24. CashoutPercentage-=13; // Break even
  25.  
  26. BitsToBet*=4.4;
  27.  
  28. } else if (LossCount ==2) {
  29. CashoutPercentage+=20; // Big profit
  30. BitsToBet*=2.5;
  31.  
  32. } else if (LossCount ==3) {
  33. CashoutPercentage-=10; // Break even
  34. BitsToBet*=2.85;
  35.  
  36. } else if (LossCount ==4) {
  37. CashoutPercentage-=25;
  38. BitsToBet*=2.9;
  39.  
  40. } else {
  41. CashoutPercentage-=5;
  42. BitsToBet*=3.1;
  43. }
  44. LossCount++;
  45.  
  46.  
  47. } else {
  48.  
  49. BitsToBet=15;
  50. CashoutPercentage=CashoutWin;
  51. LossCount=0;
  52.  
  53.  
  54. }
  55.  
  56. console.log('Cashout: ', CashoutPercentage);
  57. console.log('Bits Bet: ', BitsToBet);
  58. console.log('%cLoss Count: ' + LossCount, 'color:red');
  59.  
  60. engine.placeBet(Math.floor(BitsToBet)*100 ,Math.floor(CashoutPercentage));
  61. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement