Run from a new project folder:
curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/node-starter.sh | sh
const getBaseBetFromCurrent = (wager, multi, streak) => (wager / (multi ^ streak)); | |
const getBetSizeForStreak = (base, multi, streak) => (base * (multi ^ streak)); | |
const getStreakSizeFromBet = (base, wager, multi) => (Math.log(wager / base) / Math.log(multi)); | |
const getPrevBetFromLastBet = (wager, multi) => (wager / multi); | |
const getBetMultiFromPrevBet = (wager, prev) => (wager / prev); |
var config = { | |
baseBet: { type: 'balance', label: 'Base Bet', value: 100 }, | |
payout: { type: 'multiplier', label: 'Payout', value: 2 } | |
}; | |
const dcheck = () => { try{ engine.getState() }catch(e){ return true } return false } | |
const emitter = { | |
on(name, func){this._s[name] = this._s[name] || []; this._s[name].push(func)},_s:{}, | |
emit(name, ...args){if(!this._s[name]){return; } this._s[name].forEach(f=>f(...args))} | |
} | |
const dice = dcheck(); |
const dice = (()=>{try{engine.getState()}catch(e){return!0}return!1})(); | |
if (dice) console.log('This is bustadice'); | |
if (!dice) console.log('This is bustabit'); |
var config = { | |
//******************COMMON****************** */ | |
PASTE_CASE: { label: "Paste", type: "text", value: "Paste raw text [see F12]" }, | |
cb_globals: { | |
label: "Sandbox", type: "radio", value: "sandbox_mode", options: { | |
sandbox_mode: { label: "Sandbox Mode (if you set it to true will trigger below configuration to be used)", type: "noop", value: "" }, | |
SETUP: { label: "Configuration Launch Case", type: "number", value: 0 }, | |
merged: { label: "Run both in sandbox and configuration launch", type: "noop", value: "" }, | |
} |
/* Climb V2 (bustabit) */ | |
var config = { c: { label: 'Base Bet', type: 'balance', value: 500 } }; | |
let c = config.c.value, t = 1.1, b = 1.006, m = 1.005, a = c, d = t, h = 100; | |
engine.on('GAME_ENDED', () => { let r = engine.history.first(); (r.cashedAt) ? (c = a, t = d) : (t += m, c *= b) }); | |
engine.on('GAME_STARTING', () => { engine.bet(Math.round(c / h) * h, t)}); |
const baseBet = 50; | |
const basePayout = 5; | |
const baseMulti = 1.2; | |
const postBet = 1; | |
let currentBet = baseBet; | |
let startBal = this.balance; | |
let prevBal = this.balance; | |
while(true){ | |
prevBal = this.balance; | |
const { multiplier } = await this.bet(Math.max(100, Math.round(currentBet / 100) * 100), basePayout) |
var checkInterval = 10; | |
Window.prototype.targetLimiter = function (checkInterval) { | |
setImmediate(() => { | |
window.setInterval(() => { | |
if (window.document.getElementsByName('target')[0].value < 1.5) { | |
window.document.getElementsByName('target')[0].value = 1.5; | |
} | |
}, checkInterval); | |
}); | |
} |
var config = { | |
baseBet: { value: 100, type: 'balance', label: 'base bet' }, | |
payout: { value: 2, type: 'multiplier' }, | |
stop: { value: 1e8, type: 'balance', label: 'stop if bet >' }, | |
loss: { | |
value: 'increase', type: 'radio', label: 'On Loss', | |
options: { | |
base: { type: 'noop', label: 'Return to base bet' }, | |
increase: { value: 2, type: 'multiplier', label: 'Increase bet by' }, | |
} |
var config = { | |
settings: { label: "Script Settings", type: "noop" }, | |
wager: { label: "Base Wager", type: "balance", value: 100 }, | |
target: { label: "Base Target", type: "multiplier", value: 100 }, | |
targetMod: { label: "Target Loss", type: "multiplier", value: -1.0 }, | |
stoploss: { label: "Trailing-stop Amount", type: "balance", value: 50000 }, | |
liftmint: { label: "Each Min Target Increases", type: "checkbox", value: false }, | |
skipmode: { label: "Sim Mode", type: "checkbox", value: true }, | |
maxtstop: { label: "On Min Target", type: "radio", value: "reset", options: { | |
stop: { label: "stop script", type: "noop" }, |