Skip to content

Instantly share code, notes, and snippets.

@XclusiveDigital
Last active October 25, 2022 03:30
Show Gist options
  • Save XclusiveDigital/f844f487eb280752fd48a6b97504901e to your computer and use it in GitHub Desktop.
Save XclusiveDigital/f844f487eb280752fd48a6b97504901e to your computer and use it in GitHub Desktop.
Raker Script - [Ether-Dice.io]
var config = {
bet: { label: 'Bet', type: 'balance', value: 1},
baseTarget: { label: 'Base target', type: 'multiplier', value: 2 }
}
var currentTarget = config.baseTarget.value
var bets = 0;
var IOs = 0;
var total, State, profit, loss, init, prev
var Rake = (currentTarget / 2)
var Stat = ''
var startingbet = config.bet.value
var startingtarget = config.baseTarget.value
var SESSION_PROFIT = 0
var profit = 0
init = currentTarget
var multiplier
var loss = 0
var prev = 0
engine.on('game_ready', () => {
console.log(`Session Profit: ${SESSION_PROFIT} | Overall Profit: ${profit}`)
engine.placeBet(config.bet.value, currentTarget).then(result => {
multiplier = result.crash
console.log(result.crash)
})
if (multiplier == undefined) {
config.bet.value = startingbet
}
console.log(multiplier, currentTarget)
if (multiplier < currentTarget) { // loss
bets += 1
State = 'Losses'
loss += (config.bet.value / 100)
prev += loss
profit -= config.bet.value
SESSION_PROFIT -= config.bet.value
if (bets == Rake) {
bets = 0
if (IOs == 1) {
increaseTarget(currentTarget)
IOs = 0
} else {
increaseBet(config.bet.value)
IOs = 1
}
}
} else { // win
prev = 0
profit += ((config.bet.value) * (currentTarget - 1))
SESSION_PROFIT += ((config.bet.value) * (currentTarget - 1))
if (SESSION_PROFIT > 0) { SESSION_PROFIT = 0 }
config.bet.value = startingbet
currentTarget = config.baseTarget.value
State = 'Win'
if (bets != config.baseTarget.value) {
bets = 0
}
}
Make()
Rake = (currentTarget / 2)
if ((prev > (200 * startingbet)) || ( SESSION_PROFIT <= (-200 * startingbet))) {
config.bet.value = startingbet
currentTarget = config.baseTarget.value
prev = 0
SESSION_PROFIT = 0
if (bets != config.baseTarget.value) {
bets = 0
}
console.clear()
}
})
function increaseBet (increase) {
config.bet.value += increase
}
function increaseTarget (increase) {
currentTarget += increase
currentTarget = Math.round(currentTarget * 100) / 100
}
function Make () {
// console.clear()
if (State != 'Win') { Stat = bets + ' ' + State } else { Stat = State }
console.log(Stat)
}
@ryanza
Copy link

ryanza commented Oct 23, 2022

how do you use this?

@Akira-Nakamoto
Copy link

Akira-Nakamoto commented Oct 25, 2022

how do you use this?

I am the author of the original script.
The logic is flawed, please don't use it.

I have asked him to remove this but he removes my comments. I'm about to resort to DMCA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment