Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = {
- baseBet: { value: '100', type: 'balance', label: 'Base Bet'},
- cusMultiplier: { value: '2', type: 'text', label: 'Custom Multiplier (Payout at)'},
- leapGames: { value: '10', type: 'text', label: 'Leap when Failure'},
- minBet: { value: '100', type: 'balance', label: 'Min Bet'},
- maxBet: { value: '1e8', type: 'balance', label: 'Max Bet'},
- protectBal: { value: '100000', type: 'balance', label: 'Protect Balance'},
- };
- // DO NOT CHANGE
- var baseBet = config.baseBet.value/100;
- var baseMultiplier = config.cusMultiplier.value;
- var skipGames = config.leapGames.value
- var minBet = config.minBet.value;
- var maxBet = config.maxBet.value;
- var protectBal = config.protectBal.value;
- var currentBet = baseBet;
- var currentMultiplier = baseMultiplier;
- var currentMinBet = minBet;
- var currentMaxBet = maxBet;
- // LOCKERS
- var betUnlock = false;
- var recoveryOn = false;
- var counter = 0;
- var putBet = currentBet;
- var rndBet;
- var putMultiplier = currentMultiplier;
- var OktoGo = true;
- var skipSize = baseMultiplier;
- var multiplyBy = 1+(1/(baseMultiplier-1));
- engine.on('GAME_STARTING', function() {
- if (userInfo.balance < protectBal) {
- stop('Script was Stopped due to balance is protected. balance is '+ userInfo.balance);
- }
- if (putBet >= currentMaxBet/100) {
- stop('Script was Stopped due to the bet size exceeded maximum allowed bet size');
- }
- if (putBet < currentMinBet/100) {
- stop('Script was Stopped due to the bet size is lower than allowed minimum bet size');
- }
- if (OktoGo && betUnlock){
- putBet = Math.round(putBet);
- engine.bet(parseInt(putBet*100), parseFloat(putMultiplier));
- log('You are ready to play! ');
- log('A bet will be placed:- Bet Size: '+ putBet +' Multiplier: '+ putMultiplier);
- }
- });
- engine.on('GAME_STARTED', function() {
- if (engine.getCurrentBet()){
- var cbet = engine.getCurrentBet();
- log('Game Started with '+ (cbet.wager/100) + ' * ' + cbet.payout+ 'x');
- } else {
- log('A bet did not placed!');
- }
- });
- engine.on('GAME_ENDED', function() {
- var lastGame = engine.history.first();
- log('Game crashed at '+ lastGame.bust);
- log('Last Game wagered at '+ (lastGame.wager)/100);
- if (!recoveryOn){
- if (lastGame.bust < skipSize) {
- counter++;
- betUnlock = false;
- log('Next '+ (skipGames-counter) + ' games will be skipped.');
- } else {
- counter = 0;
- log('Counter has been reset!');
- }
- if (counter >=skipGames){
- betUnlock = true;
- log('You are about to play next game');
- }
- }
- if (lastGame.wager > 0){
- if (lastGame.cashedAt){
- putBet = currentBet;
- counter = 0;
- recoveryOn = false;
- betUnlock = false;
- log('You Won the Last Game');
- } else {
- recoveryOn = true;
- log('You Lost the Last Game');
- }
- }
- if (recoveryOn){
- putBet = (putBet*multiplyBy) +baseBet ;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement