Need help with the bot or want someone to talk to?
FORUM.SEUNTJIE.COM

The forum is a good platform for asking or offering help with programmer mode scripts

LUA Scripts

Download a script for your bot, or upload your own to share with other users. Login or Register to upload

How do I use this?

Name: Bet_Multiplier_v1 GlenArven ```This is not meant to be a complete script. It is a routine that will set you nextbet multiplier based on your current balance and the maximum rolls it can get to. Seuntjies Notes: This is a really un-optimized script. It's going to kill your CPU. use with care.```

 GlenArven 23:01:2017 14:50 `I made a new version that may look better. In defense of this script though it only runs once every 100 rolls and can be set to even longer intervals between tests.` Login or Register
 seuntjie 23:01:2017 17:46 ```The new version of the script doesn't run. (nor does this one actually). Also, how about replacing your mountain of if statements with something like: counter = 0 found =0 while (counter<=30 and found==0) do car1 = (b + (b * m^counter)) car2 = car1 + (b * m^(counter+1)) if ((balance > car1) and (balance > car2)) then maxroll=counter+1 found=1 end counter+=1 end This might need to be touched up a bit, just make sure it works the same as yours.``` Login or Register
 seuntjie 23:01:2017 17:47 `if ((balance > car1) and (balance < car2)) then` Login or Register
 GlenArven 23:01:2017 10:13 `I would greatly appreciate it if you could show me what this script optimized would look like. Thx for the fun!` Login or Register
 seuntjie 23:01:2017 11:05 ```If statements like if ((balance > (b + (b * m^1) + (b * m^2) + (b * m^3) + (b * m^4) + (b * m^5) + (b * m^6) + (b * m^7) + (b * m^8) + (b * m^9) + (b * m^10) + (b * m^11) + (b * m^12) + (b * m^13) + (b * m^14) + (b * m^15) + (b * m^16) + (b * m^17) + (b * m^17) + (b * m^18) + (b * m^19) + (b * m^20) + (b * m^21) + (b * m^22) + (b * m^23))) and (balance < (b + (b * m^1) + (b * m^2) + (b * m^3) + (b * m^4) + (b * m^5) + (b * m^6) + (b * m^7) + (b * m^8) + (b * m^9) + (b * m^10) + (b * m^11) + (b * m^12) + (b * m^13) + (b * m^14) + (b * m^15) + (b * m^16) + (b * m^17) + (b * m^18) + (b * m^18) + (b * m^19) + (b * m^20) + (b * m^21) + (b * m^22) + (b * m^23) + (b * m^24)))) are really unoptimized. Look at all of the calculations it has to make, and it has to do something similar multiple times after every bet (I know not this one specifically). A lot of the calculations are sequential and repetitive. You could probably come up with a formula to calculate it specifically. Alternatively you could use a loop and iterate a value to prevent the bot having to do the same calculations over and over again and instead the a single calculation per step and add it to the result of the previous.``` Login or Register