Advertisement
dicekode

dicekode-extendedmarti

Nov 26th, 2020 (edited)
700
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.89 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. bb = 0.01
  9. ct = 0
  10. lc = 0
  11. mt = 2.1
  12. mx = 0
  13. rt = 20
  14. nb = bb
  15. xb = bb
  16. ch = 49.5
  17.  
  18. nextbet = bb
  19. chance  = ch
  20.  
  21. function dobet()
  22.     pb = previousbet
  23.     ct += 1
  24.    
  25.     if (ct == rt + 1) then
  26.         if !win then lc += 1 end
  27.         xb = bb * lc
  28.         nb = bb + xb + mx  
  29.     elseif (ct == rt + 2) then
  30.         ct = 2
  31.         if win then
  32.             mx = 0
  33.             lc = 0
  34.             nb = bb
  35.         else
  36.             mx += xb
  37.             lc += 1
  38.             nb = xb * mt
  39.         end
  40.     else
  41.         if !win then lc += 1 end
  42.         nb = bb
  43.     end
  44.     nextbet = nb
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement