dicekode

dicekode-basedoublev2

Nov 5th, 2020
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.90 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     = 50
  9. base       = balance * 0.00001
  10.  
  11. base1      = base * 2
  12. base2      = base1
  13. nextbet    = base
  14. rollcount  = 22
  15. target     = balance * 1.3
  16. balance2   = balance
  17. multiplier = 1.18
  18. riskfail   = 0
  19. riskpass   = 0
  20. justfail   = 0
  21. justpass   = 0
  22. jackpot    = 0
  23. profits    = 0
  24. limit      = -balance * 0.1
  25. limit1     = limit
  26. step       = balance * 0.01
  27. step1      = step
  28. risk       = false
  29. stopwin    = false
  30. bethigh    = false
  31.  
  32. function dobet()
  33.    
  34.     profits += currentprofit
  35.    
  36.     if balance > balance2 then
  37.         base2    = base * 1.5
  38.         balance2 = balance
  39.     else
  40.         base2 = balance2 - balance
  41.         if base2 < base * 1.5 then
  42.             base2 = base * 1.5
  43.         end
  44.     end
  45.    
  46.     if (rollcount == 23) then
  47.         rollcount = 0
  48.         bethigh   = !bethigh
  49.     else
  50.         rollcount += 1
  51.     end
  52.    
  53.     if balance < nextbet then
  54.         stop()
  55.         print("loss!")
  56.     end
  57.    
  58.     if balance >= target then
  59.         stop()
  60.         print("target")    
  61.     end
  62.    
  63.     if risk and win then
  64.         if profits >= 0 then
  65.             justpass += 1
  66.             riskpass += 1
  67.             justfail = 0
  68.             risk     = false  
  69.         else  
  70.             riskfail += 1
  71.             justfail += 1
  72.             justpass = 0
  73.         end
  74.     end
  75.    
  76.     if profits >= 0 then
  77.         if stopwin then stop() end
  78.         profits = 0
  79.     end
  80.    
  81.     chance = math.random(30,55)
  82.     print("\n\n")
  83.     print("base2 = "..base2)
  84.     print("profits = "..profits)
  85.     print("rollcount "..rollcount)
  86.     print("risk-fail "..justfail.."/"..riskfail)
  87.     print("risk-pass "..justpass.."/"..riskpass)
  88.    
  89.     if profit > 0 then
  90.         base2 = base1
  91.     end
  92.    
  93.     if win then
  94.         chance  = math.random(10,15)
  95.         nextbet = base
  96.     else
  97.         nextbet = previousbet * multiplier
  98.     end
  99.    
  100.     if (currentstreak == -1) then
  101.         chance  = math.random(15,20)
  102.         nextbet = base2 * 1.35
  103.     end
  104.        
  105.     if (currentstreak == -2) then
  106.         chance  = math.random(15,20)
  107.         nextbet = previousbet
  108.         base2   = previousbet
  109.     end
  110.    
  111.     if (currentstreak == -3) then
  112.         chance  = math.random(15,20)
  113.         nextbet = previousbet
  114.         base2   = previousbet
  115.     end
  116.  
  117.     if (currentstreak == -4) then  
  118.         chance  = math.random(15,50)
  119.         nextbet = (balance2 - balance) * multiplier
  120.         risk    = true
  121.     end  
  122.    
  123.     if profit > step then
  124.         step  = step1 + profit
  125.         limit = limit1 + profit
  126.     end
  127.    
  128.     if profit - nextbet < limit then stop() end
  129.  
  130. end
Add Comment
Please, Sign In to add comment