Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = {
- header1: { type: 'noop', label: '-- First Values Below --' },
- firstbaseBet: { value: 10000, type: 'balance', label: 'First Base Bet' },
- firstcrashTarget: { value: 2, type: 'multiplier', label: 'First Cash Out' },
- firstmultiOnloss: { value: 2, type: 'multiplier', label: 'First Increase Bet on Loss' },
- firstplayafterXgames: { value: 2, type: 'multiplier', label: 'First Play after games under Xgames Multiplier' },
- firstunderXgames: { value: 2, type: 'multiplier', label: 'First Xgames Multiplier' },
- header2: { type: 'noop', label: '-- Second Values Below --' },
- secondbaseBet: { value: 5000, type: 'balance', label: 'Second Base Bet' },
- secondcrashTarget: { value: 5, type: 'multiplier', label: 'Second Cash Out' },
- secondmultiOnloss: { value: 1.3, type: 'multiplier', label: 'Second Increase Bet on Loss' },
- secondplayafterXgames: { value: 5, type: 'multiplier', label: 'Second Play after games under Xgames Multiplier' },
- secondunderXgames: { value: 5, type: 'multiplier', label: 'Second Xgames Multiplier' },
- header3: { type: 'noop', label: '-- Third Values Below --' },
- thirdbaseBet: { value: 2500, type: 'balance', label: 'Third Base Bet' },
- thirdcrashTarget: { value: 10, type: 'multiplier', label: 'Third Cash Out' },
- thirdmultiOnloss: { value: 1.11, type: 'multiplier', label: 'Third Increase Bet on Loss' },
- thirdplayafterXgames: { value: 10, type: 'multiplier', label: 'Third Play after games under Xgames Multiplier' },
- thirdunderXgames: { value: 10, type: 'multiplier', label: 'Third Xgames Multiplier' },
- header4: { type: 'noop', label: '-- Fourth Values Below --' },
- fourthbaseBet: { value: 1000, type: 'balance', label: 'Fourth Base Bet' },
- fourthcrashTarget: { value: 20, type: 'multiplier', label: 'Fourth Cash Out' },
- fourthmultiOnloss: { value: 1.05, type: 'multiplier', label: 'Fourth Increase Bet on Loss' },
- fourthplayafterXgames: { value: 20, type: 'multiplier', label: 'Fourth Play after games under Xgames Multiplier' },
- fourthunderXgames: { value: 20, type: 'multiplier', label: 'Fourth Xgames Multiplier' },
- header5: { type: 'noop', label: '-- Fifth Values Below --' },
- fifthbaseBet: { value: 500, type: 'balance', label: 'Fifth Base Bet' },
- fifthcrashTarget: { value: 50, type: 'multiplier', label: 'Fifth Cash Out' },
- fifthmultiOnloss: { value: 1.022, type: 'multiplier', label: 'Fifth Increase Bet on Loss' },
- fifthplayafterXgames: { value: 50, type: 'multiplier', label: 'Fifth Play after games under Xgames Multiplier' },
- fifthunderXgames: { value: 50, type: 'multiplier', label: 'Fifth Xgames Multiplier' },
- };
- log('Script is running...');
- //Game Variables
- let firstcurrentBet = config.firstbaseBet.value;
- let secondcurrentBet = config.secondbaseBet.value;
- let thirdcurrentBet = config.thirdbaseBet.value;
- let fourthcurrentBet = config.fourthbaseBet.value;
- let fifthcurrentBet = config.fifthbaseBet.value;
- let firstXgames = 0;
- let secondXgames = 0;
- let thirdXgames = 0;
- let fourthXgames = 0;
- let fifthXgames = 0;
- let beginfirst;
- let beginsecond;
- let beginthird;
- let beginfourth;
- let beginfifth;
- //Events to follow
- engine.on('GAME_STARTING', ongamestart);
- engine.on('GAME_ENDED', ongameend);
- //Game Starting Event
- function ongamestart() {
- if (beginfirst) {
- engine.bet(roundBit(firstcurrentBet), config.firstcrashTarget.value);
- log("Now betting: " + firstcurrentBet);
- beginsecond = false;
- beginthird = false;
- beginfourth = false;
- beginfifth = false;
- } else if (beginsecond) {
- engine.bet(roundBit(secondcurrentBet), config.secondcrashTarget.value);
- log("Now betting: " + secondcurrentBet);
- beginfirst = false;
- beginthird = false;
- beginfourth = false;
- beginfifth = false;
- } else if (beginthird) {
- engine.bet(roundBit(thirdcurrentBet), config.thirdcrashTarget.value);
- log("Now betting: " + thirdcurrentBet);
- beginsecond = false;
- beginfirst = false;
- beginfourth = false;
- beginfifth = false;
- } else if (beginfourth) {
- engine.bet(roundBit(fourthcurrentBet), config.fourthcrashTarget.value);
- log("Now betting: " + fourthcurrentBet);
- beginsecond = false;
- beginthird = false;
- beginfirst = false;
- beginfifth = false;
- } else if (beginfifth) {
- engine.bet(roundBit(fifthcurrentBet), config.fifthcrashTarget.value);
- log("Now betting: " + fifthcurrentBet);
- beginsecond = false;
- beginthird = false;
- beginfourth = false;
- beginfirst = false;
- } else {
- return;
- }
- }
- //Game Ending Event
- function ongameend() {
- var lastGame = engine.history.first()
- /////////////////////////////////
- // Xgames counter
- if (lastGame.bust < config.firstunderXgames.value) {
- firstXgames++;
- } else {
- firstXgames = 0;
- beginfirst = false;
- }
- // Xgames counter
- if (lastGame.bust < config.secondunderXgames.value) {
- secondXgames++;
- } else {
- secondXgames = 0;
- beginsecond = false;
- }
- // Xgames counter
- if (lastGame.bust < config.thirdunderXgames.value) {
- thirdXgames++;
- } else {
- thirdXgames = 0;
- beginthird = false;
- }
- // Xgames counter
- if (lastGame.bust < config.fourthunderXgames.value) {
- fourthXgames++;
- } else {
- fourthXgames = 0;
- beginfourth = false;
- }
- // Xgames counter
- if (lastGame.bust < config.fifthunderXgames.value) {
- fifthXgames++;
- } else {
- fifthXgames = 0;
- beginfifth = false;
- }
- ////////////////////////////////
- if (firstXgames >= config.firstplayafterXgames.value) {
- log('First X Games target of', config.firstplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
- if (beginsecond === false && beginthird === false && beginfourth === false && beginfifth === false) {
- beginfirst = true;
- } else {
- beginfirst = false;
- }
- } else {
- beginfirst = false;
- log('First X Games count', firstXgames);
- beginfirst = false;
- }
- if (secondXgames >= config.secondplayafterXgames.value) {
- log('Second X Games target of', config.secondplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
- if (beginfirst === false && beginthird === false && beginfourth === false && beginfifth === false) {
- beginsecond = true;
- } else {
- beginsecond = false;
- }
- } else {
- beginsecond = false;
- log('Second X Games count', secondXgames);
- beginsecond = false;
- }
- if (thirdXgames >= config.thirdplayafterXgames.value) {
- log('Third X Games target of', config.thirdplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
- if (beginsecond === false && beginfirst === false && beginfourth === false && beginfifth === false) {
- beginthird = true;
- } else {
- beginthird = false;
- }
- } else {
- beginthird = false;
- log('Third X Games count', thirdXgames);
- beginthird = false;
- }
- if (fourthXgames >= config.fourthplayafterXgames.value) {
- log('Fourth X Games target of', config.fourthplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
- if (beginsecond === false && beginthird === false && beginfirst === false && beginfifth === false) {
- beginfourth = true;
- } else {
- beginfourth = false;
- }
- } else {
- beginfourth = false;
- log('Fourth X Games count', fourthXgames);
- beginfourth = false;
- }
- if (fifthXgames >= config.fifthplayafterXgames.value) {
- log('Fifth X Games target of', config.fifthplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
- if (beginsecond === false && beginthird === false && beginfourth === false && beginfirst === false) {
- beginfifth = true;
- } else {
- beginfifth = false;
- }
- } else {
- beginfifth = false;
- log('Fifth X Games count', fifthXgames);
- beginfifth = false;
- }
- ////////////////////////////
- if (beginfirst === true) {
- // Did we bet last round?
- if (lastGame.wager) {
- //We Won
- if (lastGame.cashedAt) {
- beginfirst = false;
- firstcurrentBet = config.firstbaseBet.value;
- } else {
- firstcurrentBet *= config.firstmultiOnloss.value;
- beginfirst = true;
- }
- } else {
- return;
- }
- } else if (beginsecond === true) {
- ///////////////////////////////////////////////////
- // Did we bet last round?
- if (lastGame.wager) {
- //We Won
- if (lastGame.cashedAt) {
- beginsecond = false;
- secondcurrentBet = config.secondbaseBet.value;
- } else {
- secondcurrentBet *= config.secondmultiOnloss.value;
- beginsecond = true;
- }
- } else {
- return;
- }
- } else if (beginthird === true) {
- /////////////////////////////////////////////////////////
- // Did we bet last round?
- if (lastGame.wager) {
- //We Won
- if (lastGame.cashedAt) {
- beginthird = false;
- thirdcurrentBet = config.thirdbaseBet.value;
- } else {
- thirdcurrentBet *= config.thirdmultiOnloss.value;
- beginthird = true;
- }
- } else {
- return;
- }
- } else if (beginfourth === true) {
- ///////////////////////////////////////////////
- // Did we bet last round?
- if (lastGame.wager) {
- //We Won
- if (lastGame.cashedAt) {
- beginfourth = false;
- fourthcurrentBet = config.fourthbaseBet.value;
- } else {
- fourthcurrentBet *= config.fourthmultiOnloss.value;
- beginfourth = true;
- }
- } else {
- return;
- }
- } else if (beginfifth) {
- ///////////////////////////////////////////////////////
- // Did we bet last round?
- if (lastGame.wager) {
- //We Won
- if (lastGame.cashedAt) {
- beginfifth = false;
- fifthcurrentBet = config.fifthbaseBet.value;
- } else {
- fifthcurrentBet *= config.fifthmultiOnloss.value;
- beginfifth = true;
- }
- } else {
- return;
- }
- }
- }
- //Math Rounding Function
- function roundBit(bet) {
- return Math.round(bet / 100) * 100;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement