Advertisement
dicekode

dicekode-harummanis

Nov 20th, 2020 (edited)
783
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.46 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: DTbhgnUi71WE9QFVRdQCN64xPeyMRoXAxP
  6. -- This is GAMBLING! -- DWYOR (Do With Your Own Risk)
  7.  
  8. basebet    = 0.001
  9. ifwin      = 0.6
  10. iflose     = 1.2
  11. c          = 1
  12. ch         = {9,8,7,6,5,5,6,7,8,9}
  13. chance     = ch[c]
  14. nextbet    = basebet
  15. maxbalance = balance + 500
  16. minbalance = balance - 500
  17. profitc    = 0
  18.  
  19. function dobet()
  20.    
  21.     profitc += currentprofit
  22.    
  23.     if profitc > 0 then
  24.         profitc = 0
  25.         nextbet = basebet
  26.         c       = 1
  27.         chance  = ch[c]
  28.     else
  29.         if win then
  30.             c       = 1
  31.             chance  = ch[c]
  32.             if (ifwin == 1) then
  33.                 nextbet = basebet
  34.             else
  35.                 nextbet = previousbet * ifwin
  36.             end
  37.         else
  38.             c += 1
  39.             if (c == 11) then
  40.                 c = 1
  41.             end
  42.             if (c == 6 or c == 1) then
  43.                 nextbet = previousbet * iflose
  44.             end
  45.             chance = ch[c]
  46.         end
  47.         if nextbet < basebet then
  48.             nextbet = basebet
  49.         end
  50.     end
  51.     if balance - nextbet < minbalance then
  52.         print("STOP BALANCE MINIMAL")
  53.         stop()
  54.     end
  55.     if balance > maxbalance then
  56.        print("STOP BALANCE TARGET")
  57.        stop()
  58.    end
  59. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement