Last active
July 5, 2021 21:14
-
-
Save nidorx/e9212bd15187b5b2d8bd5def97e074d4 to your computer and use it in GitHub Desktop.
https://csgoempire.com betting strategy (Roulette). No profit guarantee.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* https://csgoempire.com betting strategy (Roulette) | |
* | |
* Bet on the bonus (dice) after he has gone for some period without showing up. | |
* | |
* Adjust the configs and paste the script into the browser console (F12) (https://balsamiq.com/support/faqs/browserconsole/) | |
* | |
* ATTENTION! No profit guarantee. | |
* | |
* @author nidorx <https://github.com/nidorx> | |
*/ | |
(function () { | |
if (window.__is_bet_bot_bonus_running) { | |
throw 'There is already an instance of the bot running, refresh the page and run again'; | |
} | |
window.__is_bet_bot_bonus_running = true; | |
//-- CONFIG ---------------- | |
// After the bonus does not appear for N rounds, start betting on the bonus | |
var startBet = 10; | |
// Maximum number of consecutive bets. If you lose, stop betting until the next bonus appears | |
// From 14, regardless of winning, the result is negative | |
var maxBetCons = 20; | |
// Increases the bet amount when it has the equivalent of Nx the bet amount | |
var betIncLevel = 24; | |
//-------------------------- | |
//-- internal variables | |
var erro = false; // Stop running on first error | |
var betsCons = 0; // Consecutive bets placed | |
var lastDice = 0; // Last time the bonus was drawn | |
var betSize = 0.0; // Current bet amount | |
var betTotal = 0.0; // Total bet in sequence | |
var betLastRound = false; // Did bet on the last round? | |
var betInput = document.querySelector('.bet-input__field input'); | |
if (!betInput) { throw 'betInput not found' } | |
var betBtn = document.querySelectorAll('.bet-btn')[1]; | |
if (!betBtn) { throw 'betBtn not found' } | |
var clearBtn = document.querySelectorAll('.bet-input__control')[0]; | |
if (!clearBtn) { throw 'clearBtn not found' } | |
var plus1Btn = document.querySelectorAll('.bet-input__control')[1]; | |
if (!plus1Btn) { throw 'plus1Btn not found' } | |
var previousRolls = document.querySelectorAll('.previous-rolls-item')[0].parentElement | |
if (!previousRolls) { throw 'previousRolls not found' } | |
new MutationObserver(function (mutations) { | |
mutations.forEach(function (mutation) { | |
if (erro) { | |
// on the first error it stops execution | |
return; | |
} | |
try { | |
var lastNode = mutation.addedNodes[0] | |
var msg = []; | |
if (lastNode) { | |
if (lastNode.children[0].classList.contains('coin-bonus')) { | |
if (betLastRound) { | |
msg.push('\n------------------------------------') | |
msg.push(' Jackpot! Winner winner chicken dinner!') | |
msg.push(' Prize amount: ' + (betSize * 14).toFixed(2)) | |
msg.push(' Total bet: ' + betTotal.toFixed(2)) | |
msg.push(' Consecutive bets: ' + betsCons) | |
msg.push('------------------------------------') | |
} | |
betsCons = 0; | |
lastDice = 0; | |
betTotal = 0.0; | |
} else { | |
lastDice++ | |
} | |
betLastRound = false; | |
msg.push('\n------------------------------------') | |
msg.push(' Last bonus: ' + lastDice) | |
if (lastDice > startBet) { | |
if (betsCons < maxBetCons) { | |
betSize = getBetSize() | |
msg.push(' Bet amount: ' + betSize) | |
setTimeout(() => { | |
clearBtn.click(); | |
for (i = Math.floor(betSize / 0.01); i > 0; i--) { | |
plus1Btn.click(); | |
} | |
setTimeout(() => { | |
betBtn.click(); | |
}, 2000) | |
}, 4000) | |
betsCons++; | |
betTotal = betTotal + betSize; | |
msg.push(' Total bet: ' + betTotal.toFixed(2)) | |
msg.push(' Consecutive bets: ' + betsCons) | |
betLastRound = true; | |
} else { | |
msg.push(' Give up!') | |
msg.push(' Total bet: ' + betTotal.toFixed(2)) | |
msg.push(' Consecutive bets: ' + betsCons) | |
} | |
} | |
msg.push('------------------------------------') | |
console.log(msg.join('\n')) | |
} | |
} catch (e) { | |
erro = true; | |
console.log(e) | |
} | |
}); | |
}).observe(previousRolls, { childList: true }) | |
// Calculate the bet amount | |
function getBetSize() { | |
var balance = Number.parseFloat(document.getElementsByClassName('balance')[0].textContent) | |
if (Number.isNaN(balance) || balance <= 0) { | |
throw 'Invalid balance' | |
} | |
var bet = 0.01; | |
var inc = 0.01; | |
var start = bet * betIncLevel; | |
var end; | |
while (true) { | |
end = start + (bet + inc) * betIncLevel; | |
if (balance < end) { | |
break; | |
} | |
start = end; | |
bet = bet + inc; | |
} | |
return bet | |
} | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment