Advertisement
dicekode

dicekode-multichance

Nov 23rd, 2020
893
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.45 KB | None | 0 0
  1.    
  2. -- edited by DICEKODE
  3. -- youtube: https://www.youtube.com/channel/UC-BpueviNmn12aV_pBRY3gQ
  4. -- blog: https://dicekode.blogspot.com
  5. -- whatsapp: https://chat.whatsapp.com/Faes925uLw9HkhZeFHchFf
  6. -- linkdonasi: DTbhgnUi71WE9QFVRdQCN64xPeyMRoXAxP
  7. -- This is GAMBLING! -- DWYOR (Do With Your Own Risk)
  8.  
  9.  
  10. div     = 0.01
  11. base    = balance * div
  12. profs   = 1
  13. profs1  = profs
  14. profc   = 0
  15. c       = 1
  16. chn     = {4949,6060,8181}
  17. chx     = {5050,7070,8383}
  18. ifw     = {1.5,1.8,2.1}
  19. ifl     = {1.5,1.2,0.8}
  20. chance  = 45
  21. ifwin   = ifw[c]
  22. iflose  = ifw[c]
  23. chmin   = chn[c]
  24. chmax   = chx[c]
  25. nextbet = base
  26.  
  27. function dobet()
  28.     chance = math.random(chmin,chmax)/100
  29.     profc += currentprofit
  30.    
  31.     if profc > 0 then
  32.         profc   = 0
  33.         nextbet = base
  34.     else
  35.         if win then
  36.             nextbet = previousbet * ifwin
  37.         else
  38.             nextbet = previousbet * iflose
  39.         end
  40.     end
  41.    
  42.     if (currentstreak == -3) then
  43.         nextbet = base
  44.     end
  45.    
  46.     profn = profit / (balance - profit) * 100
  47.     if profit > profs then
  48.         c += 1
  49.         if c > 3 then
  50.             c       = 1
  51.             bethigh = !bethigh
  52.         end
  53.         profs  = profs1 + profit
  54.         ifwin  = ifw[c]
  55.         iflose = ifw[c]
  56.         chmin  = chn[c]
  57.         chmax  = chx[c]
  58.     end
  59.     print(profn)
  60.     print(profs)
  61.     print(chance)
  62.     print(ifwin)
  63.     print(iflose)
  64.     print(chmin)
  65.     print(chmax)
  66. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement