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
- var currentBet = 0;
- var firstXgames = 0;
- var secondXgames = 0;
- var thirdXgames = 0;
- var fourthXgames = 0;
- var fifthXgames = 0;
- var beginfirst;
- var beginsecond;
- var beginthird;
- var beginfourth;
- var beginfifth;
- //Events to follow
- engine.on('GAME_STARTING', ongamestart);
- engine.on('GAME_ENDED', ongameend);
- //Game Starting Event
- function ongamestart() {
- if (beginfirst) {
- engine.bet(roundBit(currentBet), config.firstcrashTarget.value);
- } else if (beginsecond) {
- engine.bet(roundBit(currentBet), config.secondcrashTarget.value);
- } else if (beginthird) {
- engine.bet(roundBit(currentBet), config.thirdcrashTarget.value);
- } else if (beginfourth) {
- engine.bet(roundBit(currentBet), config.fourthcrashTarget.value);
- } else if (beginfifth) {
- engine.bet(roundBit(currentBet), 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){
- currentBet = 0;
- }else{
- currentBet *= config.firstmultiOnloss.value;
- beginfirst = true;
- }
- }else{
- //We Didn't Bet
- if( firstXgames >= config.firstplayafterXgames.value){
- firstcurrentBet = config.firstbaseBet.value;
- log ( 'X Games target of', config.firstplayafterXgames.value, 'has been met. Next round we will bet.');
- beginfirst = true;
- }else{
- currentBet = 0;
- log ( '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){
- currentBet = 0;
- }else{
- currentBet *= config.secondmultiOnloss.value;
- beginsecond = true;
- }
- }else{
- //We Didn't Bet
- if( secondXgames >= config.secondplayafterXgames.value){
- currentBet = config.secondbaseBet.value;
- log ( 'X Games target of', config.secondplayafterXgames.value, 'has been met. Next round we will bet.');
- beginsecond = true;
- }else{
- currentBet = 0;
- log ( '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){
- currentBet = 0;
- }else{
- currentBet *= config.thirdmultiOnloss.value;
- beginthird = true;
- }
- }else{
- //We Didn't Bet
- if( thirdXgames >= config.thirdplayafterXgames.value){
- currentBet = config.thirdbaseBet.value;
- log ( 'X Games target of', config.thirdplayafterXgames.value, 'has been met. Next round we will bet.');
- beginthird = true;
- }else{
- currentBet = 0;
- log ( '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){
- currentBet = 0;
- }else{
- currentBet *= config.fourthmultiOnloss.value;
- beginfourth = true;
- }
- }else{
- //We Didn't Bet
- if( fourthXgames >= config.fourthplayafterXgames.value){
- currentBet = config.fourthbaseBet.value;
- log ( 'X Games target of', config.fourthplayafterXgames.value, 'has been met. Next round we will bet.');
- beginfourth = true;
- }else{
- currentBet = 0;
- log ( '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){
- currentBet = 0;
- }else{
- currentBet *= config.fifthmultiOnloss.value;
- beginfifth = true;
- }
- }else{
- //We Didn't Bet
- if( fifthXgames >= config.fifthplayafterXgames.value){
- currentBet = config.fifthbaseBet.value;
- log ( 'X Games target of', config.fifthplayafterXgames.value, 'has been met. Next round we will bet.');
- beginfifth = true;
- }else{
- currentBet = 0;
- log ( 'X Games count', fifthXgames );
- beginfifth = false;
- }
- }
- }
- //Math Rounding Function
- function roundBit(bet){
- return Math.round(bet / 100)*100;
- }
Add Comment
Please, Sign In to add comment