full autoassault dice script


SUBMITTED BY: phroyd

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

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

FORMAT: Lua

SIZE: 17.8 kB

HITS: 75509

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

comments powered by Disqus