Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = {
- firstbaseBet: { value: 10000, type: 'balance', label: 'First Base Bet' },
- firstcrashTarget: { value: 5.37, type: 'multiplier', label: 'First Cash Out' },
- firstmultiOnloss: { value: 1.25, type: 'multiplier', label: 'First Increase Bet on Loss' },
- firstplayafterXgames: { value: 10, type: 'multiplier', label: 'First Play after games under Xgames Multiplier' },
- firstunderXgames: { value: 5.37, type: 'multiplier', label: 'First Xgames Multiplier' },
- secondbaseBet: { value: 10000, type: 'balance', label: 'Second Base Bet' },
- secondcrashTarget: { value: 5.37, type: 'multiplier', label: 'Second Cash Out' },
- secondmultiOnloss: { value: 1.25, type: 'multiplier', label: 'Second Increase Bet on Loss' },
- secondplayafterXgames: { value: 10, type: 'multiplier', label: 'Second Play after games under Xgames Multiplier' },
- secondunderXgames: { value: 5.37, type: 'multiplier', label: 'Second Xgames Multiplier' },
- thirdbaseBet: { value: 10000, type: 'balance', label: 'Third Base Bet' },
- thirdcrashTarget: { value: 5.37, type: 'multiplier', label: 'Third Cash Out' },
- thirdmultiOnloss: { value: 1.25, type: 'multiplier', label: 'Third Increase Bet on Loss' },
- thirdplayafterXgames: { value: 10, type: 'multiplier', label: 'Third Play after games under Xgames Multiplier' },
- thirdunderXgames: { value: 5.37, type: 'multiplier', label: 'Third Xgames Multiplier' },
- fourthbaseBet: { value: 10000, type: 'balance', label: 'Fourth Base Bet' },
- fourthcrashTarget: { value: 5.37, type: 'multiplier', label: 'Fourth Cash Out' },
- fourthmultiOnloss: { value: 1.25, type: 'multiplier', label: 'Fourth Increase Bet on Loss' },
- fourthplayafterXgames: { value: 10, type: 'multiplier', label: 'Fourth Play after games under Xgames Multiplier' },
- fourthunderXgames: { value: 5.37, type: 'multiplier', label: 'Fourth Xgames Multiplier' },
- fifthbaseBet: { value: 10000, type: 'balance', label: 'Fifth Base Bet' },
- fifthcrashTarget: { value: 5.37, type: 'multiplier', label: 'Fifth Cash Out' },
- fifthmultiOnloss: { value: 1.25, type: 'multiplier', label: 'Fifth Increase Bet on Loss' },
- fifthplayafterXgames: { value: 10, type: 'multiplier', label: 'Fifth Play after games under Xgames Multiplier' },
- fifthunderXgames: { value: 5.37, type: 'multiplier', label: 'Fifth Xgames Multiplier' },
- };
- log ( 'Script is running...' );
- //Game Variables
- var firstcurrentBet = 0;
- var firstXgames = 0;
- var secondXgames = 0;
- var thirdXgames = 0;
- var fourthXgames = 0;
- var fifthXgames = 0;
- //Events to follow
- engine.on('GAME_STARTING', ongamestart);
- engine.on('GAME_ENDED', ongameend);
- //Game Starting Event
- function ongamestart() {
- engine.bet(roundBit(currentBet), config.crashTarget.value);
- }
- //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;
- }
- }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.');
- }else{
- currentBet = 0;
- log ( 'X Games count', firstXgames );
- }
- }
- ///////////////////////////////////////////////////
- // 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;
- }
- }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.');
- }else{
- currentBet = 0;
- log ( 'X Games count', secondXgames );
- }
- }
- /////////////////////////////////////////////////////////
- // 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;
- }
- }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.');
- }else{
- currentBet = 0;
- log ( 'X Games count', thirdXgames );
- }
- }
- ///////////////////////////////////////////////
- // 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;
- }
- }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.');
- }else{
- currentBet = 0;
- log ( 'X Games count', fourthXgames );
- }
- }
- ///////////////////////////////////////////////////////
- // 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;
- }
- }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.');
- }else{
- currentBet = 0;
- log ( 'X Games count', fifthXgames );
- }
- }
- }
- //Math Rounding Function
- function roundBit(bet){
- return Math.round(bet / 100)*100;
- }
Add Comment
Please, Sign In to add comment