Hello Guest

# Help for automotic withdrawal script

• 1 Replies
• 1175 Views

#### Novanrnt

• 2
• +0/-0
##### Help for automotic withdrawal script
« on: July 24, 2018, 11:36:17 am »
Hello boss

I want to creat script for automatic withdraw
Example if 12 bet withdrawal 3 doge  very simple but im fail to creat script this sccript please review

Code: [Select]
`chance = 90bethigh = truebasebet = 0.0000001nextbet = basebetbetcount = 15--set targetsamount=3100              -- Amount to withdrawfunction dobet()-Change withdraw adressif betcount == 15 then  withdraw(amount,"your address here")print(" adeeress ")  print("CONTINUING TO WIN MORE!!!")end if (win) then chance = 90 basebet = 0.0000001    nextbet = basebetend  resetseed();endend `
This script withdraw every bet, please correct my script boss thanks

#### Seuntjie

• 247
• +2/-2
##### Re: Help for automotic withdrawal script
« Reply #1 on: September 19, 2018, 07:50:06 am »
Code: [Select]
`betcount=15...if betcount == 15withdraw`

See the problem here? Betcount will always be 15, so your if will always pass.

If you want to withdraw every 15 bets, use the bets variable and the modulus operator:

Code: [Select]
`if bets%betcount==0 then`

See the quote below
The currentstreak variable is your current winning (+) or losing (-) streak. For example, when currentstreak is 3, you have won 3 bets in a row, if it is -4, you have lost 4 bets in a row.
Alternatively, there's the wins variable, which is the total number of wins you've had since starting the bot or since you last reset your stats.

You can use the modulus operator to determine when something is a factor of something else, for example

Code: [Select]
`if currentstreak%3==0 and win then--this will execute after EVERY 3 winning bets in a row, so after 3 in a row, 6 in a row, 9 in a row etcendif currentstreak==3 then--this will execute after exactly 3 wins in a rowendif wins%3==0 and win then --after every 3 wins, regardless of whether they are in a streak or notendif wins == 3 then--after you've won exactly 3 bets and then never againend`