Advertisement
Guest User

Untitled

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