Advertisement
dicekode

sugihrawaras

Jun 30th, 2024 (edited)
615
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.89 KB | Cryptocurrency | 0 0
  1. io.write('++ input basebet ')
  2. local basebet = io.read("*n")
  3.  
  4. io.write('++ input chance ')
  5. local chancef = io.read("*n")
  6.  
  7. io.write('++ input multiplier ')
  8. local multi = io.read("*n")
  9.  
  10. io.write('++ input prebet ')
  11. local prebet = io.read("*n")
  12.  
  13. io.write('++ input postbet ')
  14. local postbet = io.read("*n")
  15.  
  16. io.write('++ input pause ifprofit % ')
  17. local ifpause = io.read("*n")
  18.  
  19. io.write('++ input stop ifprofit % ')
  20. local ifprofit = io.read("*n")
  21.  
  22. os.execute("cls")
  23.  
  24. -- basebet  = 0.1
  25. -- multi    = 1.5
  26. -- prebet   = 10
  27. -- postbet  = 20
  28. dopause  = balance*(ifpause/100)
  29. target   = balance+(balance*(ifprofit/100))
  30. chancef  = 9
  31. streakmx = 0
  32. chance   = chancef
  33. nextbet  = basebet
  34. lastch   = chance
  35. profitc  = 0
  36.  
  37. function shoot()
  38.     if math.random(10)<3 then
  39.         chance = math.random(10,50)/10  
  40.     end
  41. end
  42.  
  43. function betload(a,b)
  44.     return math.abs(a)/((95/b)-1)*1.01
  45. end
  46.  
  47. function dobet()
  48.     profitc = profitc + currentprofit
  49.     if profitc > 0 then
  50.         if profitc > dopause then
  51.             pause()
  52.         end
  53.         profitc = 0
  54.     end
  55.     if win then
  56.         if streakmx > prebet+postbet then
  57.             prebet = prebet+(streakmx-(prebet+postbet))
  58.         end
  59.         nextbet = basebet
  60.         chance  = chancef
  61.         lastch  = chance
  62.     else
  63.         streak  = math.abs(currentstreak)
  64.         nextbet = previousbet*multi
  65.         if streak > postbet+prebet then
  66.             chance  = math.max(chance,lastch)
  67.             chance  = chance+(chance*(2/100))
  68.             nextbet = betload(profitc,chance)
  69.             lastch  = chance
  70.             shoot()
  71.         end
  72.         if streak < prebet then
  73.             nextbet = basebet
  74.         end
  75.         streakmx = math.max(streakmx,streak)
  76.     end
  77.     nextbet = math.max(nextbet,basebet)
  78.     if balance > target then stop() end
  79.     print("++ streak :"..prebet.." post until :"..(prebet+postbet))
  80. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement