Advertisement
dicekode

pre-roll

Jul 1st, 2022
2,134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.66 KB | None | 0 0
  1. arr_ch  = {10,11}
  2.  
  3. basebet = 0.05
  4. ct_bet  = 10
  5. mt_bet  = 1.23
  6.  
  7. preroll = 0.005
  8. ct_roll = 50
  9. mt_roll = 1.05
  10.  
  11. profitct    = 0
  12. count_roll  = 1
  13. count_bet   = 1
  14. lastbasebet = basebet  
  15. lastpreroll = preroll
  16. on_preroll  = true
  17.  
  18. chance  = arr_ch[1]
  19. bethigh = true
  20. nextbet = preroll
  21.  
  22. function dobet()
  23.     print("\n\n░▒▓█ PADEPOKAN DADU DICEKODE █▓▒░\n")
  24.     fn_simplestats(0,0)    
  25.     print("\n")
  26.  
  27.     chance = math.random(arr_ch[1]*100,arr_ch[2]*100)/100
  28.     profitct += currentprofit
  29.     if profitct > 0 then
  30.         profitct    = 0
  31.         count_bet   = 1
  32.         count_roll  = 1
  33.         lastbasebet = basebet
  34.         lastpreroll = preroll
  35.         on_preroll  = true
  36.     end
  37.  
  38.     if on_preroll then
  39.         nextbet     = lastpreroll * mt_roll
  40.         lastpreroll = nextbet
  41.         count_roll += 1
  42.         if count_roll%ct_roll==0 then  
  43.             on_preroll = false  
  44.         end
  45.     else
  46.         nextbet     = lastbasebet * mt_bet
  47.         lastbasebet = nextbet
  48.         count_bet += 1
  49.         if count_bet%ct_bet==0 then  
  50.             on_preroll = true  
  51.         end
  52.     end
  53.  
  54.     print("░▒▓- Preroll \t[ "..string.format("%.8f",lastpreroll).." x"..mt_roll.." \t"..count_roll.."/"..ct_roll.." ]")
  55.     print("░▒▓- Basebet \t[ "..string.format("%.8f",lastbasebet).." x"..mt_bet.." \t"..count_bet.."/"..ct_bet.." ]")
  56.     print("\n")
  57.  
  58. end
  59. simplestats_balhi = balance  
  60. simplestats_balst = balance  
  61. simplestats_maxdrop,simplestats_profitc,simplestats_wager = 0,0,0  
  62. simplestats_stoponwin = false
  63. function fn_simplestats(dmx,bmx)  
  64.     simplestats_wager += previousbet  
  65.     simplestats_profitc += currentprofit  
  66.     if (simplestats_profitc >= 0) then  
  67.         simplestats_profitc = 0  
  68.         if simplestats_stoponwin then stop() end
  69.         simplestats_balhi   = balance  
  70.     end  
  71.     simplestats_drop = simplestats_balhi - balance  
  72.     if (simplestats_drop > simplestats_maxdrop) then  
  73.         simplestats_maxdrop = simplestats_drop  
  74.     end  
  75.     if simplestats_maxdrop/balance*100 > dmx and dmx > 0 then simplestats_stoponwin = true end
  76.     if nextbet > bmx and bmx > 0 then simplestats_stoponwin = true end  
  77.     print("░▒▓- Profit \t[ "..string.format("%.8f",profit).."\t"..string.format("%.2f",profit/(balance-profit)*100).."% ]")  
  78.     print("░▒▓- Wager \t[ "..string.format("%.8f",simplestats_wager).."\t"..string.format("%.2f",simplestats_wager/simplestats_balst*100).."% ]")  
  79.     print("░▒▓- Dropdown \t[ "..string.format("%.8f",simplestats_maxdrop).."\t"..string.format("%.2f",simplestats_maxdrop/balance*100).."% ]")  
  80. end
  81.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement