dicebot strategy script >> "divisor"


SUBMITTED BY: phroyd

DATE: July 23, 2016, 8:22 p.m.

UPDATED: July 23, 2016, 8:26 p.m.

FORMAT: Lua

SIZE: 2.4 kB

HITS: 2554

  1. -- 6-divisor --
  2. unit = 1
  3. unitfactor = 0.00000001
  4. basebet = 0.00000001
  5. chanceA = 49
  6. ls = 0 -- loosestreak
  7. ws = 0 -- winstreak
  8. lc = 0 -- loosecount
  9. wc = 0 -- wincount
  10. divisorbase = 6
  11. divisor = divisorbase
  12. targetbase = basebet * 20
  13. target = targetbase
  14. targetbalance = balance + target
  15. exploitrange = 7
  16. bethigh = true
  17. chance = chanceA
  18. nextbet = target / divisor
  19. resetstats()
  20. function dobet()
  21. divIt()
  22. betselection()
  23. exploit()
  24. checkups()
  25. end
  26. function divIt()
  27. chance = chanceA
  28. if win then
  29. ws = ws + 1
  30. target = target - currentprofit
  31. divisor = divisor - 1
  32. if divisor <= 3 then
  33. divisor = divisor + divisorbase
  34. target = target + targetbase
  35. end
  36. ls = 0
  37. else
  38. ls = ls + 1
  39. target = target + previousbet
  40. if ls == 3 then divisor = divisor + 1 end
  41. ws = 0
  42. end
  43. if balance >= targetbalance then
  44. print("\n >>> profit! \n")
  45. divisor = divisorbase
  46. target = targetbase
  47. targetbalance = balance + target
  48. end
  49. nextbet = target / divisor
  50. print("b: " .. balance .. " div: " .. divisor .. " trgt: " .. target )
  51. end
  52. function apply3play()
  53. if ls == 1 then nextbet = nextbet * 3 end
  54. if ls == 2 then nextbet = nextbet * 1.5 end
  55. if ls == 3 then nextbet = nextbet * 0.5 end
  56. if ls > 3 then nextbet = basebet end
  57. end
  58. function exploit()
  59. if lastBet.roll > 100 - exploitrange then
  60. exploitH = exploitH + 1
  61. else
  62. exploitH = 0
  63. end
  64. if lastBet.roll < exploitrange then
  65. exploitL = exploitL + 1
  66. else
  67. exploitL = 0
  68. end
  69. if exploitH > 2 then
  70. nextbet = balance / 3
  71. bethigh = true
  72. chance = 100 - exploitrange
  73. print("\n exploiting with 1/3\n")
  74. end
  75. if exploitL > 2 then
  76. nextbet = balance / 3
  77. bethigh = false
  78. chance = 100 - exploitrange
  79. print("\n exploiting with 1/3\n")
  80. end
  81. if exploitH > 3 then
  82. nextbet = balance
  83. bethigh = true
  84. chance = 100 - exploitrange
  85. print("\n exploiting with br\n")
  86. end
  87. if exploitL > 3 then
  88. nextbet = balance
  89. bethigh = false
  90. chance = 100 - exploitrange
  91. print("\n exploiting with br\n")
  92. end
  93. end
  94. function betselection()
  95. if !win and ls > 1 then bethigh = !bethigh end
  96. end
  97. function checkups()
  98. if nextbet < basebet then nextbet = basebet end
  99. end

comments powered by Disqus