Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Bustabit script Made by Supatreynikova
- //please donate to: 3ExPJEktuXHsHtF7vYuK7H1SNaqY9LLzeE
- var config = {
- basebet: { value: 10000, type: 'balance', label: 'Base bet' },
- payout: { value: 1.33, type: 'multiplier' },
- increaseonloss: { value: 3.79, type: 'multiplier' ,label: 'Increase on Loss' },
- decreaseonwin: { value: 2.79, type: 'multiplier' ,label: 'Decrease on Win' },
- change: { value: 1.33, type: 'multiplier', label: 'Change payout to'},
- limit: { value: 88888888, type: 'number' , label: ' If current bet >'}
- };
- log('Script is running..');
- var currentbet = config.basebet.value;
- var currentPayout = config.payout.value;
- var onloss = config.increaseonloss.value;
- var onwin = config.decreaseonwin.value;
- var threshold = config.limit.value;
- threshold=threshold*100
- var startingBalance = userInfo.balance;
- var BR = userInfo.balance;
- var changepayout = config.change.value;
- var roundprofit = 0;
- var profit = 0;
- var rd = 0;
- engine.on('GAME_STARTING', onGameStarted);
- engine.on('GAME_ENDED', onGameEnded);
- function onGameStarted() {
- engine.bet(roundBit(currentbet), currentPayout);
- }
- function onGameEnded() {
- var lastGame = engine.history.first()
- var currentBalance=userInfo.balance;
- rd =(currentBalance- startingBalance)/100;
- roundprofit+=rd;
- startingBalance=currentBalance;
- profit = (currentBalance-BR)/100
- if(roundprofit>=0) roundprofit=0;
- // If we wagered, it means we played
- if (!lastGame.wager) {
- return;
- }
- // we won..
- if (lastGame.cashedAt) {
- if(roundprofit < 0){
- currentbet=Math.ceil(currentbet/onwin);
- if(currentbet > threshold){
- currentPayout=changepayout;
- log('-------------------------')
- log('WIN-Recovery mode, Currentbet*',onwin,'=',currentbet/100, 'bits | Profit:',profit,'bits | ',currentPayout,'x')
- }
- else{
- currentPayout=config.payout.value;
- log('-------------------------')
- log('WIN-Recovery mode, Currentbet*',onwin,'=',currentbet/100, 'bits | Profit:',profit,'bits | ',currentPayout,'x')
- }
- }
- else{
- currentbet=config.basebet.value;
- currentPayout=config.payout.value;
- log('-------------------------')
- log('WIN, Currentbet =',currentbet/100, 'bits | Profit:',profit,'bits | ',currentPayout,'x')
- }
- log('Round profit:', roundprofit,'bits')
- } else {
- currentbet=Math.round(currentbet*onloss);
- if(currentbet > threshold){
- currentPayout=changepayout;
- log('-------------------------')
- log('LOST, Currentbet*',onloss,'=',currentbet/100, 'bits | Profit:',profit,'bits | ',currentPayout,'x')
- } else{
- currentPayout=config.payout.value;
- log('-------------------------')
- log('LOST, Currentbet*',onloss,'=',currentbet/100, 'bits | Profit:',profit,'bits | ',currentPayout,'x')
- }
- log('Round profit:', roundprofit,'bits')
- }
- }
- function roundBit(bet) {
- return Math.round(bet / 100) * 100;
- }
Advertisement
Add Comment
Please, Sign In to add comment