Jump to content

easy script , if you can help me@@@@


DrGgg

Recommended Posts

seriously guys where are your private A-runaway

Link to comment
Share on other sites

This should be what you want, added the same functionality of the bet multiplier for the payout amount. 

var config = {
  baseBet: { label: 'base bet', value: currency.minAmount * 1.2, type: 'number' },
  payout: { label: 'payout', value: 2, type: 'number' },
  stop: { label: 'stop if bet >', value: 1e8, 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 and/or multiplier by (loss multiplier)' },
    ]
  },
  lossMultiplier: { label: 'bet loss multiplier ', value: 2, type: 'number' },
  lossMultiplier2: { label: 'multiplier 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: 'increase', label: 'Increase bet and/or multiplier by (win multiplier)' },
    ]
  },
  winMultiplier: { label: 'bet win multiplier', value: 2, type: 'number' },
  winMultiplier2: { label: 'multiplier loss multiplier', value: 2, type: 'number' },
}

function main () {
  var currentBet = config.baseBet.value;
  var currentPayout = config.payout.value;
  engine.on('GAME_STARTING', function () {
    engine.bet(currentBet, currentPayout);
  })

  engine.on('GAME_ENDED', function () {
    var history = engine.getHistory()
    var lastGame = history[0]
    // If we wagered, it means we played
    if (!lastGame.wager) {
      return;
    }

    // we won..
    if (lastGame.cashedAt) {
      if (config.onWin.value === 'reset') {
        currentBet = config.baseBet.value;
		currentPayout = config.payout.value;
      } else {
        currentBet *= config.winMultiplier.value;
		currentPayout *= config.winMultiplier2.value;
      }
      log.success('We won, so next bet will be ' + currentBet + ' ' + currency.currencyName);
    } else {
      if (config.onLoss.value === 'reset') {
        currentBet = config.baseBet.value;
		currentPayout = config.payout.value;
      } else {
        currentBet *= config.lossMultiplier.value;
		currentPayout *= config.lossMultiplier2.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');
      engine.stop();
    }
  })
}

 

Link to comment
Share on other sites

1 hour ago, DrGgg said:

the script is fine, only once lost / won it doesn't start over from 0 but picks up where I left off and it's not good

Hm, works for me like it should. Make sure you're selecting "return to base bet" option in the On Win section if you want it to go back to the original values when you win. If it keeps happening post a screenshot of the script settings and the output log so I can look into it more.

Link to comment
Share on other sites

So, maybe and me someone help? With the same, but I don't know, how use scripts, etc. If someone can help - please PM ☺️

Link to comment
Share on other sites

  • 2 weeks later...
On 3/19/2021 at 7:58 AM, ScarletBlack said:

So, maybe and me someone help? With the same, but I don't know, how use scripts, etc. If someone can help - please PM ☺️

maybe you can post it here and let the public help instead?

Link to comment
Share on other sites

  • 5 months later...
On 3/9/2021 at 1:29 PM, Pechu_Lazer said:

I can help you on Limbo, I have used mine on limbo and normally make coins!

Hey In box me 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...