Cedrus Posted January 26, 2021 Share Posted January 26, 2021 Below is the D'Alembert script that will increase after loss and decrease after win eventually, and it will turn to base bet as if your next bet is lower than base bet. You all who have some interest can test it with crash or hash dice as you wish. Btw, i have no obligation to provide my setting . Thanks for your understanding. Happy earning .  var config = {  baseBet: { label: "base bet", value: currency.minAmount, type: "number" },  payout: { label: "payout", value: 2, type: "number" },  stop: { label: "stop if next bet >", value: 1e8, type: "number" },  onLoseTitle: { label: "On Lose", type: "title" },  onLoss: {   label: "",   value: "reset",   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: "reset",   type: "radio",   options: [    { value: "reset", label: "Return to base bet" },    { value: "decrease", label: "Decrease bet by (win divider)" },   ],  },  winDivider: { label: "win divider", value: 2, type: "number" }, }; function main() {  var currentBet = config.baseBet.value;  var lowestedge = config.baseBet.value; if (currentBet < config.baseBet.value) { currentBet = config.baseBet.value; }  game.onBet = function () {   game.bet(currentBet, config.payout.value).then(function (payout) {    if (payout > 1) {     if (config.onWin.value === "reset") {      currentBet = config.baseBet.value;     } else {      currentBet /= config.winDivider.value;     if (currentBet < config.baseBet.value) {        currentBet = lowestedge; }       }     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 (currentBet > config.stop.value) {     log.error(      "Was about to bet " + currentBet + " which triggers the stop"     );     game.stop();    }   });  }; } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.