Hello Guest

### Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

### Messages - 997

Pages: 
1
##### Programmer Mode / My script doesn't work! Can somebody please help??
« on: April 03, 2020, 09:08:10 pm »
Hello everyone... I'm trying to write a script that does the following: It waits for a pattern such as HHLLHH or LLHHLL If it gets a pattern like HHLLHH betting at minimum the next base bet would be on High. The base bet is determined by multiplying a small number like 0.01 or 0.002 by the balance by a number in pi. Pi as you may know is 3.14159..... so for the first base bet the calculation would be 3 x balance x a small number like 0.02. The first problem is it doesn't let me incorporate a small number like 0.02 because it says I'm "multiplying by nil" So I used the method of dividing the balance by a large number like 10000 but and only later multiplying by a number in pi but it always just bets minimum bet! This is the script :
Code: [Select]
`chance            = 49.95bethigh           = falsehighstreakcounter = 0lowstreakcounter  = 0--counter           = 0--counter1          = 0nextbet           = 0.00000001minbet            = 0.00000001--wincount=0--losecount=0basebet = (balance/10000)i       = 0--j       = 1--k       = 0--sn   = 0.02pi1  = 3pi2  = 1pi3  = 4pi4  = 1pi5  = 5pi6  = 9pi7  = 2pi8  = 6pi9  = 5pi10 = 3pi11 = 5pi12 = 8pi13 = 9pi14 = 7pi15 = 9pi16 = 3pi17 = 2pi18 = 3pi19 = 8pi20 = 4pi21 = 6pi22 = 2pi23 = 6pi24 = 4pi25 = 3pi26 = 3pi27 = 8pi28 = 3pi29 = 2pi30 = 7--95288419716939937515829749445923781646286289986283482534211767982148865132function dobet()    while (minbet) dobethighif currentstreak ==2 then    --nextbet = minbet    lowstreakcounter +=1    --counter+=1 endif currentstreak == -2 then    --nextbet = minbet    highstreakcounter +=1    --counter1+=1 endif lowstreakcounter==highstreakcounter and currentprofit==1     then nextbet = basebet    --i            = pi1    bethigh = false     basebet += basebet*pi1end         if win then nextbet=minbet   else   nextbet = basebet   bethigh = false   basebet += basebet*pi2      --i       = pi2 end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = true                basebet += basebet*pi3end             if win then nextbet=minbet  else   nextbet = basebet   --i       = pi3    bethigh = true                basebet += basebet*pi4end   if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = false                basebet += basebet*pi5end   if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = false                basebet += basebet*pi6end   if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = true                basebet += basebet*pi7end   if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = true                basebet += basebet*pi8end   if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = false               basebet += basebet*pi9end   if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = false                basebet += basebet*pi10end   if win then nextbet=minbet   else   nextbet = basebet   --i       = pi11    bethigh = true                basebet += basebet*pi11end   if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = true                basebet += basebet*pi12end  if win then nextbet=minbet   else   nextbet = basebet   --i       = pi13    bethigh = false                basebet += basebet*pi13end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = false               basebet += basebet*pi14end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = true                basebet += basebet*pi15end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = true                basebet += basebet*pi16end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = false                basebet += basebet*pi17end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = false               basebet += basebet*pi18end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = true                basebet += basebet*pi19end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = true                basebet += basebet*pi20end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = false                basebet += basebet*pi21end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = false                basebet += basebet*pi22end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = true                basebet += basebet*pi23end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = true                basebet += basebet*pi24end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = false                basebet += basebet*pi25end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = false               basebet += basebet*pi26end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = true                basebet += basebet*pi27end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = true                basebet += basebet*pi28end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = false               basebet += basebet*pi29end if win then nextbet=minbet   else   nextbet = basebet   --i       = pi3    bethigh = false                basebet += basebet*pi30endendend`
So for a pattern like HHLLHH the first base bet would be placed on High. If that lost the next number in pi would be used to calculate base bet. If that lost the third number in pi would be used. If that won, then the next time around when it gets a pattern since the bot wasn't in profit, it would take up where it left of off at the fourth value of pi and so on until iot would be in profit upon which time it would return to the first value in pi to calculate the base bet. I'm battling on many fronts here because I don't even know what i'm doing wrong when I'm trying to get the pattern like 3 doubles of wins and losses in a row like for instance if it would get HHLLHH or LLHHLL. I understaqnd that c urrentstreak is the last streak of wins or losses if betting all low or all high but I don't know how to put them together with currentprofit to make the pattern that I want the bot to exploit . Can someone please help me here?? I've been working on it for hours and hours and I still haven't been able to figure it out. I'm new to this programming business so if someone can help a newbie out, it would be really appreciated. If you have any questions , I would be glad to answer them. Thanks in advance for your help.

Pages: