Hello Guest

change from SEED

  • 1 Replies
  • 319 Views
*

gonso81

  • *
  • 1
  • +0/-0
    • View Profile
change from SEED
« on: August 12, 2020, 09:11:52 am »
Hello,

can one of you please help me and tell me what I have to do to add in my code the automatic change of the SEED after 1000 wins?

Code: [Select]

betcalc = 12
-------------------------------------------

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

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

base    = balance * (betcalc / 300000)
curbet  = base * 1.2
nextbet = base

function dobet()

    base = balance * (betcalc / 300000)

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

  if(!first and !done) then
    if(stopnow) then stop() end
    if win then
        chance = 15.5
        curbet = base * 1.2
      nextbet = base
      first = true
      done = true
    else
      curbet  = curbet * 1.2
      nextbet = curbet
      chance  = 16.5
    end
  end
  done = false
end



VG
« Last Edit: August 12, 2020, 09:21:38 am by gonso81 »

*

AlsoGeese

  • **
  • 8
  • +0/-0
    • View Profile
Re: change from SEED
« Reply #1 on: October 16, 2020, 11:03:04 am »
A bit slow, but if you add this function newSeed() and then call it each time dobet() runs then it should work;

Code: [Select]
function newSeed()

          if wins%1000==0 then

         resetseed()

         end
end


You could also put in a variable instead of the 1000 that's set at the start, so that you're able to choose when you need a new seed without having to mess with the functions.