Run from a new project folder:
curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/node-starter.sh | sh
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: "" }, | |
} |
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); | |
}); | |
} |
/******** 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 |
/* ---- SETTINGS ---- */ | |
const baseBet = 100; | |
const basePayout = 1.5; | |
const baseMulti = 1.5; | |
const postBet = 2; | |
const maxProfit = 100000; | |
/* ----------------- */ | |
let currBet = baseBet, startBal = this.balance; | |
let postBal = startBal, prevBal = startBal; | |
let maxBet = baseBet * Math.pow(baseMulti, 5); |
// V1 Original | |
/*const generateClientSeed = () => { | |
let text = ""; | |
const possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
for (let i = 0; i < 16; i++) text += possible.charAt(Math.floor(Math.random() * possible.length)); | |
return text; | |
}*/ | |
// V2 | |
const generateClientSeed = (wordNum = 3, wordLen = 12, noNumeric, noRepeat, noReuse, a, b) => { |
/******** SETTINGS ********/ | |
const BET_SPEED = 30 // time between bets in (ex 500 = 500ms = 0.5s) | |
const RETRIES = 5 // stops script after consecutive attempts. | |
/**************************/ | |
const baseBet = 100, target = 1.3, betMultiplier = 8.6 | |
const startBal = this.balance | |
const maxBet = (startBal > 70000 ? startBal > 5400000 ? 6000 : 700 : 80) * 100 | |
let retryCount = 0; | |
let lossCount = 0 |
const baseBet = 100; | |
const basePayout = 1.2; | |
const baseMulti = 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(currentBet, basePayout) |
await (async t => { | |
let a, i, n = (t, a = 2) => ((t + a) / a - a) / a, s = 100, c = n(t), e = n(n(t)); | |
const o = async t => (a = i && i.multiplier < e ? i.value * c : s, i = await this.bet(Math.round(a / s) * s, e)); | |
for (;;) await o().then(t => setTimeout(o, s)) | |
})(28.72); |