Hello Guest

I want to add currentstreak to this code.

  • 1 Replies
  • 85 Views
*

orcus

  • *
  • 1
  • +0/-0
    • View Profile
I want to add currentstreak to this code.
« on: January 06, 2019, 06:53:36 pm »
Hi everyone,

I want to add the currentstreak separately for each change to this code. Can you help me plase.

Code: [Select]
betcalc = 0
-------------------------------------------

bethigh = true
stopnow = false
first = true
done = true
chance = 27.5

if (betcalc < 0.01) then print("Please set betcalc then restart the script") stop() end

base = balance * (betcalc / 100000)
curbet = base * 3.7255
nextbet = base

function dobet()

  base = balance * (betcalc / 100000)

  if (first) then
    if(stopnow) then stop() end
    if !win then
      chance = 50
      nextbet = curbet
      first = false
      done = true
    end
  end

  if(!first and !done) then
    if(stopnow) then stop() end
    if win then
      chance = 27.5
      curbet = base * 3.7255
      nextbet = base
      first = true
      done = true
    else
      curbet = curbet * 3.7255
      nextbet = curbet
      chance = 72.5
    end
  end
  done = false
end
« Last Edit: January 06, 2019, 07:36:02 pm by Seuntjie »

*

Seuntjie

  • *****
  • 160
  • +0/-1
    • View Profile
Re: I want to add currentstreak to this code.
« Reply #1 on: January 06, 2019, 07:35:10 pm »
You're being extremely vaque. You're basically saying you want to add plastic to your car. What kind of plastic? Where to your car? what should it do on your car?

Be specific. What do you want to do with the currentstreak? Does it need to compared to something? If it needs to compared to something, what should happen when the comparison succeeds/fails. Should different things happen "for each change"?

As always, see the programmer mode tutorials on https://forum.seuntjie.com/index.php?topic=2.0 and try to do it yourself. People are more likely to help you finish what you started than to just do it for you.

Also, please use the code tags in the future