Jump to content

Script Help - How to always Bet in Crash the maximum coin that I have?


AlanMDC4

Recommended Posts

Can I asked help on a script with below requirement?

I would like to achieve where my bet is always the maximum coin I have.
Example,
1st Bet: 10 at payout 1.1 - If I win I will have 11
2nd Bet: 11 at payout 1.1 - If win again I will have 12.1
3rd Bet: 12.1 at payout 1.1 - If win again I will have 13.31
4th Bet: ... and so on...  Until I reached a certain number of games (say 10 times)

Is there a way to do this?
 

Thank you

Link to comment
Share on other sites

var config = {
  bet: { label: "percentage of bankroll to bet", value: 1, type: "number" },
  payout: { label: "payout", value: 1.1, type: "number" },
  stopConditionsTitle: { label: 'Stop Conditions', type: 'title' },
  stopConditions: { label: '', value: 'reset', type: 'radio', 
      options: 
          [{
          value: 'totalStop',
          label: 'Stop after x games' 
          }, 
          {
              value: 'stopLoss',
              label: 'Stop after x losses in a row'
          }
      ]
  },
  gameStop: {label: "Stop after how many games", value: 10, type: "number"},
};

var betValue = currency.amount * (config.bet.value / 100);
var gameWin = 0;
var gameLoss = 0;
var totalGames = 0;

function main() {
  game.onBet = function() {
   log.info("Game starting, betting " + betValue + "");
    game.bet(betValue, config.payout.value).then(function(payout) {
      if (payout > 1) {
        gameWin += 1;
        gameLoss = 0;
        totalGames += 1;
        log.success("You won " + betValue + ", have won "+ gameWin +" times in a row, and have played "+ totalGames +" games");
      } else {
        gameWin = 0;
        gameLoss += 1;
        totalGames += 1;
        log.error("You lost " + betValue + ", have lost "+ gameLoss +" times in a row and have played "+ totalGames +" games");
      }

if (config.gameStop.value != 0 && config.stopConditions.value === 'totalStop'){
if (totalGames >= config.gameStop.value){
log.error("Stop conditions met, ending betting");
game.stop();
        }
        }
if (config.gameStop.value != 0 && config.stopConditions.value === 'stopLoss'){
if (gameLoss >= config.gameStop.value){
log.error("Stop conditions met, ending betting");
game.stop();
          }
        }
    });
  };
}

This should work, good luck

Link to comment
Share on other sites

7 hours ago, Bigmattyboy said:
var config = {
  bet: { label: "percentage of bankroll to bet", value: 1, type: "number" },
  payout: { label: "payout", value: 1.1, type: "number" },
  stopConditionsTitle: { label: 'Stop Conditions', type: 'title' },
  stopConditions: { label: '', value: 'reset', type: 'radio', 
      options: 
          [{
          value: 'totalStop',
          label: 'Stop after x games' 
          }, 
          {
              value: 'stopLoss',
              label: 'Stop after x losses in a row'
          }
      ]
  },
  gameStop: {label: "Stop after how many games", value: 10, type: "number"},
};

var betValue = currency.amount * (config.bet.value / 100);
var gameWin = 0;
var gameLoss = 0;
var totalGames = 0;

function main() {
  game.onBet = function() {
   log.info("Game starting, betting " + betValue + "");
    game.bet(betValue, config.payout.value).then(function(payout) {
      if (payout > 1) {
        gameWin += 1;
        gameLoss = 0;
        totalGames += 1;
        log.success("You won " + betValue + ", have won "+ gameWin +" times in a row, and have played "+ totalGames +" games");
      } else {
        gameWin = 0;
        gameLoss += 1;
        totalGames += 1;
        log.error("You lost " + betValue + ", have lost "+ gameLoss +" times in a row and have played "+ totalGames +" games");
      }

if (config.gameStop.value != 0 && config.stopConditions.value === 'totalStop'){
if (totalGames >= config.gameStop.value){
log.error("Stop conditions met, ending betting");
game.stop();
        }
        }
if (config.gameStop.value != 0 && config.stopConditions.value === 'stopLoss'){
if (gameLoss >= config.gameStop.value){
log.error("Stop conditions met, ending betting");
game.stop();
          }
        }
    });
  };
}

This should work, good luck

Thanks for this but it does not change my next bet to the new amount. Like in my example, when I win my next bet should be ALL my coin, always all my funds in my wallet 🙂 ...

Link to comment
Share on other sites

9 hours ago, AlanMDC4 said:

Thanks for this but it does not change my next bet to the new amount. Like in my example, when I win my next bet should be ALL my coin, always all my funds in my wallet 🙂 ...

This one should work now:

var config = {
  payout: { label: "payout", value: 1.1, type: "number" },
  stopConditionsTitle: { label: 'Stop Conditions', type: 'title' },
  stopConditions: { label: '', value: 'reset', type: 'radio',
      options:
          [{
          value: 'totalStop',
          label: 'Stop after x games'
          },
          {
              value: 'stopLoss',
              label: 'Stop after x losses in a row'
          }
      ]
  },
  gameStop: {label: "Stop after how many games", value: 10, type: "number"},
};

var betValue = currency.amount;
var gameWin = 0;
var gameLoss = 0;
var totalGames = 0;

function main() {
  game.onBet = function() {
   log.info("Game starting, betting " + betValue + "");
    game.bet(betValue, config.payout.value).then(function(payout) {
      if (payout > 1) {
        gameWin += 1;
        gameLoss = 0;
        totalGames += 1;
        log.success("You won " + betValue + ", have won "+ gameWin +" times in a row, and have played "+ totalGames +" games");
      } else {
        gameWin = 0;
        gameLoss += 1;
        totalGames += 1;
        log.error("You lost " + betValue + ", have lost "+ gameLoss +" times in a row and have played "+ totalGames +" games");
      }

if (config.gameStop.value != 0 && config.stopConditions.value === 'totalStop'){
if (totalGames >= config.gameStop.value){
log.error("Stop conditions met, ending betting");
game.stop();
        }
        }
if (config.gameStop.value != 0 && config.stopConditions.value === 'stopLoss'){
if (gameLoss >= config.gameStop.value){
log.error("Stop conditions met, ending betting");
game.stop();
          }
        }
    });
  };
}

 

Link to comment
Share on other sites

On 5/7/2022 at 6:40 AM, Bigmattyboy said:

This one should work now:

var config = {
  payout: { label: "payout", value: 1.1, type: "number" },
  stopConditionsTitle: { label: 'Stop Conditions', type: 'title' },
  stopConditions: { label: '', value: 'reset', type: 'radio',
      options:
          [{
          value: 'totalStop',
          label: 'Stop after x games'
          },
          {
              value: 'stopLoss',
              label: 'Stop after x losses in a row'
          }
      ]
  },
  gameStop: {label: "Stop after how many games", value: 10, type: "number"},
};

var betValue = currency.amount;
var gameWin = 0;
var gameLoss = 0;
var totalGames = 0;

function main() {
  game.onBet = function() {
   log.info("Game starting, betting " + betValue + "");
    game.bet(betValue, config.payout.value).then(function(payout) {
      if (payout > 1) {
        gameWin += 1;
        gameLoss = 0;
        totalGames += 1;
        log.success("You won " + betValue + ", have won "+ gameWin +" times in a row, and have played "+ totalGames +" games");
      } else {
        gameWin = 0;
        gameLoss += 1;
        totalGames += 1;
        log.error("You lost " + betValue + ", have lost "+ gameLoss +" times in a row and have played "+ totalGames +" games");
      }

if (config.gameStop.value != 0 && config.stopConditions.value === 'totalStop'){
if (totalGames >= config.gameStop.value){
log.error("Stop conditions met, ending betting");
game.stop();
        }
        }
if (config.gameStop.value != 0 && config.stopConditions.value === 'stopLoss'){
if (gameLoss >= config.gameStop.value){
log.error("Stop conditions met, ending betting");
game.stop();
          }
        }
    });
  };
}

 

thanks I will try and let you know the outcome.

Link to comment
Share on other sites

On 5/8/2022 at 8:51 PM, AlanMDC4 said:

thanks I will try and let you know the outcome.

Wow this script must be working so great, matter of a fact it must have made you millions cause you're still not letting us know if it worked or not.

 

 

RUDE!

Link to comment
Share on other sites

On 5/15/2022 at 7:14 PM, ewhore-muted said:

Wow this script must be working so great, matter of a fact it must have made you millions cause you're still not letting us know if it worked or not.

 

 

RUDE!

Because he busted on first try with maximum amount of coins 🤣🤣

Link to comment
Share on other sites

  • 5 weeks later...
On 5/16/2022 at 10:14 AM, gwbE-Whore said:

Wow this script must be working so great, matter of a fact it must have made you millions cause you're still not letting us know if it worked or not.

 

 

RUDE!

sorry for not returning back sooner. it did not actually made me millions and TakeAllProfits is right, it busted me quite so many times. But sill, thanks for the code BigMatty. will check out or find a different strategy.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...