Post
Topic
Board Gambling
Re: Seuntjies DiceBot -Multi-Site, multi-strategy betting bot for dice. With Charts!
by
realduit
on 04/01/2017, 15:46:49 UTC
Hi,

In Programmer Mode

please provide examples of looping code:
eg for next

how the conversion code like this :
test = 1
print ("test =",test)

how to create a new function

Thank


I recommend you check out the tutorials at https://bot.seuntjie.com/ProgrammerMode.aspx

This describes how to create functions and provides many examples. Check it out and if you still have a question on how to do something specifically, let us know.

I have been to these links ( https://bot.seuntjie.com/ProgrammerMode.aspx ), but could not find the above

Can you please describe in more detail what you are attempting to code?

Programmer Mode uses the function dobet() by default and this function is executed each time the next bet is required. Its where the looping occurs.

For example, simple martingale script looks like this:
Code:
function dobet()
    if win then
        nextbet=0.00000001
    else
        nextbet=previousbet*2
    end
end

Provide a more detailed explanation of what you are trying to accomplish if you need more help.


--init variable
test=0

-- this my function
function rnd1(param)   -- i don't know how to declare this function

  if param==1 then
      bethigh=true
  else
      bethigh=false
  end      
end

function dobet()
  if !win then
    test=test+1
    print("test = ",test)  -- error
   call rnd1(1)           -- how to run rnd1
 
 else
     for i=1 to 5    -- i dont know for next in this bot
        print(test)
    next
  
 end
end