Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
Eremitos
on 28/07/2017, 22:46:50 UTC
So, I wanted to make script that bets on 50x payout and changes side every two wins. I also wanted it to double basebet after reaching given balance.

chance=2.00
nextbet=0.00000073
bethigh= false

function dobet ()

If win then
wincount == wincount + 1
   if wincount == 2 then
      if bethigh = false then
      bethigh = true
      else
      bethigh = false
      end
   wincount == 0
   end
end


if balance > 0.001 then
nextbase = nextbase*2
end

Unfortunately I get 'LUA ERROR!! assignment statement expected, got 'win'' tho I saw many examples here with 'if win then' line and everything seemed to be ok. I must admit this is a bit frustrating. Would anyone be so kind and check it for me please?