testing lua script


SUBMITTED BY: semar313

DATE: April 7, 2022, 2:05 p.m.

FORMAT: Text only

SIZE: 11.5 kB

HITS: 419

  1. --Algorithm---
  2. algA = 0
  3. algB = 100
  4. ----------
  5. MinChance = 5
  6. MaxChance = 95
  7. ----------
  8. chance = math.random(MinChance*100,MaxChance*100)/100
  9. multiW = chance/(100-chance)+1
  10. multiL = chance/(100-chance)+1
  11. streak = ((100-chance)/(chance/10))*multiL
  12. base = (balance*((chance/100)*.95))/multiL^streak
  13. MinBase = 0.0001
  14. MaxBase = 0.01
  15. if base <= MinBase then base = MinBase end
  16. if base >= MaxBase then base = MaxBase end
  17. ----------
  18. AdditionConditionOnWin = 6
  19. AdditionConditionOnLost = 1
  20. --1=Normal
  21. --2=UpByAmount
  22. --3=UpByProfit
  23. --4=DownByAmount
  24. --5=DownByProfit
  25. --6=MultiFromLost
  26. ---reset to base if---
  27. MaxWin = 0 --set 0 if not reset-base
  28. MaxLost = 0 --set 0 if not reset-base
  29. ----------
  30. ----------
  31. nextbet = base
  32. bethigh = true
  33. HighLow = math.random(0,5)
  34. la = 0
  35. wc = 0
  36. lc = 0
  37. tg = 0
  38. bt = 0
  39. ---rebase---
  40. reset_bet = 0.000000001
  41. ---set stop target---
  42. start_balance = balance
  43. target_profit = 8000
  44. function dobet()
  45. if balance == start_balance + target_profit then
  46. stop()
  47. end
  48. ----------------
  49. --High/low
  50. ---
  51. if HighLow == 0 then bethigh = true end
  52. ---
  53. if HighLow == 1 then
  54. swhl = math.random(0,9)
  55. if swhl == 0 then bethigh = false end
  56. if swhl == 1 then bethigh = true end
  57. if swhl == 2 then bethigh = false end
  58. if swhl == 3 then bethigh = false end
  59. if swhl == 4 then bethigh = true end
  60. if swhl == 5 then bethigh = false end
  61. if swhl == 6 then bethigh = true end
  62. if swhl == 7 then bethigh = false end
  63. if swhl == 8 then bethigh = false end
  64. if swhl == 9 then bethigh = true end
  65. end
  66. ---
  67. if HighLow == 2 then
  68. if bethigh == true then
  69. bethigh = false
  70. else
  71. bethigh = true
  72. end
  73. end
  74. ---
  75. if HighLow == 3 then
  76. r = math.random(1,4)
  77. if r == 2 then
  78. bethigh = false end
  79. else
  80. if r == 4 then bethigh = true end
  81. end
  82. ---
  83. if HighLow == 4 then
  84. br1 = math.random (0,5) br2 = math.random (0,5)
  85. if br1 + br2 >= 5 then
  86. bethigh = true
  87. else
  88. bethigh = false
  89. end
  90. end
  91. ---
  92. if HighLow == 5 then bethigh = false end
  93. ----------
  94. ----------
  95. if win then
  96. la -= currentprofit
  97. if la <= (-reset_bet) then
  98. tg += currentprofit
  99. la = 0
  100. wc +=1
  101. lc = 0
  102. if tg >= base*100 or bt >= (100-chance)*multiL then
  103. print("")
  104. print("End of Season")
  105. print("Get WON "..(tg).."Doge")
  106. print("")
  107. print("New Season Start")
  108. print("")
  109. tg = 0 bt = 0
  110. ----------
  111. MinChance = 5
  112. MaxChance = 95
  113. ----------
  114. chance = math.random(MinChance*100,MaxChance*100)/100
  115. multiW = chance/(100-chance)+1
  116. multiL = chance/(100-chance)+1
  117. streak = ((100-chance)/(chance/10))*multiL
  118. base = (balance*((chance/100)*.95))/multiL^streak
  119. MinBase = 0.0001
  120. MaxBase = 0.01
  121. if base <= MinBase then base = MinBase end
  122. if base >= MaxBase then base = MaxBase end
  123. ----------
  124. AdditionConditionOnWin = 6
  125. AdditionConditionOnLost = 1
  126. --1=Normal
  127. --2=UpByAmount
  128. --3=UpByProfit
  129. --4=DownByAmount
  130. --5=DownByProfit
  131. --6=MultiFromLost
  132. ---reset to base if---
  133. MaxWin = 0 --set 0 if not reset-base
  134. MaxLost = 0 --set 0 if not reset-base
  135. ----------
  136. random_chance = false
  137. algorithm = math.random(algA*100,algB*100)/100
  138. HighLow = math.random(0,5)
  139. end
  140. -----------------
  141. ---
  142. if algorithm == 5 then
  143. chance = 5
  144. multiW = 0.1
  145. multiL = 1.082
  146. streak = 150
  147. base = (balance*((chance/100)*.95))/multiL^streak
  148. MinBase = 0.0001
  149. MaxBase = 0.01
  150. if base <= MinBase then base = MinBase end
  151. if base >= MaxBase then base = MaxBase end
  152. ----------
  153. AdditionConditionOnWin = 6
  154. AdditionConditionOnLost = 1
  155. ---betFunction---
  156. --1=Normal
  157. --2=UpByAmount
  158. --3=UpByProfit
  159. --4=DownByAmount
  160. --5=DownByProfit
  161. --6=MultiFromLost
  162. ---reset to base if---
  163. MaxWin = 0 --set 0 if not reset-base
  164. MaxLost = 0 --set 0 if not reset-base
  165. ----------
  166. print("")
  167. print("----------")
  168. print("Algorithm ="..algorithm)
  169. print("----------")
  170. print("")
  171. end
  172. ---
  173. ---
  174. if algorithm == 33 then
  175. chance = 33
  176. multiW = 1.11
  177. multiL = 1.52
  178. streak = 32
  179. base = (balance*((chance/100)*.95))/multiL^streak
  180. MinBase = 0.0001
  181. MaxBase = 0.01
  182. if base <= MinBase then base = MinBase end
  183. if base >= MaxBase then base = MaxBase end
  184. ----------
  185. AdditionConditionOnWin = 1
  186. AdditionConditionOnLost = 1
  187. ---betFunction---
  188. --1=Normal
  189. --2=UpByAmount
  190. --3=UpByProfit
  191. --4=DownByAmount
  192. --5=DownByProfit
  193. --6=MultiFromLost
  194. ---reset to base if---
  195. MaxWin = 0 --set 0 if not reset-base
  196. MaxLost = 0 --set 0 if not reset-base
  197. ----------
  198. print("")
  199. print("----------")
  200. print("Algorithm ="..algorithm)
  201. print("----------")
  202. print("")
  203. end
  204. ---
  205. ---
  206. if algorithm == 49.5 then
  207. chance = 49.5
  208. multiW = 0.275
  209. multiL = 1.82
  210. streak = 16
  211. base = (balance*((chance/100)*.95))/multiL^streak
  212. MinBase = 0.0001
  213. MaxBase = 0.01
  214. if base <= MinBase then base = MinBase end
  215. if base >= MaxBase then base = MaxBase end
  216. ----------
  217. AdditionConditionOnWin = 1
  218. AdditionConditionOnLost = 1
  219. ---betFunction---
  220. --1=Normal
  221. --2=UpByAmount
  222. --3=UpByProfit
  223. --4=DownByAmount
  224. --5=DownByProfit
  225. --6=MultiFromLost
  226. ---reset to base if---
  227. MaxWin = 0 --set 0 if not reset-base
  228. MaxLost = 0 --set 0 if not reset-base
  229. ----------
  230. print("")
  231. print("----------")
  232. print("Algorithm ="..algorithm)
  233. print("----------")
  234. print("")
  235. end
  236. ---
  237. ---
  238. if algorithm == 60 then
  239. Chance = 60
  240. multiW = 1.665
  241. multiL = 1.665
  242. streak = 27
  243. base = (balance*((chance/100)*.95))/multiL^streak
  244. MinBase = 0.0001
  245. MaxBase = 0.01
  246. if base <= MinBase then base = MinBase end
  247. if base >= MaxBase then base = MaxBase end
  248. ----------
  249. AdditionConditionOnWin = 1
  250. AdditionConditionOnLost = 1
  251. ---betFunction---
  252. --1=Normal
  253. --2=UpByAmount
  254. --3=UpByProfit
  255. --4=DownByAmount
  256. --5=DownByProfit
  257. --6=MultiFromLost
  258. ---reset to base if---
  259. MaxWin = 0 --set 0 if not reset-base
  260. MaxLost = 0 --set 0 if not reset-base
  261. ----------
  262. print("")
  263. print("----------")
  264. print("Algorithm ="..algorithm)
  265. print("----------")
  266. print("")
  267. end
  268. ---
  269. ---
  270. if algorithm == 66.6 then
  271. Chance = 66.6
  272. multiW = 0.44
  273. multiL = 2.25
  274. streak = 12
  275. base = (balance*((chance/100)*.95))/multiL^streak
  276. MinBase = 0.0001
  277. MaxBase = 0.01
  278. if base <= MinBase then base = MinBase end
  279. if base >= MaxBase then base = MaxBase end
  280. ----------
  281. AdditionConditionOnWin = 1
  282. AdditionConditionOnLost = 1
  283. ---betFunction---
  284. --1=Normal
  285. --2=UpByAmount
  286. --3=UpByProfit
  287. --4=DownByAmount
  288. --5=DownByProfit
  289. --6=MultiFromLost
  290. ---reset to base if---
  291. MaxWin = 0 --set 0 if not reset-base
  292. MaxLost = 0 --set 0 if not reset-base
  293. ----------
  294. print("")
  295. print("----------")
  296. print("Algorithm ="..algorithm)
  297. print("----------")
  298. print("")
  299. end
  300. ---
  301. ---
  302. if algorithm == 72 then
  303. Chance = 79
  304. multiW = 1.25
  305. multiL = 1.85
  306. streak = 18
  307. base = (balance*((chance/100)*.95))/multiL^streak
  308. MinBase = 0.0001
  309. MaxBase = 0.01
  310. if base <= MinBase then base = MinBase end
  311. if base >= MaxBase then base = MaxBase end
  312. ----------
  313. AdditionConditionOnWin = 1
  314. AdditionConditionOnLost = 1
  315. ---betFunction---
  316. --1=Normal
  317. --2=UpByAmount
  318. --3=UpByProfit
  319. --4=DownByAmount
  320. --5=DownByProfit
  321. --6=MultiFromLost
  322. ---reset to base if---
  323. MaxWin = 0 --set 0 if not reset-base
  324. MaxLost = 0 --set 0 if not reset-base
  325. ----------
  326. print("")
  327. print("----------")
  328. print("Algorithm ="..algorithm)
  329. print("----------")
  330. print("")
  331. end
  332. ---
  333. ---
  334. if algorithm == 72.55 then
  335. MinChance = 72
  336. MaxChance = 82
  337. random_chance = true
  338. multiW = 1
  339. multiL = 2.875
  340. streak = 10
  341. base = (balance*((chance/100)*.95))/multiL^streak
  342. MinBase = 0.0001
  343. MaxBase = 0.01
  344. if base <= MinBase then base = MinBase end
  345. if base >= MaxBase then base = MaxBase end
  346. ----------
  347. AdditionConditionOnWin = 1
  348. AdditionConditionOnLost = 1
  349. ---betFunction---
  350. --1=Normal
  351. --2=UpByAmount
  352. --3=UpByProfit
  353. --4=DownByAmount
  354. --5=DownByProfit
  355. --6=MultiFromLost
  356. ---reset to base if---
  357. MaxWin = 0 --set 0 if not reset-base
  358. MaxLost = 0 --set 0 if not reset-base
  359. ----------
  360. print("")
  361. print("----------")
  362. print("Algorithm ="..algorithm)
  363. print("----------")
  364. print("")
  365. end
  366. ---
  367. ---
  368. if algorithm == 74 then
  369. chance = 74
  370. multiW = 0.35
  371. multiL = 2.875
  372. streak = 10
  373. base = (balance*((chance/100)*.95))/multiL^streak
  374. MinBase = 0.0001
  375. MaxBase = 0.01
  376. if base <= MinBase then base = MinBase end
  377. if base >= MaxBase then base = MaxBase end
  378. ----------
  379. AdditionConditionOnWin = 1
  380. AdditionConditionOnLost = 1
  381. ---betFunction---
  382. --1=Normal
  383. --2=UpByAmount
  384. --3=UpByProfit
  385. --4=DownByAmount
  386. --5=DownByProfit
  387. --6=MultiFromLost
  388. ---reset to base if---
  389. MaxWin = 0 --set 0 if not reset-base
  390. MaxLost = 0 --set 0 if not reset-base
  391. ----------
  392. print("")
  393. print("----------")
  394. print("Algorithm ="..algorithm)
  395. print("----------")
  396. print("")
  397. end
  398. ---
  399. ---
  400. if algorithm == 80 then
  401. chance = 80
  402. multiW = 1.275
  403. multiL = 2.375
  404. streak = 12
  405. base = (balance*((chance/100)*.95))/multiL^streak
  406. MinBase = 0.0001
  407. MaxBase = 0.01
  408. if base <= MinBase then base = MinBase end
  409. if base >= MaxBase then base = MaxBase end
  410. ----------
  411. AdditionConditionOnWin = 1
  412. AdditionConditionOnLost = 1
  413. ---betFunction---
  414. --1=Normal
  415. --2=UpByAmount
  416. --3=UpByProfit
  417. --4=DownByAmount
  418. --5=DownByProfit
  419. --6=MultiFromLost
  420. ---reset to base if---
  421. MaxWin = 0 --set 0 if not reset-base
  422. MaxLost = 0 --set 0 if not reset-base
  423. ----------
  424. print("")
  425. print("----------")
  426. print("Algorithm ="..algorithm)
  427. print("----------")
  428. print("")
  429. end
  430. ---
  431. ----------
  432. if chance <= 25 then
  433. bethigh = true
  434. if HighLow <= 2 then bethigh = false end
  435. end
  436. ----------
  437. nextbet = base
  438. else
  439. ----------
  440. if random_chance == true then
  441. chance = math.random(MinChance*100,MaxChance*100)/100
  442. end
  443. ----------
  444. ---Addition Condition On Win---
  445. if AdditionConditionOnWin == 1 then
  446. nextbet = previousbet * multiW end
  447. if AdditionConditionOnWin == 3 then
  448. nextbet = previousbet + currentprofit end
  449. if AdditionConditionOnWin == 5 then
  450. nextbet = previousbet - currentprofit end
  451. if AdditionConditionOnWin == 6 then
  452. nextbet = la * multiW end
  453. ----------
  454. if nextbet <= base then nextbet = previousbet end
  455. if MaxWin >= 1 and wc >= MaxWin then wc = 0 nextbet = base end
  456. end
  457. else
  458. la += previousbet
  459. wc = 0
  460. lc += 1
  461. tg -= previousbet
  462. ----------
  463. ---Addition Condition On Lost---
  464. if AdditionConditionOnLost == 1 then
  465. nextbet = previousbet * multiL end
  466. if AdditionConditionOnLost == 2 then
  467. nextbet = previousbet + previousbet end
  468. if AdditionConditionOnLost == 4 then
  469. nextbet = previousbet - previousbet end
  470. if AdditionConditionOnLost == 6 then
  471. nextbet = la * multiL end
  472. ----------
  473. if nextbet <= base then nextbet = base end
  474. if MaxLost >= 1 and lc >= MaxLost then lc = 0 nextbet = base end
  475. end
  476. bt += 1
  477. ----------------
  478. if random_chance == true then
  479. chance = math.random(MinChance*100,MaxChance*100)/100
  480. end
  481. ----------------
  482. end

comments powered by Disqus