Run from a new project folder:
curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/node-starter.sh | sh| /******** SETTINGS ********/ | |
| const BET_SPEED = 2000 // time between bets in (ex 500 = 500ms = 0.5s) | |
| const RETRIES = 5 // stops script after retrying this many times. | |
| /**************************/ | |
| const baseBet = 100, target = 2.3, betMultiplier = 1.9 | |
| const startBal = this.balance | |
| //const maxBet = (startBal > 70000 ? startBal > 5400000 ? 6000 : 700 : 80) * 100 | |
| const maxBet = 60 * 100; | |
| let retryCount = 0; | |
| let lossCount = 0 |
| 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" }, |
| 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 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); | |
| }); | |
| } |
| 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) |
| /* 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)}); |
| 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: "" }, | |
| } |
| 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 = { | |
| 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(); |