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;
- let secondcurrentBet;
- let thirdcurrentBet;
- let fourthcurrentBet;
- let fifthcurrentBet;
- 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(currentBet);
- } else if (beginsecond) {
- engine.bet(roundBit(secondcurrentBet), config.secondcrashTarget.value);
- } else if (beginthird) {
- engine.bet(roundBit(thirdcurrentBet), config.thirdcrashTarget.value);
- } else if (beginfourth) {
- engine.bet(roundBit(fourthcurrentBet), config.fourthcrashTarget.value);
- } else if (beginfifth) {
- engine.bet(roundBit(fifthcurrentBet), config.fifthcrashTarget.value);
- } else {
- return;
- }
- }
- //Game Ending Event
- function ongameend() {
- var lastGame = engine.history.first()
- // Xgames counter
- if (lastGame.bust < config.firstunderXgames.value) {
- firstXgames++;
- }else{
- firstXgames = 0;
- }
- // Did we bet last round?
- if (lastGame.wager){
- //We Won
- if(lastGame.cashedAt){
- firstcurrentBet = 0;
- }else{
- firstcurrentBet *= config.firstmultiOnloss.value;
- if (beginsecond === true || beginthird === true || beginfourth === true || beginfifth === true) {
- beginfirst = true;
- beginsecond = false;
- beginthird = false;
- beginfourth = false;
- beginfifth = false;
- } else {
- beginfirst = true;
- }
- }
- }else{
- //We Didn't Bet
- if(firstXgames >= config.firstplayafterXgames.value){
- firstcurrentBet = config.firstbaseBet.value;
- log (firstcurrentBet);
- log ( 'First X Games target of', config.firstplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
- beginfirst = true;
- }else{
- firstcurrentBet = 0;
- log ( 'First X Games count', firstXgames );
- beginfirst = false;
- }
- }
- ///////////////////////////////////////////////////
- // Xgames counter
- if (lastGame.bust < config.secondunderXgames.value) {
- secondXgames++;
- }else{
- secondXgames = 0;
- }
- // Did we bet last round?
- if (lastGame.wager){
- //We Won
- if(lastGame.cashedAt){
- secondcurrentBet = 0;
- }else{
- secondcurrentBet *= config.secondmultiOnloss.value;
- if (beginfirst === true || beginthird === true || beginfourth === true || beginfifth === true) {
- beginfirst = false;
- beginsecond = true;
- beginthird = false;
- beginfourth = false;
- beginfifth = false;
- } else {
- beginsecond = true;
- }
- }
- }else{
- //We Didn't Bet
- if( secondXgames >= config.secondplayafterXgames.value){
- secondcurrentBet = config.secondbaseBet.value;
- log ( 'Second X Games target of', config.secondplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
- beginsecond = true;
- }else{
- secondcurrentBet = 0;
- log ( 'Second X Games count', secondXgames );
- beginsecond = false;
- }
- }
- /////////////////////////////////////////////////////////
- // Xgames counter
- if (lastGame.bust < config.thirdunderXgames.value) {
- thirdXgames++;
- }else{
- thirdXgames = 0;
- }
- // Did we bet last round?
- if (lastGame.wager){
- //We Won
- if(lastGame.cashedAt){
- thirdcurrentBet = 0;
- }else{
- thirdcurrentBet *= config.thirdmultiOnloss.value;
- if (beginfirst === true || beginsecond === true || beginfourth === true || beginfifth === true) {
- beginfirst = false;
- beginsecond = false;
- beginthird = true;
- beginfourth = false;
- beginfifth = false;
- } else {
- beginthird = true;
- }
- }
- }else{
- //We Didn't Bet
- if( thirdXgames >= config.thirdplayafterXgames.value){
- thirdcurrentBet = config.thirdbaseBet.value;
- log ( 'Third X Games target of', config.thirdplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
- beginthird = true;
- }else{
- thirdcurrentBet = 0;
- log ( 'Third X Games count', thirdXgames );
- beginthird = false;
- }
- }
- ///////////////////////////////////////////////
- // Xgames counter
- if (lastGame.bust < config.fourthunderXgames.value) {
- fourthXgames++;
- }else{
- fourthXgames = 0;
- }
- // Did we bet last round?
- if (lastGame.wager){
- //We Won
- if(lastGame.cashedAt){
- fourthcurrentBet = 0;
- }else{
- fourthcurrentBet *= config.fourthmultiOnloss.value;
- if (beginfirst === true || beginthird === true || beginthird === true || beginfifth === true) {
- beginfirst = false;
- beginsecond = false;
- beginthird = false;
- beginfourth = true;
- beginfifth = false;
- } else {
- beginfourth = true;
- }
- }
- }else{
- //We Didn't Bet
- if( fourthXgames >= config.fourthplayafterXgames.value){
- fourthcurrentBet = config.fourthbaseBet.value;
- log ( 'Fourth X Games target of', config.fourthplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
- beginfourth = true;
- }else{
- fourthcurrentBet = 0;
- log ( 'Fourth X Games count', fourthXgames );
- beginfourth = false;
- }
- }
- ///////////////////////////////////////////////////////
- // Xgames counter
- if (lastGame.bust < config.fifthunderXgames.value) {
- fifthXgames++;
- }else{
- fifthXgames = 0;
- }
- // Did we bet last round?
- if (lastGame.wager){
- //We Won
- if(lastGame.cashedAt){
- fifthcurrentBet = 0;
- }else{
- fifthcurrentBet *= config.fifthmultiOnloss.value;
- if (beginfirst === true || beginthird === true || beginfourth === true || beginfourth === true) {
- beginfirst = false;
- beginsecond = false;
- beginthird = false;
- beginfourth = false;
- beginfifth = true;
- } else {
- beginfifth = true;
- }
- }
- }else{
- //We Didn't Bet
- if( fifthXgames >= config.fifthplayafterXgames.value){
- fifthcurrentBet = config.fifthbaseBet.value;
- log ( 'Fifth X Games target of', config.fifthplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
- beginfifth = true;
- }else{
- fifthcurrentBet = 0;
- log ( 'Fifth X Games count', fifthXgames );
- beginfifth = false;
- }
- }
- }
- //Math Rounding Function
- function roundBit(bet){
- return Math.round(bet / 100)*100;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement