Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
chilly2k
on 20/08/2017, 18:45:18 UTC
anyone help me?

i need a script can change strategy when profit is ex: 0.00300000

like this:


strategy1  >  if total profit is 0.00300000  go to strategy2


strategy2 >  if total profit is 0.00300000  go to strategy 3


strategy3 > if total profit is 0.00300000  go to strategy 1

anyone help me?
tnx for all




strategy = "stragety1"
total_profit = 0

function dobet()

total_profit += currentprofit

if total_profit >= 0.0003 then
   total_profit = 0
   if strategy == "stratgey1" then
      strategy = "strategy2"
   else
      if strategy == "strategy2" then
         strategy = "strategy3"
      else
         strategy = "strategy1"
      end
   end
end
if strategy == "strategy1" then
   do strategy 1 stuff
else
   if strategy == "stragety2" then
      do 2 stuff
   else
       do 3 stuff
   end
end

end

  Tips are always welcome Smiley