Advertisement
Ypleitez

Untitled

Nov 15th, 2023
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. chance = math.random(1, 80) --generate chance
  2. lsratio = 7 --max loss streak. ex. 2(multi)*7(lsratio)=14(max loss streak)
  3. edge = 1
  4. stopbalance = balance*1.15
  5.  
  6. --nothing to change below. Everyhting should be calculated based on above
  7.  
  8. convertedMulti = string.format("%.4f", (100 - 1) / chance)
  9. lossStreaks = convertedMulti*lsratio
  10. if lossStreaks % 1 ~= 0 then
  11. local int_part = string.match(lossStreaks, "^%d+")
  12. lossStreaks = tonumber(int_part) + 1
  13. end
  14. bethigh = (math.random(2) == 1) and true or false
  15. increaseOnLoss = (((100-edge)/((100-edge)-chance))-1)*100.00
  16. increaseOnLossMulti = (100-edge)/((100-edge)-chance)
  17. calculateBetSize = balance * (increaseOnLoss/100) / ((1+(increaseOnLoss/100))^lossStreaks - 1)
  18. basebet = calculateBetSize-(calculateBetSize/200)
  19. nextbet = basebet
  20. print("chance "..chance)
  21. print("convertedMulti "..convertedMulti)
  22. print("lossStreaks "..lossStreaks)
  23. print("increaseOnLoss "..increaseOnLoss)
  24. print("increaseOnLossMulti "..increaseOnLossMulti)
  25. print("calculateBetSize "..calculateBetSize)
  26. print("basebet "..basebet)
  27.  
  28.  
  29.  
  30.  
  31. function dobet()
  32.  
  33. If stopbalance >= balance then Stop()
  34. End
  35.  
  36. if win then
  37. bethigh = (math.random(2) == 1) and true or false
  38. chance = math.random(1, 80)
  39. convertedMulti = string.format("%.4f", (100 - 1) / chance)
  40. lossStreaks = convertedMulti*lsratio
  41. if lossStreaks % 1 ~= 0 then
  42. local int_part = string.match(lossStreaks, "^%d+")
  43. lossStreaks = tonumber(int_part) + 1
  44. end
  45. edge = 1
  46. bethigh = (math.random(2) == 1) and true or false
  47. increaseOnLoss = (((100-edge)/((100-edge)-chance))-1)*100.00
  48. increaseOnLossMulti = (100-edge)/((100-edge)-chance)
  49. calculateBetSize = balance * (increaseOnLoss/100) / ((1+(increaseOnLoss/100))^lossStreaks - 1)
  50. basebet = calculateBetSize-(calculateBetSize/200)
  51. nextbet = basebet
  52. print("chance "..chance)
  53. print("convertedMulti "..convertedMulti)
  54. print("lossStreaks "..lossStreaks)
  55. print("increaseOnLoss "..increaseOnLoss)
  56. print("increaseOnLossMulti "..increaseOnLossMulti)
  57. print("calculateBetSize "..calculateBetSize)
  58. print("basebet "..basebet)
  59. else
  60. nextbet = previousbet*increaseOnLossMulti
  61. end
  62. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement