Advertisement
NotADeveloper

Untitled

Apr 9th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. // Script Name: CornDiet
  2. // Author: Landrew 04-08-2017
  3. // Donations sent to Landrew
  4.  
  5. var CashoutPercentage=110;
  6.  
  7. var QuitAt=10020;
  8.  
  9. var CurrentBalance;
  10. var BitsToBet=25;
  11. var SkipCount=0;
  12. var LossCount =0;
  13. var LossFlag = false;
  14. var LossSkipValue=3;
  15. engine.on('game_starting', function(data) {
  16. console.log('max is ', (engine.getBalance()/100)/4);
  17.  
  18. if (SkipCount == 0 || engine.lastGamePlay() == 'WON') {
  19.  
  20.  
  21. if (engine.lastGamePlay() == 'WON'){
  22. LossCount=0;
  23.  
  24. BitsToBet=(engine.getBalance()/100)/112;
  25. BitsToBet+=LossCount*100
  26. SkipCount=0;
  27. if (Math.random() > 0.99) SkipCount = Math.round(Math.random()*15)+15;
  28.  
  29. } else if (engine.lastGamePlay() == 'LOST' || LossCount > 0) {
  30.  
  31.  
  32. if (LossCount > 0) {
  33. BitsToBet*=10;
  34. BitsToBet+=LossCount*10;
  35. LossFlag=true;
  36. }
  37. if (BitsToBet > (engine.getBalance()/100)/2) BitsToBet*=0.66;
  38. SkipCount = LossSkipValue-LossCount;
  39. LossCount++;
  40.  
  41. }
  42.  
  43. CurrentBalance=engine.getBalance();
  44. console.log('Balance: ', CurrentBalance/100);
  45. console.log('%cCashout: '+ CashoutPercentage, 'color: blue');
  46. console.log('Bits Bet: ', BitsToBet);
  47. console.log('LossCount: ', LossCount);
  48.  
  49. if (CurrentBalance/100 > QuitAt) {
  50. console.log('Stopping');
  51. engine.stop();
  52.  
  53. }
  54.  
  55. if (SkipCount ==0 || LossFlag) {
  56. engine.placeBet(Math.floor(BitsToBet)*100 ,Math.floor(CashoutPercentage));
  57. LossFlag=false;
  58. }
  59. } else {
  60. SkipCount--;
  61. console.log('SkipCount: ', SkipCount);
  62. }
  63. });
  64.  
  65.  
  66. engine.on('game_crash', function(data) {
  67.  
  68.  
  69. // if (data.game_crash < 1000) {
  70.  
  71. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement