Advertisement
Guest User

Untitled

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