Advertisement
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' },
- firstXgames: { 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' },
- secondXgames: { 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' },
- thirdXgames: { 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' },
- fourthXgames: { 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' },
- fifthXgames: { value: 5.37, type: 'multiplier', label: 'Fifth Xgames Multiplier' },
- };
- log ( 'Script is running...' );
- //Game Variables
- var currentBet = 0;
- var Xgames = 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.underXgames.value) {
- Xgames++;
- }else{
- Xgames = 0;
- }
- // Did we bet last round?
- if (lastGame.wager){
- //We Won
- if(lastGame.cashedAt){
- currentBet = 0;
- }else{
- return;
- }
- }else{
- //We Didn't Bet
- 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.');
- }else{
- currentBet = 0;
- log ( 'X Games count', Xgames );
- }
- }
- }
- //Math Rounding Function
- function roundBit(bet){
- return Math.round(bet / 100)*100;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement