dicekode

dicekode-dualchance

Oct 31st, 2020
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.22 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. chance      = math.random(8000,8500)/100
  9. bigchance   = math.random(7500,8500)/100
  10. smallchance = 100 - bigchance
  11. base        = balance/100000
  12. bethigh     = false
  13. target      = balance*1.2
  14. go          = true
  15. wincount    = 0
  16. losecount   = 0
  17. roll        = 0
  18. nextbet     = base
  19. a           = base
  20. multi       = 1.3
  21.  
  22. function dobet()
  23.     roll+=1
  24.     if balance > target then
  25.         stop()
  26.     end
  27.     if (wincount == 6) then
  28.         resetseed()  
  29.         bethigh  = !bethigh
  30.         wincount = 0
  31.     end
  32.     if win and go then
  33.         wincount+=1
  34.         nextbet   = base
  35.         bigchance = math.random(7500,8500)/100
  36.         chance    = bigchance
  37.         losecount = 0
  38.         a         = base
  39.         multi     = 1
  40.         go        = false
  41.     end
  42.     if roll>=50 then  
  43.         resetseed()  
  44.         print(" ")
  45.         print("target: "..target)  
  46.         print("nextbet: "..nextbet)  
  47.         print("chance: "..chance)  
  48.         print("Profit to go: "..target - balance)  
  49.         print(" ")
  50.     end  
  51.     if (!win) then  
  52.         nextbet = previousbet*multi
  53.         losecount+=1    
  54.     end
  55.     if chance >= 75 and (!win) then  
  56.         bethigh     = !bethigh
  57.         smallchance = 110 - bigchance
  58.         if smallchance < 30 then
  59.             multi = 1.43568
  60.         end
  61.         if smallchance >= 30 then
  62.             multi = 1.6365
  63.         end
  64.         go      = true
  65.         chance  = smallchance
  66.         nextbet = a*multi
  67.     end
  68.     if losecount >= 1 then
  69.         go     = true
  70.         chance = smallchance
  71.     end
  72.     if (losecount == 5) then
  73.         losecount = 0
  74.         go        = false
  75.         a         = previousbet
  76.         nextbet   = base
  77.         chance    = bigchance
  78.     end
  79.     print(" ")
  80.     print("multi: "..multi)
  81.     print("bigchance: "..bigchance)
  82.     print("smallchance: "..smallchance)
  83.     print(" ")
  84. end  
  85.    
  86.    
  87.    
  88.  
  89.  
Add Comment
Please, Sign In to add comment