Last active
January 21, 2021 21:22
-
-
Save ruzli/6961a4e233357df76bf64697829a73af to your computer and use it in GitHub Desktop.
Script on skips for bustadice [TWEAK]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = { | |
wager: { label: "Wager", type: "balance", value: 100 }, | |
max_pay: { label: "Max payout", type: "multiplier", value: 70 }, | |
min_pay: { label: "Min payout", type: "multiplier", value: 2 }, | |
max_loss: { label: "Max lose", type: "balance", value: -100000 }, | |
bets_prog: { label: "Progression betting", type: "checkbox", value: false }, | |
}; | |
let target = 1.01; | |
let turns = 0; | |
let profit = 0; | |
while (true) { | |
let { multiplier } = await this.skip() | |
if(multiplier > config.max_pay.value || multiplier < config.min_pay.value) { | |
if (profit < config.max_loss.value) await this.stop() | |
continue; | |
} | |
while(true) { | |
let bet_amount; | |
if (config.bets_prog.value){ | |
bet_amount = config.wager.value + (turns) * 100 | |
} else { | |
bet_amount = config.wager.value | |
} | |
let result = (await this.bet(bet_amount, multiplier+0.01))['multiplier']; | |
this.clearLog() | |
this.log(`Profit: ${Math.round(profit/100)}`) | |
if (profit < config.max_loss.value) await this.stop() | |
if(result < multiplier + 0.01 && turns+2 < multiplier) { | |
profit -=bet_amount | |
turns++; | |
} else { | |
profit += bet_amount * (multiplier + 0.01 - 1) | |
turns = 0; | |
break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey kay ap mujhe bc game ki koi script de sakte ho jisme loss na ho