Nando0508

Untitled

Apr 2nd, 2020
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. //**SETTINGS**\\
  2. var baseBet = 1000; //Put at 750 for safer basebet and lower increase on lose. Put 8500 in bail at with this basebet.
  3. var basecashout = 1.2; //Base Cashout Point (No Shit Captin Obvious)
  4. var IncreaseCashout = 0.10; //Safer Strategy: 0.05. Your cashout will increase by this increment on a loss.
  5. var MaxCashout = 2.00; //Safer Strategy: 1.50 or 1.60. Max Cashout Point. Your cashout point won't go higher than this amount.
  6. var safestreak = 2; //Safer Strategy: 3 or 4. This this the number of times you will have to win to recoup your loss on your current cashout point.
  7. var bailat = 200000; //Safer Strategy: 200000. The script will stop once you lose this amount.
  8.  
  9.  
  10.  
  11. //// ^EDIT OVER THIS LINE^ \\\\
  12. var currentBet = baseBet*100;
  13. var highscore = engine.getBalance();
  14. var neededwins = -1;
  15. var currentcashout = basecashout;
  16. var worst = 0;
  17. engine.on('game_starting', function(info) {
  18. currentcashout = Math.round(currentcashout*100);
  19. engine.placeBet(currentBet, currentcashout, false);
  20. currentcashout = currentcashout/100;
  21. console.log('Placed bet of', currentBet/100, 'at', currentcashout, 'x');
  22. })
  23. engine.on('game_crash', function(data) {
  24. console.log('Game crashed at', data.game_crash/100, 'x');
  25. if (highscore < engine.getBalance()){
  26. highscore = engine.getBalance();
  27. }
  28. var aim = highscore - engine.getBalance();
  29. if (data.game_crash < currentcashout*100) {
  30. neededwins = safestreak;
  31. currentcashout = currentcashout + IncreaseCashout;
  32. if (currentcashout > MaxCashout) {
  33. currentcashout = MaxCashout;
  34. }
  35. } else {
  36. neededwins = neededwins - 1;
  37. if (neededwins < 1) {
  38. neededwins = -1;
  39. currentcashout = basecashout;
  40. }
  41. }
  42. currentBet = 100 * Math.ceil(0.01 * aim / (neededwins*(currentcashout - 1)));
  43. if (currentBet < baseBet*100) {
  44. currentBet = baseBet*100;
  45. }
  46. if (currentBet > engine.getBalance() || aim > 100 * bailat) {
  47. console.log('You automatically bailed out.');
  48. engine.stop();
  49. }
  50. if (currentBet + aim > worst) {
  51. worst = currentBet + aim;
  52. console.log('You would need ' + worst/100 + ' bits to survive');
  53. }
  54. });
Advertisement
Add Comment
Please, Sign In to add comment