Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = {
- msg: { type: 'noop', label: '-- Created By SellingScripts --' },
- baseBet: { value: 10000, type: 'balance', label: 'Base Bet' },
- crashTarget: { value: 5, type: 'multiplier', label: 'Cash Out' },
- multiOnloss: { value: 1.3, type: 'multiplier', label: 'Increase on Loss - First Cash Out' },
- playafterXgames: { value: 10, type: 'multiplier', label: 'Only Play After X Games' },
- underXgames: { value: 5, type: 'multiplier', label: 'Only Play After X Games UNDER this multiplier' },
- maxLosestreak1: { value: 15, type: 'text', label: 'Number of LOSSES Before Pausing' },
- maxSkipAfterGreen1: { value: 5, type: 'text', label: 'Number of GREENS Before Resuming' },
- secondCrashTarget: { value: 10, type: 'multiplier', label: 'New Cash Out After Resuming' },
- secondMultiOnLoss1: { value: 1.15, type: 'text', label: 'Increase on Loss - Second Cash Out' },
- stoploss: { value: 20000, type: 'text', label: 'Stop Loss if Bet is GREATER than' },
- stopprofit: { value: 100000, type: 'text', label: 'Stop Profit if Balance is GREATER than' },
- };
- log('Script is running..');
- log('Welcome! Your balance is ' + userInfo.balance / 100 + ' bits!');
- log('Good Luck =)');
- var stoploss = parseFloat(config.stoploss.value);
- var stopprofit = parseFloat(config.stopprofit.value);
- var maxLosestreak = parseFloat(config.maxLosestreak1.value);
- var maxSkipAfterGreen = parseFloat(config.maxSkipAfterGreen1.value);
- var secondMultiOnLoss = parseFloat(config.secondMultiOnLoss1.value);
- var lastBet;
- var losestreak = 0;
- var skipAfterGreen = 0;
- var roundCounter = 0;
- var isLosestreak = false;
- var isAfterGreen = false;
- var currentBet = 0;
- var Xgames = 0;
- //Events to follow
- engine.on('GAME_STARTING', ongamestart);
- engine.on('GAME_ENDED', ongameend);
- //Game Starting Event
- function ongamestart() {
- if (currentBet/100 > stoploss) {
- stop("Stop Loss has been reached.");
- }
- if (userInfo.balance/100 > stopprofit) {
- stop("Max Profit has been reached.");
- }
- if (isAfterGreen) {
- engine.bet(roundBit(currentBet), config.secondCrashTarget.value);
- skipAfterGreen = 0;
- log("Betting: " + roundBit(currentBet) / 100 + " bits for " + config.secondCrashTarget.value + "x");
- } else {
- engine.bet(roundBit(currentBet), config.crashTarget.value);
- log("Betting: " + roundBit(currentBet) / 100 + " bits for " + config.crashTarget.value + "x");
- }
- }
- //Game Ending Event
- function ongameend() {
- var lastGame = engine.history.first()
- // Xgames counter
- if (lastGame.bust < config.underXgames.value) {
- Xgames++;
- } else {
- Xgames = 0;
- }
- // Did we bet last round?
- if (lastGame.wager) {
- //We Won
- if (lastGame.cashedAt) {
- currentBet = 0;
- lastBet = 0;
- isAfterGreen = false;
- losestreak = 0;
- log("We won, cashed at: " + lastGame.cashedAt + "x");
- Xgames = 0;
- } else {
- losestreak++;
- log("We lost!");
- if (losestreak >= maxLosestreak) {
- if (isLosestreak === false && isAfterGreen === true) {
- lastBet = currentBet * secondMultiOnLoss;
- } else if (isLosestreak === false) {
- lastBet = currentBet * config.multiOnloss.value;
- }
- currentBet = 0;
- isLosestreak = true;
- log("We will pause. Maximum of " + maxLosestreak + " losses reached.");
- } else {
- if (isAfterGreen) {
- currentBet *= secondMultiOnLoss;
- isLosestreak = false;
- log('We lost. Betting', roundBit(currentBet) / 100, 'next round');
- } else {
- currentBet *= config.multiOnloss.value;
- isLosestreak = false;
- log('We lost. Betting', roundBit(currentBet) / 100, 'next round');
- }
- }
- }
- } else {
- if (isLosestreak === true && roundCounter !== 0) {
- if (lastGame.bust >= 2) {
- skipAfterGreen++;
- losestreak = 0;
- isAfterGreen = false;
- log('The red streak ended, waiting for ' + maxSkipAfterGreen + ' greens before betting. ' + skipAfterGreen);
- if (skipAfterGreen >= maxSkipAfterGreen) {
- currentBet = lastBet;
- losestreak = 0;
- isAfterGreen = true;
- isLosestreak = false;
- log("We will resume. There has been " + maxSkipAfterGreen + " greens.");
- }
- }
- } else {
- if (Xgames >= config.playafterXgames.value) {
- currentBet = config.baseBet.value;
- log('X Games target of', config.playafterXgames.value, 'has been met. Next round we will bet. ');
- isAfterGreen = false;
- losestreak = 0;
- } else {
- currentBet = 0;
- log('X Games count', Xgames);
- losestreak = 0;
- }
- }
- }
- roundCounter++;
- }
- //Math Rounding Function
- function roundBit(bet) {
- return Math.round(bet / 100) * 100;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement