Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 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=400;
  10. var BitMultiplier;
  11.  
  12. var CashoutWin=300;
  13.  
  14. var BitBaseBetWin=10;
  15. var BitBaseBetLoss;
  16. engine.on('game_starting', function(data) {
  17. if (engine.lastGamePlay() == 'LOST') {
  18.  
  19. if (LossCount==0) {
  20. BitsToBet=BitBaseBetLoss;
  21. CashoutPercentage=CashoutLoss;
  22. }
  23. BitMultiplier=1+(2/(CashoutPercentage/(100+LossCount*2)));
  24. BitsToBet*=BitMultiplier;
  25. CashoutPercentage-=(Math.random()*5)*LossCount;
  26. TotalLoss+=BitsToBet;
  27. LossCount++;
  28.  
  29. } else {
  30. CashoutPercentage=CashoutWin;
  31. BitsToBet=BitBaseBetWin;
  32. BitBaseBetLoss=engine.getBalance()/300000;
  33. LossCount=0;
  34. TotalLoss=0;
  35. }
  36. TotalLoss+=BitsToBet;
  37. console.log(' ');
  38. console.log('CashOut: ', CashoutPercentage);
  39. console.log('BitsToBet: ', BitsToBet);
  40. console.log('%cTotal Loss: ' + Math.floor(TotalLoss), 'color: red');
  41. console.log('%cLoss Count: '+ LossCount, 'color: purple; font-size:' + LossCount*1.5);
  42. console.log('Bit Multipler: ', BitMultiplier);
  43. engine.placeBet(Math.floor(BitsToBet)*100 ,Math.floor(CashoutPercentage));
  44. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement