Jump to content

Question about the script for the game crash


New1l

Recommended Posts

Hello guys! Help razobratsya with writing a script, how to implement a similar scenario? Or is something like this not possible?

2144988541_.png.3fc6a1933e3f1291f258ec78ab580997.png

 

I only get this:

var config = {
    baseBet: { label: "Базовая ставка", value: 10, type: "number" }, // базовая ставка
    
    minBet: {label: 'минимальная ставка:', value: 1, type: 'number'}, // минимальная ставка
    
    payout: { label: "КешАует", value: 2, type: "number" }, // остановка краша при
    
    mon1: { label: "loss multiplier", value: 2, type: "number" },
    stop: { label: "СТОП если следующая ставка >", value: 1e8, type: "number" }, // стоп если ставка привешает ***
    onLoseTitle: { label: "Если проиграли рунд", type: "title" },
    onLoss: {
      label: "",
      value: "reset",
      type: "radio",
      options: [
        { value: "reset", label: "Возврат  к базовой ставке" },
        { value: "increase", label: "Increase bet by (loss multiplier)" },
      ],
    },
    lossMultiplier: { label: "loss multiplier", value: 2, type: "number" },
    onWinTitle: { label: "Если выиграли ставку", type: "title" },
    onWin: {
      label: "",
      value: "reset",
      type: "radio",
      options: [
        { value: "reset", label: "возврат  к базовой ставке" },
        { value: "increase", label: "Increase bet by (win multiplier)" },
      ],
    },
    winMultiplier: { label: "win multiplier", value: 2, type: "number" },
  };
  function main() {
    var currentBet = config.baseBet.value;
    game.onBet = function () {
      game.bet(currentBet, config.payout.value).then(function (payout) {
        if (payout > 1) {
          if (config.onWin) {
            currentBet = config.baseBet.value; //если мы выиграли ставим базовую ставку 10
          } 
          log.success(
            "Мы выиграли, теперь следующая ставка будет " +
              currentBet +
              " " +
              currency.currencyName
          );
        } else {
          if (config.onLoss) {
            currentBet = config.minBet.value; // если мы проиграли ставим минимальную  ставку 1
          } 
          log.error(
            "Мы проиграли, следующая савка минимальная " +
              currentBet +
              " " +
              currency.currencyName
          );
        }
        
        if (currentBet > config.stop.value) {
          log.error(
            "Was about to bet " + currentBet + " which triggers the stop"
          );
          game.stop();
        }
      });
    };
  }

 


How to make it so that after winning the minimum bet, he would start a scenario where the base bet 10 is multiplied by 2?

 

Link to comment
Share on other sites

I propbably made this more complicated than it needs to be, but it works as you described:


 

var config = {
    bet: { label: 'bet', value: currency.minAmount, type: 'number' },
    startingChance: { label: 'Start Chance', value: 49.5, type: 'number' }
  }
 
  var chance = config.startingChance.value;
  var currentPayout = ((1/chance)*99);
  var baseBet1 = config.bet.value;
  var baseBet10 = baseBet1*10;
  var nextBet = baseBet10;
  var runningbalance = currency.amount;
  var winStreak = 0;
 
  function main () {
    game.onBet = function () {
      game.bet(nextBet, currentPayout).then(function(payout) {
          runningbalance -= nextBet;
        if (payout > 1) {
            var netwin = (nextBet * currentPayout);
            runningbalance += netwin;
            chance = 49.5;
            nextBet = baseBet10;
            winStreak += 1;
           
            if (winStreak >= 2) {
              baseBet10 = baseBet1*10;
              nextBet = baseBet10;
              winStreak = 0;
            }
           
            log.success("basebet: " + baseBet10);
       
        } else {
            winStreak = 0;
            nextBet = baseBet1;
            baseBet10 = (baseBet10*2);
            log.error("basebet: " + baseBet10);
        }
        currentPayout = ((1/chance)*99);
    });
}
}
Link to comment
Share on other sites

2 hours ago, Money_Magnet said:

Looks like a good strategy but you would need a big bankroll for it. Currently, I saw 10 losses and giving that you x2 on every loss it will be a lot of money. 

Screenshot_20220411-110005_Chrome.jpg

You misunderstood my strategy a little, now I'll try to explain

if you lose the bet, you need to put the minimum bet 1 point, if the minimum point is won, the script now puts a bet of 20 points (in which if we win, we get 20 plus points) if we lose, we again put 1 point

 

if you play it manually, it works, and, moreover, very well

living example
1. Place first bet of 0.0025 USDT on crash 2.
1.1 played great, start over
1.2 lost wait until the crash falls more than x2


2. crash fell more than x2 bet 0.005 USDT
2.1 bet won great start over with a bet of 0.0025 USDT

2.2 lost wait until the crash falls more than x2


very rarely in a crash a traffic light of the form (Red, red, green, red,) hits, because of this we double after green, because it hits a lot (red, red, red, green, green, red)

or (red, red, green, green, green)

Link to comment
Share on other sites

56 minutes ago, Irvqfzszfwb said:

You misunderstood my strategy a little, now I'll try to explain

if you lose the bet, you need to put the minimum bet 1 point, if the minimum point is won, the script now puts a bet of 20 points (in which if we win, we get 20 plus points) if we lose, we again put 1 point

 

if you play it manually, it works, and, moreover, very well

living example
1. Place first bet of 0.0025 USDT on crash 2.
1.1 played great, start over
1.2 lost wait until the crash falls more than x2


2. crash fell more than x2 bet 0.005 USDT
2.1 bet won great start over with a bet of 0.0025 USDT

2.2 lost wait until the crash falls more than x2


very rarely in a crash a traffic light of the form (Red, red, green, red,) hits, because of this we double after green, because it hits a lot (red, red, red, green, green, red)

or (red, red, green, green, green)

Yeah, my point exactly. I think I did understood your strategy. However, please take another look at the picture I pasted there it shows red,red,red,green,red 9 times in a row. Meaning there are 9 times when you will get 1 green and bet high and then get red afterwards. That's why I am saying you would need a bankroll that can endure at least 10 losses.

Hope you understand me or maybe I am missunderstanding you again 😄

Link to comment
Share on other sites

On 4/11/2022 at 6:34 AM, Jamiekson said:

I propbably made this more complicated than it needs to be, but it works as you described:


 

var config = {
    bet: { label: 'bet', value: currency.minAmount, type: 'number' },
    startingChance: { label: 'Start Chance', value: 49.5, type: 'number' }
  }
 
  var chance = config.startingChance.value;
  var currentPayout = ((1/chance)*99);
  var baseBet1 = config.bet.value;
  var baseBet10 = baseBet1*10;
  var nextBet = baseBet10;
  var runningbalance = currency.amount;
  var winStreak = 0;
 
  function main () {
    game.onBet = function () {
      game.bet(nextBet, currentPayout).then(function(payout) {
          runningbalance -= nextBet;
        if (payout > 1) {
            var netwin = (nextBet * currentPayout);
            runningbalance += netwin;
            chance = 49.5;
            nextBet = baseBet10;
            winStreak += 1;
           
            if (winStreak >= 2) {
              baseBet10 = baseBet1*10;
              nextBet = baseBet10;
              winStreak = 0;
            }
           
            log.success("basebet: " + baseBet10);
       
        } else {
            winStreak = 0;
            nextBet = baseBet1;
            baseBet10 = (baseBet10*2);
            log.error("basebet: " + baseBet10);
        }
        currentPayout = ((1/chance)*99);
    });
}
}

Hello, @Jamiekson

The script is ok, but can u make it bet high 2 times in a row?

Example: after 5 red is 1 green then another red and another green then it gives another 5 red in a row.

I want to catch the green bet from inside the series of red ones.

Hope u understand me, my english is not so good 🙂

Thank you!

Link to comment
Share on other sites

8 hours ago, narcisyo said:

Hello, @Jamiekson

The script is ok, but can u make it bet high 2 times in a row?

Example: after 5 red is 1 green then another red and another green then it gives another 5 red in a row.

I want to catch the green bet from inside the series of red ones.

Hope u understand me, my english is not so good 🙂

Thank you!

This is a bit dangerous 😅

Link to comment
Share on other sites

 

On 4/10/2022 at 1:51 PM, Irvqfzszfwb said:

 

2144988541_.png.3fc6a1933e3f1291f258ec78ab580997.png

 

I thought I understrood, but I guess not. I believe it is working like the spreadsheet illustration in the first post.

Could you possibly expand that image more? I believe I could understand it better if you showed me a little more. Extend this immage to show 6 or 7 consecutive loss instead of 3 and hopefully that will make it more clear to me.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...