Jump to content

TioPatinhasx7

Member
  • Posts

    1
  • Joined

  • Last visited

Everything posted by TioPatinhasx7

  1. var config = { baseBet: { label: 'aposta base', valor: moeda.minAmount * 1.2, tipo: 'número' }, pagamento: { rótulo: 'pagamento', valor: 2, tipo: 'número' }, parar : { label: 'stop if bet >', value: 1e8, type: 'number' }, onLoseTitle: { label: 'On Lose', type: 'title' }, onLoss: { label: '', value: ' aumentar', digite: 'rádio', opções: [ { valor: 'redefinir', rótulo: 'Retornar à aposta base' }, { valor: 'aumentar', rótulo: 'Aumentar a aposta em (multiplicador de perda)' } ] } , lossMultiplier: { label: 'multiplicador de perda', valor: 2, tipo: 'número' }, onWinTitle: { label: 'On Win', digite: 'title' }, onWin: { label: '', value: 'reset', type: 'radio', options: [ { value: 'reset', label: 'Return to base bet' }, { value: 'aumentar', label: 'Aumentar aposta em (ganho multiplicador)' } ] }, winMultiplier: { label: 'ganho multiplicador', valor: 2, digite: 'número' }, } função principal () { var currentBet = config.baseBet.value; var PerdaCont = 0; engine.on('GAME_STARTING', function () { engine.bet(currentBet, config.payout.value); }) engine.on('GAME_ENDED', function () { var history = engine.getHistory() var lastGame = history[0] // Se apostamos, significa que jogamos if (!lastGame.wager) { return; } // nós ganhamos.. if (lastGame.cashedAt) { if (config.onWin.value === 'reset') { lossCount = 0; currentBet = config.baseBet.value; } else { lossCount = 0; currentBet *= config.winMultiplier.value; } log.success('Ganhamos, então a próxima aposta será ' + currentBet + ' ' + currency.currencyName); } else { if (config.onLoss.value === 'reset') { currentBet = config.baseBet.value; } else if (lossCount > 4) { lossCount = 1; currentBet = currentBet; } outro { perdaCount = perdaCount + 1; if (lossCount > 4) currentBet *= config.lossMultiplier.value; } log.error('Perdemos, então a próxima aposta será ' + currentBet + ' ' + currency.currencyName); } if (currentBet > config.stop.value) { log.error('Estava prestes a apostar' + currentBet + 'que aciona o stop'); motor.stop(); } }) } Citar
×
×
  • Create New...