Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Settings
- var BaseBet = 1; //Default: 20 This is the base bet. All formulas are controlled by this
- var CurrentBet = BaseBet;
- var MaxBet = 75; // Default: 250 This is the maximum amount that the bot will bet
- var BaseMultiplier = 1000; //Default: 250 This is the multiplier *100 that the formulas use
- var CurrentMultiplier = BaseMultiplier;
- //Do NOT change anything below this line.
- var CurrentGameID = 0;
- var LastResult = "Lost";
- var ConLoss = 1;
- var GamesPlayed = 0;
- var AvgCashOut = 2;
- var PrevCashOut = 2;
- var TotalCashOut = 0;
- var StartBalance = engine.getBalance();
- var CurrBalance = engine.getBalance();
- var Profit = 0;
- var PrevCashOut = 2;
- var RaisingBet1k = 400;
- var RaisedBet = 0;
- var LastResult = "WON";
- //Status & Welcome Message
- console.clear();
- console.log("~~~~~~ Nubs27's BustaBit NYAN Chaser ~~~~~~");
- console.log("My username is: " + engine.getUsername());
- console.log("Starting balance: " + (engine.getBalance() / 100) + " bits");
- console.log(" ~~~~~~ BustaBit Bot Started ~~~~~~");
- //Current Game
- engine.on('game_starting', function(info) {
- CurrentGameID = info.game_id;
- CurrBalance = engine.getBalance();
- console.log('---------------------');
- console.log('[Info] Game #' + CurrentGameID);
- console.log('[Stats] Average Crash ' + AvgCashOut + 'x');
- console.log('[Stats] Current Session Profit ' + Profit + ' Bits');
- strategy1k();
- placebet();
- }
- );
- //Strategy
- function strategy1k() {
- BaseBet = 1;
- if (ConLoss > RaisingBet1k) {
- ConLoss = 0;
- RaisedBet++;
- CurrentBet++;
- RaisingBet1k = (RaisingBet1k - 100);
- }
- if (ConLoss > 2800) {
- CurrentBet = (CurrentBet + 2);
- }
- }
- function placebet() {
- CurrentGameID = CurrentGameID.toString();
- if (CurrentGameID.endsWith('3')) {
- CurrentBet = (CurrentBet * 2);
- }
- if (CurrentBet > MaxBet) {
- CurrentBet = MaxBet;
- console.log('[Warning] Current Bet EXCEEDS maximum bet, reducing bet to' + MaxBet);
- }
- CurrentBet = Math.round(CurrentBet);
- engine.placeBet(Math.ceil(CurrentBet * 100), Math.ceil(CurrentMultiplier * 100), false);
- console.log('[BustaBot] Betting ' + (CurrentBet) + ' Bits at ' + CurrentMultiplier + 'x');
- if (CurrentGameID.endsWith('3')) {
- CurrentBet = (CurrentBet / 2);
- }
- }
- //Game Ends
- engine.on('game_crash', function(data) {
- GamesPlayed++;
- TotalCashOut += data.game_crash;
- AvgCashOut = ((TotalCashOut / GamesPlayed) / 100);
- AvgCashOut = AvgCashOut.toFixed(2);
- PrevCashOut = (data.game_crash / 100);
- CurrBalance = engine.getBalance();
- Profit = ((CurrBalance - StartBalance) / 100);
- console.log('[Stats] Game Crashed @ '+ PrevCashOut + 'x');
- console.log('[Info] ' + (RaisingBet1k - ConLoss) + ' Games until bet is raised');
- if (PrevCashOut > BaseMultiplier) {
- LastResult = "WON";
- ConLoss = 0;
- CurrentBet = BaseBet;
- CurrentMultiplier = BaseMultiplier;
- }else{
- LastResult = "LOST";
- ConLoss++;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement