Advertisement
dicekode

copy-02

Dec 17th, 2022
942
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.24 KB | None | 0 0
  1. betch   = {20,25,100}
  2. basediv = 1e-7
  3. iflose  = 1.6
  4. ifwin   = 1.1  
  5. maxdrop = 5
  6. basebet = balance*basediv  
  7. tgsesi  = basebet*0  
  8. target  = balance*1.5
  9. upbet   = false
  10. bethigh = false
  11. stopwin = false
  12. nowdrop = 0  
  13. chance  = math.random(betch[1]*betch[3],betch[2]*betch[3] )/betch[3]
  14. nextbet = basebet  
  15.  
  16. resetseed()
  17. resetstats()  
  18.  
  19. function dobet()  
  20.     chance = math.random(betch[1]*betch[3],betch[2]*betch[3] )/betch[3]  
  21.     if balance > target then stop() end  
  22.     if partialprofit > tgsesi then  
  23.         resetpartialprofit()  
  24.         if stopwin then stop() end
  25.         if upbet then
  26.             basebet = balance*basediv  
  27.         end
  28.         nextbet = basebet  
  29.     else  
  30.         if win then  
  31.             nextbet = previousbet*ifwin  
  32.         else  
  33.             nextbet = previousbet*iflose  
  34.         end  
  35.     end  
  36.     if nextbet < basebet then  
  37.         nextbet = basebet  
  38.     end  
  39.     if partialprofit < nowdrop then  
  40.         nowdrop = partialprofit
  41.     end
  42.     if math.abs(nowdrop)/balance*100 > maxdrop then
  43.         stopwin = true
  44.     end  
  45.     print("\n░▒▓- Dropped "..string.format("%.8f",math.abs(nowdrop)).." [ "..string.format("%.2f",math.abs(nowdrop)/balance*100).."% ]")  
  46. end
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement