full autoassault dice script


SUBMITTED BY: phroyd

DATE: June 29, 2018, 5:18 a.m.

UPDATED: June 30, 2018, 3:01 a.m.

FORMAT: Text only

SIZE: 17.8 kB

HITS: 67780

  1. -- see the video on yt: https://www.youtube.com/watch?v=EeWtk8KKN78
  2. chance990 = 0.115
  3. chance9900 = 0.01
  4. multi990 = 0.0012
  5. multi9900 = 0.00012
  6. ls = 0 -- loosestreak
  7. ws = 0 -- winstreak
  8. lc = 0
  9. wc = 0
  10. lsmax = ls
  11. unitfactor = 0.0000001
  12. basebet = unitfactor * 1
  13. capped = false
  14. streaksource_start = 30000 -- # of tries too calculate max streaks ( more tries > higher max streak > more security )
  15. streaksource_end = 30000
  16. waitstake_start = 100 -- 66% of maxstreak wait, 33% of maxstreak stand
  17. waitstake_end = 100
  18. budget_ratio = 100
  19. keepwait = true
  20. po1 = { payout=2, ch=49.50, multi=2.02, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  21. po2 = { payout=2.5, ch=39.60, multi=1.68, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  22. po3 = { payout=3, ch=33.00, multi=1.51, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  23. po4 = { payout=3.5, ch=28.29, multi=1.42, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  24. po5 = { payout=4, ch=24.75, multi=1.34, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  25. po6 = { payout=4.5, ch=22.00, multi=1.30, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  26. po7 = { payout=5, ch=19.80, multi=1.26, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  27. po8 = { payout=5.5, ch=18.00, multi=1.24, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  28. po9 = { payout=6, ch=16.50, multi=1.22, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  29. po10 = { payout=6.5, ch=15.23, multi=1.20, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  30. po11 = { payout=7, ch=14.14, multi=1.18, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  31. po12 = { payout=7.5, ch=13.20, multi=1.165, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  32. po13 = { payout=8, ch=12.38, multi=1.15, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  33. po14 = { payout=8.5, ch=11.65, multi=1.14, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  34. po15 = { payout=9, ch=11.00, multi=1.13, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  35. po16 = { payout=9.5, ch=10.42, multi=1.125, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  36. po17 = { payout=10, ch=09.90, multi=1.12, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  37. po18= { payout=15, ch=06.60, multi=1.095, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  38. po19 = { payout=20, ch=04.95, multi=1.07, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  39. po20 = { payout=25, ch=03.96, multi=1.055, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  40. po21 = { payout=30, ch=03.30, multi=1.04, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  41. po22 = { payout=35, ch=02.83, multi=1.035, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  42. po23 = { payout=40, ch=02.48, multi=1.03, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  43. po24 = { payout=45, ch=02.20, multi=1.0275, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  44. po25 = { payout=50, ch=01.98, multi=1.025, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  45. po26 = { payout=55, ch=01.80, multi=1.0225, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  46. po27 = { payout=60, ch=01.65, multi=1.02, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  47. po28 = { payout=65, ch=01.52, multi=1.019, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  48. po29 = { payout=70, ch=01.41, multi=1.018, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  49. po30 = { payout=75, ch=01.32, multi=1.0165, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  50. po31 = { payout=80, ch=01.24, multi=1.015, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  51. po32 = { payout=85, ch=01.16, multi=1.014, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  52. po33 = { payout=90, ch=01.10, multi=1.013, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  53. po34 = { payout=95, ch=01.04, multi=1.0125, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  54. po35 = { payout=99, ch=01.00, multi=1.012, basebet=nil, strk_max=nil, strk_stand=nil, strk_wait=nil, lshigh=0, lslow=0, lshighmax=0, lslowmax=0 }
  55. polvls = {
  56. -- po1, po2, po3, po4, po5, po6, po7, po8,
  57. -- po9, po10, po11, po12, po13, po14, po15,
  58. po16, po17, po18, po19, po20, po21 , po22,
  59. po23, po24, po25, po26, po27, po28, po29,
  60. po30, po31, po32, po33, po34, po35
  61. }
  62. polvlcount = 20
  63. tempstand = 0
  64. ticked = false
  65. -- possible results for groups of 2
  66. -- 00 01 11 10
  67. -- we go for 10
  68. alg01 = true -- 1 (high)
  69. alg02 = false -- 0 (low)
  70. algpos = 1
  71. alg_bet1 = unitfactor * 1.2
  72. alg_bet2 = unitfactor * 2
  73. stoplossflag = false
  74. stoploss = unitfactor * 800
  75. ltd = 0
  76. ltdis0 = false
  77. ltdSplit = 5
  78. loosestreak = 0
  79. winstreak = 0
  80. basebet3p = unitfactor * 1
  81. chance3p = 48.5
  82. targetruns = 0
  83. maxbalance = balance
  84. minbalance = balance
  85. lastbalance = balance
  86. balancedelta = 0
  87. target = balance * 0.02
  88. maxprofit = profit
  89. pdelta = 0
  90. budget = 0
  91. maxbet = 0
  92. lastprofit = 0
  93. chanceDiv = 33
  94. stake = 0
  95. WaT = true -- Wait after Trigger
  96. tcnt = 0
  97. dl = false -- last decision
  98. dll = false -- before last decision
  99. dlll = false -- ...
  100. dllll = false
  101. dlllll = false
  102. echo_dl = ""
  103. echo_dll = ""
  104. echo_dlll = ""
  105. echo_dllll = ""
  106. echo_dlllll = ""
  107. clumptrigger = false
  108. ct = " <> "
  109. dbl = false
  110. echo_dbl = ""
  111. basebet_flat = unitfactor * 1
  112. tippingjar = 0
  113. bethigh = true
  114. hiloStrng = "HIGH"
  115. firstrun = true
  116. mychance = chance3p
  117. multi = multi3
  118. chance = mychance
  119. nextbet = 0.00000001
  120. chance = 49.0
  121. mynextbet = nextbet
  122. --calculateBets()
  123. function dobet()
  124. if firstrun then
  125. calculateBets()
  126. firstrun = false
  127. end
  128. registerRolls()
  129. if !win then
  130. ls = ls + 1
  131. ws = 0
  132. else
  133. ws = ws + 1
  134. -- ls = 0
  135. end
  136. if !capped then
  137. betselect()
  138. else
  139. flat()
  140. end
  141. checkups()
  142. end
  143. function flat()
  144. if !win then
  145. if capped then
  146. mynextbet = mynextbet * multi
  147. print( ls.." > nb: "..round( mynextbet, 8 ).." b: "..round( balance, 8 ))
  148. end
  149. ws = 0
  150. else
  151. balancedelta = balance - lastbalance
  152. --swingprofit = swingprofit + balancedelta
  153. lastbalance = balance
  154. print( "\n>> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>")
  155. print( "\n >>> WIN after [ " .. ls .. " ] rounds at ".. round( mychance, 2 ) .. "% <<<\n")
  156. print( " p/pd: "..round( profit, 8 ).." ( "..round( balancedelta, 8).." )")
  157. print( " b/minb: "..round( balance, 8 ).." ( "..round( minbalance, 8).." )\n")
  158. print( " lsmax: " .. lsmax.." ( "..bets..")")
  159. --print( " swtgt: "..round( swingtarget, 8 ))
  160. print( " jar: "..round( tippingjar, 8 ).."\n")
  161. print( "\n*********************************************************************************")
  162. capped = false
  163. ls = 0
  164. lastprofit = profit
  165. mychance = chance3p
  166. --if stoplossflag then
  167. -- ltd = ltd - currentprofit
  168. mynextbet = 0
  169. --end
  170. multi = 2
  171. end
  172. end
  173. function divIt()
  174. if !stoplossflag then
  175. if algpos == 1 then
  176. if lastBet.roll > 49.5 then
  177. bethigh = false
  178. mynextbet = alg_bet2
  179. else
  180. mynextbet = alg_bet1
  181. end
  182. end
  183. if algpos == 2 then
  184. bethigh = true
  185. mynextbet = alg_bet1
  186. if !win then
  187. alg_bet2 = alg_bet2 + alg_bet1
  188. end
  189. end
  190. end
  191. if algpos == 1 then
  192. algpos = 2
  193. else
  194. algpos = 1
  195. end
  196. if maxbalance - balance >= stoploss then
  197. mynextbet = 0
  198. stoplossflag = true
  199. betselect()
  200. end
  201. print( "[ " .. algpos .. " ]" .. " [" .. maxbalance - balance .. "] r: " .. round( balance, 8 ) .. " n: " .. round( nextbet, 8 ))
  202. end
  203. function checkups()
  204. if balance < minbalance then minbalance = balance end
  205. if profit > maxprofit then maxprofit = profit end
  206. if mynextbet > maxbet then maxbet = mynextbet end
  207. if lsmax < ls then lsmax = ls end
  208. if tippingjar >= 0.00050001 then
  209. ---tip( "quintessence", 0.00050001 )
  210. tippingjar = 0
  211. --maxbalance = balance
  212. ls = 0
  213. end
  214. if mynextbet > balance or nextbet > balance then
  215. print( "\n*********************************************************************************")
  216. print( " >>> BUST after [ " .. ls .. " ] rounds at ".. round( mychance, 2 ) .. "% <<<\n")
  217. print( " pr/pb: "..round( profit, 8 ).." / "..round( previousbet, 8 ))
  218. print( " pr/delta: "..round( profit, 8 ).." ( "..round( ( profit - lastprofit ), 8).." )")
  219. print( " ls/maxb: " .. lsmax.." ( "..round( maxbet, 8).." )")
  220. print( " b/minb: "..round( balance, 8 ).." ( "..round( minbalance, 8).." )\n")
  221. print( " bets: " .. bets)
  222. print( "\n*********************************************************************************\n\n")
  223. -- stop()
  224. end
  225. if balance > maxbalance + target then
  226. tippingjar = tippingjar + ( balance - maxbalance ) * 0.5
  227. maxbalance = balance
  228. target = balance * 0.005
  229. --stoplossflag = false
  230. mynextbet = 0
  231. --mychance = chance3p
  232. --targetruns = 0
  233. calculateBets()
  234. betselect()
  235. end
  236. if balance > maxbalance then
  237. maxbalance = balance
  238. alg_bet2 = alg_bet1
  239. if !stoplossflag then
  240. mynextbet = 0
  241. mychance = chance3p
  242. stoplossflag = false
  243. else
  244. mynextbet = 0
  245. mychance = chance3p
  246. stoplossflag = false
  247. end
  248. -- targetruns = 0
  249. --betselect()
  250. end
  251. chance = round( mychance, 2 )
  252. --if mynextbet < unitfactor then mynextbet = unitfactor end
  253. nextbet = mynextbet
  254. if balance - nextbet < maxbalance - 0.002 then stop() end
  255. end
  256. function betselect()
  257. local lasthigh = 0
  258. local lastlow = 0
  259. for i = 1, polvlcount do
  260. if polvls[i].lshigh > polvls[i].strk_wait and !capped then
  261. ls = polvls[i].lshigh
  262. mychance = polvls[i].ch
  263. multi = polvls[i].multi
  264. mynextbet = polvls[i].basebet
  265. tempstand = polvls[i].strk_stand
  266. bethigh = true
  267. --pdelta = budget
  268. print("\n**************************************************************************")
  269. print(" >>> going [ "..polvls[i].payout.." x ] after "..ls.." rounds <<<")
  270. print("")
  271. print(" betting on HIGH")
  272. print(" chance: "..mychance.."%")
  273. print(" basebet: "..round( mynextbet, 8 ))
  274. print("\n")
  275. print( "\n<< << << << << << << << << << << << << << << << << << << << <<\n")
  276. capped = true
  277. end
  278. if polvls[i].lslow > polvls[i].strk_wait and !capped then
  279. ls = polvls[i].lslow
  280. mychance = polvls[i].ch
  281. multi = polvls[i].multi
  282. mynextbet = polvls[i].basebet
  283. tempstand = polvls[i].strk_stand
  284. bethigh = false
  285. print("\n**************************************************************************")
  286. print(" >>> going [ "..polvls[i].payout.." x ] after "..ls.." rounds <<<")
  287. print("")
  288. print(" betting on LOW")
  289. print(" chance: "..mychance.."%")
  290. print(" basebet: "..round( mynextbet, 8 ))
  291. print("\n")
  292. print( "\n<< << << << << << << << << << << << << << << << << << << << <<\n")
  293. capped = true
  294. end
  295. end
  296. end
  297. function calculateBets()
  298. local gainstring = ""
  299. local waitstake = waitstake_start
  300. local ws_delta = round((( waitstake_end - waitstake_start ) / polvlcount ), 0 )
  301. local streaksource = streaksource_start
  302. local streaksource_delta = round((( streaksource_start - streaksource_end ) / polvlcount ), 0 )
  303. print("ws_delta: "..ws_delta.." streaksource_delta: "..streaksource_delta )
  304. for i = 1, polvlcount do
  305. polvls[i].strk_max = round( math.abs( math.log( streaksource ) / math.log(( 100 - polvls[i].ch ) / 100 )), 0 )
  306. budget = balance * ( budget_ratio / 100 )
  307. polvls[i].strk_stand = polvls[i].strk_max
  308. local bet = unitfactor * 1
  309. for j = 1, polvls[i].strk_max do
  310. bet = bet * polvls[i].multi
  311. budget = budget - bet
  312. if budget < unitfactor * 1 then
  313. polvls[i].strk_stand = j - 1
  314. break
  315. end
  316. end
  317. budget = balance * ( budget_ratio / 100 )
  318. local bet = unitfactor * 1
  319. for k = 1, round( polvls[i].strk_stand * (( 100 - waitstake ) / 100 ), 0 ) - 1 do
  320. bet = bet * polvls[i].multi
  321. end
  322. polvls[i].basebet = round( bet, 8 )
  323. -- if polvls[i].strk_wait == nil then
  324. -- polvls[i].strk_stand = round(( polvls[i].strk_stand * ( waitstake / 100 )), 0 )
  325. -- polvls[i].strk_wait = polvls[i].strk_max - polvls[i].strk_stand
  326. -- end
  327. -- local waitdiff = polvls[i].strk_wait - ( polvls[i].strk_max - polvls[i].strk_stand )
  328. -- if keepwait and polvls[i].strk_wait != nil and waitdiff > 0 then
  329. -- local bet = unitfactor * 1
  330. -- for l = 1, waitdiff do
  331. -- bet = bet * polvls[i].multi
  332. -- end
  333. -- if waitdiff > 0 then gainstring = " > "..waitdiff.." gained" else gainstring = "" end
  334. -- polvls[i].basebet = round( bet, 8 )
  335. -- else
  336. polvls[i].strk_stand = round(( polvls[i].strk_stand * ( waitstake / 100 )), 0 )
  337. polvls[i].strk_wait = polvls[i].strk_max - ( polvls[i].strk_stand /1 )
  338. --end
  339. waitstake = waitstake + ws_delta
  340. streaksource = streaksource - streaksource_delta
  341. print("[ "..polvls[i].payout.." x ] "..polvls[i].strk_max.." | "..polvls[i].strk_stand.." | "..polvls[i].strk_wait.." > bb: "..polvls[i].basebet..gainstring)
  342. end
  343. print("streaksource_start: "..streaksource_start.." streaksource_end: "..streaksource_end )
  344. streaksource_start = round(( streaksource_start + ( streaksource_start / 100 * 0.9 ) ), 0 )
  345. streaksource_end =round(( streaksource_end + ( streaksource_end / 100 * 0 ) ), 0 )
  346. if streaksource_end > 1000000 then streaksource_end = 1000000 end
  347. if streaksource_start > 1000000 then streaksource_start = 1000000 end
  348. end
  349. function registerRolls()
  350. for i = 1, polvlcount do
  351. --print("lastroll: "..lastBet.roll)
  352. if lastBet.roll <= 100 - polvls[i].ch then
  353. polvls[i].lshigh = polvls[i].lshigh + 1
  354. else
  355. for j = 1, i do
  356. polvls[j].lshigh = 0
  357. --print("del lvl "..j)
  358. end
  359. end
  360. if lastBet.roll >= polvls[i].ch then
  361. polvls[i].lslow = polvls[i].lslow + 1
  362. else
  363. for j = 1, i do
  364. polvls[j].lslow = 0
  365. end
  366. end
  367. if polvls[i].lshigh > polvls[i].lshighmax then polvls[i].lshighmax = polvls[i].lshigh end
  368. if polvls[i].lslow > polvls[i].lslowmax then polvls[i].lslowmax = polvls[i].lslow end
  369. end
  370. end
  371. function selectbet()
  372. if WaT then
  373. tcnt = tcnt + 1
  374. if tcnt == 1 then checkLastRoll() end
  375. if tcnt == 2 then
  376. WaT = false -- after waiting 2 rolls we can start
  377. tcnt = 0
  378. updatePastRolls()
  379. checkLastRoll()
  380. basebet = basebet3p
  381. print( "\n---------------------------------- ----------------------------------------------------------------\n" )
  382. print( " >>> T A R G E T R E A C H E D - R E S E T")
  383. print( " target: " .. round( target, 8 ))
  384. print( " new target: " .. round( target, 8 ))
  385. print( " maxbet: " .. round( maxbet, 8 ))
  386. print( "\n--------------------------------------------------------------------------------------------------\n" )
  387. chance = chanceWork
  388. end
  389. else
  390. updatePastRolls()
  391. checkLastRoll()
  392. end
  393. if clumptrigger and dl == dll and dll == dlll then
  394. clumptrigger = false
  395. ct = "> <"
  396. end
  397. if clumptrigger and dl != dll and dl == dlll then
  398. clumptrigger = false
  399. ct = "> <"
  400. end
  401. -- clump check v1
  402. if dl == dll and dlll == dllll and dllll != dlllll then
  403. clumptrigger = true
  404. ct = " >< "
  405. end
  406. -- clump check v2
  407. -- if dl == dll and dlll != dll and dlll == dllll and dllll != dlllll then
  408. -- clumptrigger = true
  409. -- ct = " >< "
  410. -- end
  411. if !clumptrigger then
  412. if ls == 4 then
  413. bethigh = dll -- (decision before last)
  414. else
  415. bethigh = !dll
  416. end
  417. else
  418. if ls == 4 then
  419. bethigh = dllll -- (decision before last)
  420. else
  421. bethigh = !dllll
  422. end
  423. end
  424. end
  425. function checkLastRoll()
  426. if lastBet.roll <= chance then
  427. dl = false
  428. echo_dl = "0"
  429. else
  430. dl = true
  431. echo_dl = "1"
  432. end
  433. end
  434. function updatePastRolls()
  435. dlllll = dllll
  436. dllll = dlll
  437. dlll = dll
  438. dll = dl
  439. echo_dlllll = echo_dllll
  440. echo_dllll = echo_dlll
  441. echo_dlll = echo_dll
  442. echo_dll = echo_dl
  443. end
  444. function round( val, decimal )
  445. if ( decimal ) then
  446. return math.floor(( val * 10^decimal ) + 0.5 ) / ( 10^decimal )
  447. else
  448. return math.floor( val + 0.5 )
  449. end
  450. end

comments powered by Disqus