dicekode

dicekode-risk

Nov 3rd, 2020 (edited)
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.83 KB | None | 0 0
  1. -- edited by DICEKODE
  2. -- youtube: https://www.youtube.com/channel/UC-BpueviNmn12aV_pBRY3gQ
  3. -- blog: https://dicekode.blogspot.com
  4. -- whatsapp: https://chat.whatsapp.com/Faes925uLw9HkhZeFHchFf
  5. -- linkdonasi: berikan pada yang "berhak"
  6. -- This is GAMBLING! -- DWYOR (Do With Your Own Risk)
  7.  
  8. basebet     = balance* 0.0000001
  9. target      = balance * 0.2
  10. wincount    = 0
  11. loss1       = 0
  12. loss2       = 0
  13. roundprofit = 0
  14. chance      = 69
  15. bet1        = false
  16. bet2        = true
  17. stake       = basebet
  18. nextbet     = stake
  19.  
  20. function dobet()
  21.     roundprofit += currentprofit
  22.     bethigh = !bethigh
  23.     chance  = math.random(1100,2200)/100
  24.    
  25.     if roundprofit>basebet then
  26.         roundprofit = 0
  27.         wincount    = 0
  28.         loss1       = 0
  29.         loss2       = 0  
  30.         bet1        = false
  31.         bet2        = true
  32.         stake       = basebet  
  33.         nextbet     = stake
  34.     end
  35.     if win then
  36.         loss1 = 0
  37.         if (bet1) then
  38.             loss2 = 0
  39.             if bet1 then
  40.                 stake = stake
  41.                 bet1  = false
  42.                 bet2  = true
  43.                 resetseed()
  44.             end
  45.         end
  46.         wincount += 1
  47.         if wincount == 10 then
  48.             resetseed()
  49.             wincount = 0
  50.         end
  51.         nextbet = stake * 0.5
  52.     else
  53.         if bet1 then bet1 = false end
  54.         loss1 +=1
  55.         if (loss1 == 1) then
  56.             loss2 += 1
  57.             if bet2 then
  58.                 stake  = basebet * 1.3131
  59.                 bet2   = false
  60.             else
  61.                 stake *= 1.2525
  62.             end
  63.         end
  64.         if (loss2 == 3) then
  65.             bet1    = true
  66.             loss1   = 0
  67.             nextbet = stake
  68.         end
  69.     end
  70.     if balance > target then stop() end  
  71.     if basebet < 0.0000001 then basebet = 0.0000001 end
  72. end
Add Comment
Please, Sign In to add comment