Advertisement
NotADeveloper

For Schwarz

Apr 8th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 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=7;
  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.  
  28. } else if (engine.lastGamePlay() == 'LOST' || LossCount > 0) {
  29.  
  30.  
  31. if (LossCount > 0) {
  32. BitsToBet*=10;
  33. LossFlag=true;
  34. }
  35. if (BitsToBet > (engine.getBalance()/100)/2) BitsToBet*=0.66;
  36. SkipCount = Math.floor(LossSkipValue*Math.random())+LossSkipValue;
  37. LossCount++;
  38.  
  39. }
  40.  
  41. CurrentBalance=engine.getBalance();
  42. console.log('Balance: ', CurrentBalance/100);
  43. console.log('%cCashout: '+ CashoutPercentage, 'color: blue');
  44. console.log('Bits Bet: ', BitsToBet);
  45. console.log('LossCount: ', LossCount);
  46.  
  47. if (CurrentBalance/100 > QuitAt) {
  48. console.log('Stopping');
  49. engine.stop();
  50.  
  51. }
  52.  
  53. if (SkipCount ==0 || LossFlag) {
  54. engine.placeBet(Math.floor(BitsToBet)*100 ,Math.floor(CashoutPercentage));
  55. LossFlag=false;
  56. }
  57. } else {
  58. SkipCount--;
  59. console.log('SkipCount: ', SkipCount);
  60. }
  61. });
  62.  
  63.  
  64. engine.on('game_crash', function(data) {
  65.  
  66.  
  67. // if (data.game_crash < 1000) {
  68.  
  69. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement