Advertisement
dicekode

12-12-2022 -- 001

Dec 12th, 2022
723
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.71 KB | None | 0 0
  1. resetstats()
  2. resetseed()
  3.  
  4. baldiv   = 1e4
  5. target   = balance*2
  6. base1    = balance/baldiv
  7. base2    = base1
  8. ch_hi    = 6.9
  9. ch_lo    = 2.9
  10. bal_now  = balance
  11. bal_prev = balance
  12. up_hi    = (base1*6.9)
  13. up_lo    = (base1*10)
  14. use_lo   = false
  15. use_hi   = true
  16. bethigh  = false
  17. chance   = 49.5
  18. nextbet  = base1
  19.  
  20. function dobet()
  21.     chance = math.random(1,9800)/100
  22.     if lastBet.roll>50 then
  23.         bethigh = not bethigh
  24.     end
  25.     if (balance>=target) then stop() end
  26.     if (balance>=(bal_now+(base2*ch_hi))) then
  27.         nextbet = base2*2
  28.         base2   = base2*2
  29.         ch_hi   = 4.9
  30.         ch_lo   = 4.9
  31.         use_lo  = false
  32.         use_hi  = false
  33.         bal_now = balance
  34.     end
  35.     if ((balance<=(bal_now-(base2*ch_lo))) and (not use_hi)) then
  36.         nextbet = base2*2
  37.         base2   = base2*2
  38.         ch_lo   = 4.9
  39.         ch_hi   = 9.9
  40.         use_lo  = false
  41.         use_hi  = true
  42.         bal_now = balance
  43.     end  
  44.     if ((balance<=(bal_now-(base2*ch_lo))) and (use_hi)) then
  45.         nextbet = base2*2
  46.         base2   = base2*2
  47.         ch_lo   = 4.9
  48.         ch_hi   = 4.9  
  49.         use_lo  = true
  50.         use_hi  = true
  51.         bal_now = balance
  52.     end  
  53.     if ((balance>=bal_prev) and (use_lo) and (balance<(bal_prev+up_hi))) then
  54.         use_lo   = false
  55.         bal_now  = bal_prev
  56.         bal_prev = bal_prev
  57.         ch_hi    = 6.9
  58.         ch_lo    = 2.9
  59.         use_hi   = true
  60.         sit      = false
  61.         nextbet  = base1
  62.         base2    = base1
  63.     end
  64.     if ((balance>=bal_prev) and (use_lo) and (balance>(bal_prev+up_hi)) and (balance<(bal_prev+up_lo))) then
  65.         use_lo   = false
  66.         bal_now  = bal_prev
  67.         bal_prev = bal_prev
  68.         ch_hi    = 6.9
  69.         ch_lo    = 2.9
  70.         use_hi   = true
  71.         nextbet  = base1*2
  72.         base2    = base1*2
  73.     end
  74.     if ((balance>(bal_prev+(up_lo))) and (balance<(bal_prev+(((math.floor((balance-bal_prev)/up_lo))*up_lo)+(up_hi))))) then
  75.         bal_now  = bal_prev+((math.floor((balance-bal_prev)/up_lo))*up_lo)  
  76.         bal_prev = bal_prev+((math.floor((balance-bal_prev)/up_lo))*up_lo)
  77.         ch_hi    = 6.9
  78.         ch_lo    = 2.9
  79.         use_hi   = true
  80.         use_lo   = false
  81.         nextbet  = base1
  82.         base2    = base1
  83.     end
  84.     if ((balance>(bal_prev+(up_lo))) and (balance>(bal_prev+(((math.floor((balance-bal_prev)/up_lo))*up_lo)+(up_hi))))) then
  85.         bal_now  = bal_prev+((math.floor((balance-bal_prev)/up_lo))*up_lo)
  86.         bal_prev = bal_prev+((math.floor((balance-bal_prev)/up_lo))*up_lo)
  87.         ch_hi    = 6.9
  88.         ch_lo    = 2.9
  89.         use_hi   = true
  90.         use_lo   = false
  91.         nextbet  = base1*2
  92.         base2    = base1*2
  93.     end
  94. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement