dicekode

dicekode-wagerpd

Nov 1st, 2020 (edited)
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.93 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.0001
  9. nextbet = basebet
  10. chance  = 49.5
  11. minbal  = balance * 0.5
  12. maxbal  = balance * 1.5
  13. loss    = 0
  14.  
  15. function dobet()
  16.  
  17.     if win then
  18.         loss -= previousbet
  19.         nextbet = previousbet + basebet
  20.         if nextbet > loss then
  21.             nextbet = loss + basebet  
  22.         end
  23.  
  24.         if loss < 0 then
  25.             nextbet = basebet  
  26.             loss    = 0
  27.         end
  28.     else  
  29.         loss += previousbet
  30.         nextbet = previousbet
  31.     end
  32.  
  33.     print("")
  34.     print("loss:")
  35.     print(loss)
  36.  
  37.     if balance < minbal then stop() end
  38.     if balance > maxbal then stop() end
  39.  
  40. end
Add Comment
Please, Sign In to add comment