Hello Guest

• 5 Replies
• 792 Views

#### Rizalarrasyd

• 6
• +0/-0
« on: November 07, 2019, 10:12:21 am »
I want to have a script that contains the following

chance        = 45
multiplier    = 2
base          = 0.00000001

If win then
If lastbet value < 0.00001
nextbet = lastbet

If lastbet value >= 0.00001
nextbet = basebet

#### Seuntjie

• 468
• +13/-2
« Reply #1 on: November 10, 2019, 06:59:30 pm »
You're 90% there. see the programmer mode tutorials linked in https://forum.seuntjie.com/index.php?topic=2.0 - specifically the steemit tutorials, i'm sure you'll figure out the last bit you need to do if you just read those tutorials.

#### Rizalarrasyd

• 6
• +0/-0
« Reply #2 on: November 11, 2019, 11:39:45 am »
Thank you very much, I managed to make it. but i still have one problem. please help me.

in the script I made a target, with orders if  reached the target :

if (balance)> = target balance then
targetbalance = targetbalance + target
newbalance = targetbalance
nextbet = basebet
resetseed ();

if lose,  nextbet = previousbet * 2

Currently the script can run according to the command, which returns to basebet after reaching the target. but a problem arises if i get a long red and in the last bet gain far above the target (above 5 times the target), the script does not run normally and will give a command every time win back to basebet, so I have to press the stop button to run normally again.

In your opinion, is there something wrong with my script?

#### Seuntjie

• 468
• +13/-2
« Reply #3 on: November 11, 2019, 04:19:23 pm »
Quote
targetbalance = targetbalance + target
lets say your balance is 20, your target is 5, so your target balance is 25. You win 25. Your new balance is now 50.

If 50>25 then set targetbalance to 30 (25+5)
next bet:
if 50 > 30 then set targetbalance to 35 (30+5)
next bet:
if 50 > 35 then set targetbalance to 40 (35+5)
etc etc.

if 50>25 then set targetbalance to 55 (50+5)

It looks like you're mixing your own variables with the bots' variables because you make reference to balance, targetbalance, newbalance etc (It's hard to say without seeing the rest of your script though), but you can likely solve your problem by setting your targetbalance to balance +target instead of incrementing your targetbalance by your target every time you are over it

#### Rizalarrasyd

• 6
• +0/-0
« Reply #4 on: November 13, 2019, 01:52:24 am »
maybe you are right, because I really want a simple script. for complete script like this;

base           = 0.0000001
chance         = 47
nextbet        = base
bethigh        = false
startbalance   = balance
target         = 0.0001
target1        = 1
targetbalance  = balance + target
targetbalance1 = target1

function dobet()

if balance >= targetbalance1 then
stop();
end

if balance >= targetbalance then
bethigh       = !bethigh
targetbalance = targetbalance + target
newbalance    = targetbalance
nextbet       = base
resetseed();
else
bethigh = false
end

if win then
bethigh = false
else
nextbet = previousbet * 2
chance  = 47
if lastBet.Roll < 40.00 then
bethigh = !bethigh
end

if lastBet.Roll > 60.00 then
bethigh = !bethigh
end
end
end

please, check whats wrong with my script

I don't use this script anymore due to constraints like I mentioned before, which made me have to keep waiting to press the stop button and start again. For that I have made a new one, which refers to the value of the last bet (if previously, the target profit value), and this runs as I wish.

Thank you for all the responses and input to me.

• 468
• +13/-2