dicekode

dicekode-basedouble

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