Hello Guest

Hey im trying to find out how to make this idea work, could you please check it

  • 3 Replies
  • 262 Views
*

svenjatzu

  • *
  • 3
  • +0/-0
    • View Profile
Hey
im new in this scriptingworld and i cant make that work what id like to make work.
could you please have a look at this i guess simple code?
its gonna help me understand the basics.

Code: [Select]
rchance   = 75
basebet   = .00000001
nextbet   = basebet
bethigh   = true
losecount = 0
totallose = 0
klobet    = basebet / 500
riskbetbb = basebet * 10
maxchance = 31
minchance = 27
more      = basebet / 3
bet       = rchance / 3


function dobet()
x = math.random(0,10000)

if (win) then
 resetseed();
 bethigh = false
 nextbet = riskbetbb
 chance  = math.random(minchance*100, maxchance*100)/100
  else
   resetseed();
  bethigh = true
 nextbet = riskbetbb
 chance  = rchance
 end
    end
  end
end
   

this is where i cam up to and here im stocking.

id like to add 2 or 3 little elements like, ive added them in text to the code

i dont understand how to make this counter like on first lose do xxx on second lose do xxx and on third lose do xxxx and so on

have a look on how id like to get this code working

Code: [Select]
rchance   = 90
basebet   = .00000001
nextbet   = basebet
bethigh   = true
losecount = 0
totallose = 0
klobet    = basebet / 500
riskbetbb = basebet * 10
maxchance = 50
minchance = 60
more      = basebet / 3
bet       = rchance / 3


function dobet()
x = math.random(0,10000)

if (win) then
      bethigh = true
      nextbet = basebet
      chance  = rchance
      resetseed();
  else
    resetseed();
    bethigh = false
    nextbet = riskbetbb
    chance  = math.random(minchance*100, maxchance*100)/100
-- on the first loose id like to change seed and set highlo to lo,
-- the chance should be random between 50 and 60,  (eg this is nonce 277 and former times loss was on (nonce 263 (profit 300 satoshi)))
-- for betsize on this first bet id like to set the profit from the last hit (nonce 263) min-max-chance 50-60
-- at the second loose id like to take the profit from betsice from (nonce 263) min-max-chance 50-60 and multi it x3
-- at the third loose id like to set the min-max-chance to 40-50 and betsice from (nonce 263) and multi it x10 / 3,71
-- if all three dont hit id like run 6 times the bet chance 0.01 betsice 0
-- and after this just switch back to nextbet = basebet, chance = rchance
      end
    end
  end
end
   

 

*

Seuntjie

  • *****
  • 496
  • +14/-2
    • View Profile
Take a look at the tutorials on https://forum.seuntjie.com/index.php?topic=2.0, specifically
https://steemit.com/dicebot/@seuntjie/dicebot-programmer-mode-tutorial-1-1-variables (look specifically at the variables wins, losses and currentstreak) and https://forum.seuntjie.com/index.php?topic=2.msg2086#msg2086. Give the other tutorials a read as well, the steemit and forum tutorials are aimed at beginner programmers and will help you the basics of programming. The youtube tutorials assume you have some coding knowledge and are more an overview of how the bot specific features.

*

svenjatzu

  • *
  • 3
  • +0/-0
    • View Profile
Thanks mr mod : )

*

Voodoohack

  • **
  • 13
  • +0/-0
    • View Profile
I don't think this will work well, I don't even think it'll give you any green for a long time...