Lua Script for stake


SUBMITTED BY: semar313

DATE: April 7, 2022, 1:41 p.m.

FORMAT: Text only

SIZE: 2.1 kB

HITS: 374

  1. chance = math.random(8000, 8500) / 100
  2. bigchance = math.random(7000, 8200) / 100
  3. smallchance = 100 - bigchance
  4. base = balance / 100000
  5. bethigh = false
  6. target = balance * 1000
  7. go = true
  8. wincount = 0
  9. losecount = 0
  10. roll = 0
  11. nextbet = base
  12. a = base
  13. multi = 1.3
  14. resetseed()
  15. ath=0;percent=false
  16. function trailingStop(val)
  17. if (balance>ath) then
  18. ath=balance
  19. end
  20. if (precent) then
  21. if ((balance-nextbet)<=(ath-((ath*val)/100))) then
  22. return
  23. end
  24. else
  25. if ((balance-nextbet)<=(ath-val)) then
  26. return
  27. end
  28. end
  29. end;trailingStop(0.001)
  30. function dobet()
  31. roll = roll + 1
  32. if wincount == 6 then
  33. resetseed()
  34. bethigh = not bethigh
  35. wincount = 0
  36. end
  37. if win and go then
  38. wincount = wincount + 1
  39. nextbet = base
  40. bigchance = math.random(7500, 8500) / 100
  41. chance = bigchance
  42. losecount = 0
  43. a = base
  44. multi = 1
  45. go = false
  46. end
  47. if (not win) then
  48. nextbet = previousbet * multi
  49. losecount = losecount + 1
  50. end
  51. if chance >= 75 and (not win) then
  52. bethigh = not bethigh
  53. smallchance = 100 - bigchance
  54. multi = 1.3
  55. if smallchance < 20 then
  56. multi = 1.236
  57. end
  58. if smallchance >= 20 then
  59. multi = 1.3388
  60. end
  61. go = true
  62. chance = smallchance
  63. nextbet = a * multi
  64. end
  65. if losecount >= 1 then
  66. go = true
  67. chance = smallchance
  68. end
  69. if losecount == 5 then
  70. losecount = 0
  71. go = false
  72. a = previousbet
  73. nextbet = base
  74. chance = bigchance
  75. end
  76. if balance > target then stop() end
  77. trailingStop(0.001)
  78. print(" ")
  79. print(" ")
  80. print(" ")
  81. print("target: " .. target)
  82. print("nextbet: " .. nextbet)
  83. print("chance: " .. chance)
  84. print("Profit to go: " .. target - balance)
  85. print(" ")
  86. print(" ")
  87. print(" ")
  88. end

comments powered by Disqus