Skip to content

Instantly share code, notes, and snippets.

@dsetzer
dsetzer / diceCheck.js
Last active August 18, 2019 04:10
Method for detecting which game the script is run on.
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');
@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: "" },
}
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);
});
}

Node Starter

Get Started

Run from a new project folder:

curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/node-starter.sh | sh
@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
/* ---- 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 / 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) => {
@dsetzer
dsetzer / 1_3x-8_6m.js
Created February 25, 2019 18:16
bustadice script - designed for use with at least 54,000 bits balance. Below this prevents it from fully recovering losses
/******** 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
@dsetzer
dsetzer / flat-v1.js
Last active August 18, 2019 04:11
bustadice flat betting script
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)
@dsetzer
dsetzer / climb.js
Last active August 18, 2019 04:11
bustadice - low bal climb
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);