(25 October, 2023 - 03:11 PM)RedVibe Wrote: Show MorePLEASE LEAVE A LIKE FOR MORE UHQ THREADS
I really appreciate your support
Don't forget to check my profile, love you all!
// 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
// $$ GNU GPLv3 License $$ 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
var baseBet = 1; // 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
var baseMultiplier = 1.11; // 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
var variableBase = false;var streakSecurity = 25; var maximumBet = 999999;var baseSatoshi = baseBet * 100; // 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
var currentBet = baseSatoshi;// 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
var currentMultiplier = baseMultiplier; // 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$var currentGameID = -1;// 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
var firstGame = true;// 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
var lossStreak = 0;// 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
var coolingDown = false;// 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
// 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
console.log('====== 4lc4Traz Code Version 2.1 ======'); console.log('My username is: ' + engine.getUsername()); console.log('Starting balance: ' + (engine.getBalance() / 100).toFixed(2) + ' bits'); var startingBalance = engine.getBalance(); if (variableBase) { console.warn('[WARN] Variable mode is enabled and not fully tested. Bot is resillient to ' + streakSecurity + '-loss streaks.'); }
// 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
engine.on('game_starting', function(info) {
console.log('====== Won This Game ======');
console.log('[Bot] Game #' + info.game_id);
currentGameID = info.game_id; if (coolingDown) {
if (lossStreak == 0) { coolingDown = false; } else {
lossStreak--; console.log('[Bot] Cooling down! Games remaining: ' + lossStreak); return; } }
if (!firstGame) { // 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
console.log('[Stats] Session profit: ' + ((engine.getBalance() - startingBalance) / 100).toFixed(2) + ' bits');
console.log('[Stats] Profit percentage: ' + (((engine.getBalance() / startingBalance) - 1) * 100).toFixed(2) + '%'); }
if (engine.lastGamePlay() == 'LOST' && !firstGame) { // 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
lossStreak++; var totalLosses = 0;// 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
var lastLoss = currentBet;// 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
while (lastLoss >= baseSatoshi) { totalLosses += lastLoss;lastLoss /= 4;}
if (lossStreak > streakSecurity) { coolingDown = true; return; }
currentBet *= 2; // 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
currentMultiplier = 1.00 + (totalLosses / currentBet); }
else { lossStreak = 0; // 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
if (variableBase) { // 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
// 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
var divider = 100;for (i = 0; i < streakSecurity; i++) {
divider += (100 * Math.pow(4, (i + 1)));// 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
}
newBaseBet = Math.min(Math.max(1, Math.floor(engine.getBalance() / divider)), maximumBet * 100); newBaseSatoshi = newBaseBet * 100;// 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
if ((newBaseBet != baseBet) || (newBaseBet == 1)) { console.log('[Bot] Variable mode has changed base bet to: ' + newBaseBet + ' bits'); // 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
baseBet = newBaseBet;// 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
baseSatoshi = newBaseSatoshi;} }
// 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
currentBet = baseSatoshi;currentMultiplier = baseMultiplier; } console.log('[Bot] Betting ' + (currentBet / 100) + ' bits, cashing out at ' + currentMultiplier + 'x'); firstGame = false;if (currentBet <= engine.getBalance()) { if (currentBet > (maximumBet * 100)) { // Ensure you only bet the maximum.
console.warn('[Warn] Bet size exceeds maximum bet, lowering bet to ' + (maximumBet * 100) + ' bits'); currentBet = maximumBet; } engine.placeBet(currentBet, Math.round(currentMultiplier * 100), false);} else { // 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
if (engine.getBalance() < 100) {console.error('[Bot] Insufficent funds to do anything... stopping'); engine.stop(); }
else { console.warn('[Bot] Insufficent funds to bet ' + (currentBet / 100) + ' bits.'); // 4lc4Traz Code Version 2.1 $$ GNU GPLv3 License $$
console.warn('[Bot] Resetting to 1 bit basebet'); baseBet = 1; baseSatoshi = 100;} }
}); engine.on('game_started', function(data) {
if (!firstGame) { console.log('[Bot] Game #' + currentGameID + ' has started!'); }
});
engine.on('cashed_out', function(data) { if (data.username == engine.getUsername()) { console.log('[Bot] Successfully cashed out at ' + (data.stopped_at / 100) + 'x'); }
}); engine.on('game_crash', function(data) { if (!firstGame) { console.log('[Bot] Game crashed at ' + (data.game_crash / 100) + 'x'); } });