Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. var config = {
  2. baseBet: { value: '1000', type: 'balance', label: 'Base Bet'},
  3. minBet: { value: '1000', type: 'balance', label: 'Min Bet'},
  4. maxBet: { value: '10000', type: 'balance', label: 'Max Bet'},
  5. protectBal: { value: '20000', type: 'balance', label: 'Protect Balance'},
  6. };
  7.  
  8. var baseBet = config.baseBet.value;
  9. var baseMultiplier = 2;
  10.  
  11. var minBet = config.minBet.value;
  12. var maxBet = config.maxBet.value;
  13. var protectBal = config.protectBal.value;
  14.  
  15.  
  16. // DO NOT CHANGE
  17. var currentBet = baseBet;
  18. var currentMultiplier = baseMultiplier;
  19. var currentMinBet = minBet;
  20. var currentMaxBet = maxBet;
  21.  
  22. // LOCKERS
  23. var betUnlock = true;
  24. var recoveryOn = false;
  25. var OktoGo = true;
  26.  
  27. var putBet = currentBet;
  28. var putMultiplier = currentMultiplier;
  29.  
  30. engine.on('GAME_STARTING', function() {
  31.  
  32. if (userInfo.balance < protectBal) {
  33. stop('Script was Stopped due to balance is protected. balance is '+ userInfo.balance);
  34. }
  35. if (putBet >= currentMaxBet) {
  36. stop('Script was Stopped due to the bet size exceeded maximum allowed bet size');
  37. }
  38. if (putBet < currentMinBet) {
  39. stop('Script was Stopped due to the bet size is lower than allowed minimum bet size');
  40. }
  41.  
  42. if (OktoGo && betUnlock){
  43. engine.bet(parseInt(putBet), parseFloat(putMultiplier));
  44. log('You are ready to play! ');
  45. log('A bet will be placed:- Bet Size: '+ putBet/100 +' Multiplier: '+ putMultiplier);
  46. }
  47.  
  48. });
  49.  
  50. engine.on('GAME_STARTED', function() {
  51. if (engine.getCurrentBet()){
  52. var cbet = engine.getCurrentBet();
  53. log('Game Started with '+ (cbet.wager/100) + ' * ' + cbet.payout+ 'x');
  54. } else {
  55. log('A bet did not placed!');
  56. }
  57. });
  58.  
  59.  
  60. engine.on('GAME_ENDED', function() {
  61.  
  62. var lastGame = engine.history.first();
  63.  
  64. log('Game crashed at '+ lastGame.bust);
  65.  
  66. log('Last Game wagered at '+ (lastGame.wager)/100);
  67.  
  68. if (lastGame.wager > 0){
  69. if (lastGame.cashedAt){
  70. putBet = currentBet;
  71. recoveryOn = false;
  72. betUnlock = true;
  73. log('You Won the Last Game');
  74. } else {
  75. recoveryOn = true;
  76. log('You Lost the Last Game. Recovery Mode is Activated');
  77. }
  78. }
  79. if (recoveryOn && (lastGame.wager > 0) && lastGame.cashedAt == false){
  80. putBet *= 2;
  81. betUnlock = false;
  82. log('You are about to skip next game.');
  83. } else{
  84. betUnlock = true;
  85. log('Recovery Mode is Deactivated');
  86. }
  87. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement