Jump to content

Help script


YAZDIRAN

Recommended Posts

Posted
I want to add to this script can anyone help
I want to add this function
If, for example, it reaches $ 1, the bet will start again from the base
Configure var = =
  baseBet: {label: "base bet", value: currency.minAmount, type: "number"},
  Payment: {label: "payout", amount: 1.65, type: "number"},
  stop: {label: "stop if next bet>", value: 108, type: "number"},
  lossMultiplier: {label: "loss multiplier", value: 1.10, type: "number"},
  winMultiplier: {label: "win multiplier", value: 1.05, type: "number"},
};
Main () function {
  var currentBet = config.baseBet.value;
  game.onBet = Function () {
    game.bet (currentBet, config.payout.value) .then (function (payout) {
      if (payment> 1) {
        currentBet * = config.winMultiplier.value;
        log.success (
          "We won"
               
        )
      } Other {
        currentBet * = config.lossMultiplier.value;
        log.error (
          "We lost it"
        )
      }
    });
  };
}
Posted
20 hours ago, YAZDIRAN said:
I want to add to this script can anyone help
I want to add this function
If, for example, it reaches $ 1, the bet will start again from the base
Configure var = =
  baseBet: {label: "base bet", value: currency.minAmount, type: "number"},
  Payment: {label: "payout", amount: 1.65, type: "number"},
  stop: {label: "stop if next bet>", value: 108, type: "number"},
  lossMultiplier: {label: "loss multiplier", value: 1.10, type: "number"},
  winMultiplier: {label: "win multiplier", value: 1.05, type: "number"},
};
Main () function {
  var currentBet = config.baseBet.value;
  game.onBet = Function () {
    game.bet (currentBet, config.payout.value) .then (function (payout) {
      if (payment> 1) {
        currentBet * = config.winMultiplier.value;
        log.success (
          "We won"
               
        )
      } Other {
        currentBet * = config.lossMultiplier.value;
        log.error (
          "We lost it"
        )
      }
    });
  };
}

provide an example and scenario so i can know how to help you

Posted

4 ساعت پیش، AlanMDC4 گفت:

یک مثال و سناریو ارائه دهید تا بتوانم بدانم چگونه به شما کمک کنم

I want, for example, the base of the idol to start from 0.00001 and after each win and loss, this base will increase by one percent, and when, for example, the profit reaches 0.001

Start the idol base again from the beginning
Posted
18 hours ago, YAZDIRAN said:

I want, for example, the base of the idol to start from 0.00001 and after each win and loss, this base will increase by one percent, and when, for example, the profit reaches 0.001

Start the idol base again from the beginning

Maybe you can add the checking below to know if your current bet is 100x more or equal to your base bet

      if (payment> 1) {
        currentBet * = config.winMultiplier.value;
        log.success (
          "We won"
         )
        if (currentBet > basebet * 100) {
            currentbet = config.baseBet.value; 
        }
      } Other {
        currentBet * = config.lossMultiplier.value;
        log.error (
          "We lost it"
        )
        if (currentBet > basebet * 100) {  
           currentbet = config.baseBet.value;
        }
      }

Archived

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

×
×
  • Create New...