Jump to content

chance


piumaster

Recommended Posts

 this script has already been posted, is there someone who can put it to run 2 chances

    var config = {
  baseBet: { label: "Base Bet", value: 0.001, type: "number" },
  payout: { label: "Base Payout", value: 2, type: "number" },
  stop: { label: "stop if next bet >", value: 0.001, type: "number" },
  onLoseTitle: { label: "On Lose", type: "title" },
  onLoss: {
    label: "",
    value: "increase",
    type: "radio",
    options: [
      { value: "reset", label: "Return to base bet" },
      { value: "increase", label: "Increase bet by (loss multiplier)" },
    ],
  },
  lossMultiplier: { label: "loss multiplier", value: 2, type: "number" },
  onWinTitle: { label: "On Win", type: "title" },
  onWin: {
    label: "",
    value: "increase",
    type: "radio",
    options: [
      { value: "reset", label: "Return to base bet" },
      { value: "increase", label: "Increase bet by (win multiplier)" },
    ],
  },
  winMultiplier: { label: "win multiplier", value: 0.5, type: "number" },
};
 
var runningbalance = currency.amount;
var ath = runningbalance;
var baseBet = config.baseBet.value;
 
function main() {
  var currentBet = config.baseBet.value;
  game.onBet = function () {
    game.bet(currentBet, config.payout.value).then(function (payout) {
        runningbalance -= currentBet;
      if (payout > 1) {
          var netwin = (currentBet*config.payout.value);
          runningbalance += netwin;
 
        if (config.onWin.value === "reset") {
          currentBet = config.baseBet.value;
        } else {
            if (currentBet > baseBet*100) {
                currentBet = baseBet;
            } else {
                currentBet *= config.winMultiplier.value;
            }
        }
        log.success(
          "We won, so next bet will be " +
            currentBet +
            " " +
            currency.currencyName
        );
      } else {
        if (config.onLoss.value === "reset") {
          currentBet = config.baseBet.value;
        } else {
          currentBet *= config.lossMultiplier.value;
        }
        log.error(
          "We lost, so next bet will be " +
            currentBet +
            " " +
            currency.currencyName
        );
      }
      if (runningbalance > ath) {
          ath = runningbalance;
      }
      if (currentBet > config.stop.value) {
        log.error(
          "Was about to bet " + currentBet + " which triggers the stop"
        );
        game.stop();
      }
      if (currentBet < currency.minAmount) {
          currentBet = currency.minAmount;
      }
    });
  };
}

Link to comment
Share on other sites

wtf is 2 chances?

each bet can only have 1 chance  bet(amount, payout)
so are you talking like a different payout on win or on loss?
are you just wanting two bets to be kicked off at the same time?
are you just wanting a high and a low and then a random value between those to be used?
currently what you asking makes no sense so while anyone can get you a second parameter, until you understand how you want it used, well enough to explain it to someone, good luck finding someone to implement it.

if you want trying to do something like this 

Then you should know that it is doing, which in this case is on loss using the secondary payout until win or until 3 losses or something like that.  

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...