Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. // Script: Drop from 4x
  2. // Author: MooseyMoose
  3. // Please reward username MooseyMoose for writing this. All donations will be noted under Transfer history, anyone who donates gains custom edits on request.
  4.  
  5. var CashoutPercentage;
  6. var BitsToBet;
  7. var LossCount=0;
  8. var TotalLoss=0;
  9. var CashoutLoss=300;
  10. var BitMultiplier;
  11.  
  12. var CashoutWin=600;
  13.  
  14. var BitBaseBetWin=10;
  15. var BitBaseBetLoss=10;
  16. engine.on('game_starting', function(data) {
  17. // if (engine.lastGamePlay() == 'LOST') {
  18. if (engine.lastGamePlay() == 'WON')
  19. {
  20. CashoutPercentage=CashoutWin;
  21. BitsToBet=BitBaseBetWin;
  22. BitBaseBetLoss=engine.getBalance()/450000;
  23. LossCount=0;
  24. TotalLoss=0;
  25. }
  26. if (LossCount==0) {
  27. BitsToBet=BitBaseBetLoss;
  28. CashoutPercentage=CashoutLoss;
  29. }
  30. BitMultiplier=1+(2/(CashoutPercentage/(110+LossCount*2)));
  31. BitsToBet*=BitMultiplier;
  32. CashoutPercentage-=(Math.random()*(CashoutLoss/110))*LossCount;
  33. TotalLoss+=BitsToBet;
  34. LossCount++;
  35.  
  36. // } else {
  37.  
  38. // }
  39. TotalLoss+=BitsToBet;
  40. console.log(' ');
  41. console.log('CashOut: ', CashoutPercentage);
  42. console.log('BitsToBet: ', BitsToBet);
  43. console.log('%cTotal Loss: ' + Math.floor(TotalLoss), 'color: red');
  44. console.log('%cLoss Count: '+ LossCount, 'color: purple; font-size:' + LossCount*1.5);
  45. console.log('Bit Multipler: ', BitMultiplier);
  46. engine.placeBet(Math.floor(BitsToBet)*100 ,Math.floor(CashoutPercentage));
  47. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement