Skip to content

Instantly share code, notes, and snippets.

@dsetzer
dsetzer / seed-gen.js
Last active August 18, 2019 04:10
bustadice seed generator
// 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 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);
@dsetzer
dsetzer / 2_3x1_9m.js
Created February 25, 2019 22:19
bustadice script
/******** 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

Node Starter

Get Started

Run from a new project folder:

curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/node-starter.sh | sh
@dsetzer
dsetzer / default-martingale.js
Last active March 31, 2023 12:22
default martingale script from bustabit converted to bustadice.
const config = {
baseBet: { value: 100, type: 'balance', label: 'Base bet' },
payout: { value: 2, type: 'multiplier', label: 'Payout' },
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' }
}},
win: { value: 'base', type: 'radio', label: 'On Win', options: {
base: { type: 'noop', label: 'Return to base bet' },
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 target = ''; // User to follow. Bet amount and target is adjusted/taken from this players bets.
const baseBet = 100; // Initial bet to place when target player places a bet.
const betMulti = 2; // Multiplies bet by this after each loss.
const autoCashout = 20;// Automatically cashout here if target player has cashed yet.
const maxBet = 1e8; // Clamps the bet size maximum at this amount (doesn't stop the script, limits bet size only)
const minBalance = 0 // Prevents betting if next bet will drop balance below this amount.
const betDelay = 4;
//-------------------------
let locked = false;
@dsetzer
dsetzer / flat-v1.3.js
Last active November 15, 2019 22:14
bustadice script
var config = {
b: { type: 'balance', label: 'Base Bet', value: 50 },
t: { type: 'multiplier', label: 'Base Payout', value: 5 },
m: { type: 'multiplier', label: 'Bet Multi', value: 1.2 },
p: { type: 'number', label: 'Add Bets', value: 1 },
s: { type: 'number', label: 'Bet Speed', value: 100 }
};
const b = config.b.value, t = config.t.value, m = config.m.value;
const p = config.p.value, d = config.s.value;
const s = (t) => { return new Promise((r) => { setTimeout(r, t); }); }
@dsetzer
dsetzer / v2climb-bustabit.js
Last active November 17, 2021 22:37
climb v2 script for bustadice and 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)});
/* Climb V2 (bustabit) */
@dsetzer
dsetzer / Sandbox_script2_13.js
Created June 4, 2019 08:51
Sandbox_script ver2.13 by Ruzli #7111, If you liked my sandbox and want say big thanks, or want support my team, you can make donation to our team here - [1GUU7UZLAWUAA58bx9zuJiTM7eLGUoK6wi ] also join my discord server: https://discord.gg/5R2YvY
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: "" },
}