Hello Guest

Poll

 I did not make it

 I did not make it
1 (100%)
 I did not make it
0 (0%)

Total Members Voted: 1

Help

  • 2 Replies
  • 112 Views
*

Gustafff

  • **
  • 9
  • +1/-0
    • View Profile
Help
« on: April 08, 2019, 02:02:52 pm »
Hello everyone I need help in creating this script, it is ramdom, so in loss I would like to make an adjustment of the increase as the next payout continues
this is the script
Code: [Select]
chance = math.random(10,75)
bethigh = true
basebet = balance/100000
nextbet = basebet

function dobet()

chance = math.random(40,75)
if (math.random() >0) then bethigh = !bethigh
end
if (win) then
   nextbet = basebet
else
   nextbet =(previousbet+basebet)*(chance/18) for example (totalloss)/(99/chance) here would have to put the total lost since the last loss * the payout drawn at this time, performing the increase to recover the lost
end

end


sorry my bad english

Edit: Added code tags. Please be sure to use code tags when posting code.
« Last Edit: April 08, 2019, 02:43:28 pm by Seuntjie »

*

Seuntjie

  • *****
  • 270
  • +2/-2
    • View Profile
Re: Help
« Reply #1 on: April 08, 2019, 02:51:58 pm »
See https://steemit.com/gambling/@seuntjie/diecebot-math for some simple formulas you can use to calculate payout, return and bet profit.

To figure out what your next bet needs to be, you need to know how much you've lost so far (If I understand you correctly), so you will need to add a variable to track how much you've lost since your last win.

If you know what you've lost, you know what your next profit should be (total lost +1 unit). With total profit, and total bet, you can calculate your chance.

Consider that payout = bet/return and return = bet+profit

*

Gustafff

  • **
  • 9
  • +1/-0
    • View Profile
Re: Help
« Reply #2 on: April 08, 2019, 05:24:42 pm »
sorry im noob in lua:(
I've been trying to do this for days and I can not do it. :( :'(
I'm only need this
chance = math.random(10,75)
bethigh = true
basebet = balance/1000000
nextbet = basebet
inicialbet=basebet
print(basebet)

function dobet()

chance = math.random(25,80)
losebet=balance
multiplier = (99/chance)
if (math.random() >0) then bethigh = !bethigh
end
if (win) then
   nextbet = basebet
else
   nextbet =totalloss*(99/chance)  here  I need my next bet to be the total lost * (99 / chance) I can not make the total loss function
end

end
 plsss help me  :'(