Skip to content

Instantly share code, notes, and snippets.

@dsetzer
dsetzer / daffie-async-2.2.js
Last active August 18, 2019 04:11
bustadice fastbet chase script
/******** SETTINGS ********/
const BASE_WAGER = 50; // Initial lowest possible bet to start with. (Satoshis)
const BASE_TARGET = 200.00; // Target payout to chase for. (Actual payout format 2.00x = 2.00)
const AUTO_MULTIPLE = false; // Auto calculate and override BET_MULTIPLE for BASE_TARGET.
const BET_MULTIPLE = 1.005; // Multiply bet by this value (1 = no increase) after each loss.
const BET_INCREASE = 0; // Increase bet by this flat amount after each loss. (Satoshis)
const MAX_WAGER = 500 // Prevents script from placing bets larger than this amount.(Bits)
const STOP_ON_MAX = true; // Stop The script when MAX_WAGER is reached.
const RESET_ON_MAX = false; // Returns to base bet when MAX_WAGER is reached,
@dsetzer
dsetzer / daffie-async-v2.3.js
Last active September 7, 2020 12:39
bustadice fastbet chase script
/******** SETTINGS ********/
const BASE_WAGER = 100; // Initial lowest possible bet to start with. (Satoshis)
const BASE_TARGET = 200; // Target payout to chase for. (Actual payout format 2.00x = 2.00)
const AUTO_MULTIPLE = false; // Auto calculate and override BET_MULTIPLE for BASE_TARGET.
const BET_MULTIPLE = 1.005; // Multiply bet by this value (1 = no increase) after each loss.
const BET_INCREASE = 0.1; // Increase bet by this flat amount after each loss. (Satoshis)
const TAR_MULTIPLE = 1; // Multiply target by this value (1 = no increase) on each loss.
const TAR_INCREASE = 0; // Increase target by this flat amount after each loss.
const MAX_WAGER = 5000 // Prevents script from placing bets larger than this amount.(Bits)
let betCount = 0, totalOut = 0, totalIn = 0;
let queue = new Array(200);
const doResult = async function (context, result) {
totalIn++;
console.log(`Current Bets ${totalIn} IN / ${totalOut} OUT / ${betCount} TOTAL`);
}
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
@dsetzer
dsetzer / Array.prototypes.js
Last active September 25, 2022 05:15
A set of Array utils which I use (It should be noted that some are dependent on others)
// Calculates the sum of the items in the array.
// The sum is the result of adding all the items together.
Array.prototype.sum = function(){
return this.reduce((a, b) => a + b);
}
// Checks whether the specified item is present in the array.
Array.prototype.contains = function (item) {
return this.find(x => x === item) !== undefined;
}
var baseBet = 0.8 * 100 // how many satoshis to bet initially
var target = 5.4 // target multiplier
var betMultiplier = 1.2 // what to multiply the bet size by when we lose a wager
const MAX_BET = 10000 * 100 // maximum bet amount to stop script at (satoshis)
const MAX_GAMES = 2000 // maximum number of games to play before stopping (set to -1 for unlimited)
const BET_SPEED = 16 // time between bets in (ex 500 = 500ms = 0.5s)
const CLIENT_SEED = "fortuna"
let running = true
try {
@dsetzer
dsetzer / VIP-COMBI.js
Last active October 30, 2020 21:38
bustadice script dedicated to ruzli as a joke, but yes it is fully functional and playable (and just as safe as ruzli's =)
let baseBet = 13 * 100; //13 // how many satoshis to bet
let target = 1.6; // target multiplier
let betMultiplier = 3.6; // what to multiply the bet by when we lose a wager
let targetMultiplier = 1;
const MAX_BET = 2500 * 100; // maximum bet amount to stop script at (satoshis)
const MAX_GAMES = -1; // max games before stopping (set to -1 for unlimited)
const BET_SPEED = 30; // time between bets in (ex 500 = 500ms = 0.5s)
const skipGames = async (num, untilMulti, reqMulti) => {
@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);
@dsetzer
dsetzer / bab-streak-log.js
Last active August 18, 2019 04:11
bustabit streak logger
var config = {
target: { value: 2, type: 'multiplier', label: 'Target Payout' },
streak: { value: 4, type: 'multiplier', label: 'Min Length' }
};
const history = engine.getState().history;
const busts = [], streaks = [];
let currentStart = null, currentStreak = 0;
for (let i = 0; i < history.length; i++) {
let item = [history[i].gameId, null, history[i].bust];
updateStreaks(item);
@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 / 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