Advertisement
dicekode

dicebot-fast1

Oct 29th, 2020
1,032
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.98 KB | None | 0 0
  1. -- qW = 1.5, change = 19.5
  2. -- maxbalance = balance + 5xbb
  3.  
  4. minbalance = 0
  5. topbalance = 500
  6. topbets    = 0
  7. -----------------
  8. trailing   = false
  9. tr_gap     = 5
  10. tr_limit   = -100
  11. tr_gapDB   = tr_gap
  12. tr_limitDB = tr_limit
  13. -----------------
  14. randomch = true
  15. minch    = 20
  16. maxch    = 24
  17. chance   = math.random(minch,maxch)+math.random(0.1,0.9)
  18. -----------------
  19. bbfixed  = true
  20. bbfactor = 5000
  21. bb       = balance / bbfactor
  22. -----------------
  23. numset = math.ceil(math.random(1,5))
  24. bb     = numset / 20
  25. target = bb * 20
  26. chance = 19.5
  27. qW     = 1.5
  28.  
  29. resetstats()
  30. resetseed()
  31.  
  32. function dobet()
  33.     print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n")
  34.     print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n")
  35.    
  36.     if trailing then
  37.         if profit > tr_gap then
  38.             tr_gap   = tr_gapDB + profit
  39.             tr_limit = tr_limitDB + profit
  40.         end
  41.         if profit - nextbet < tr_limit then stop() end
  42.         print ("TRAILING")
  43.         print ("gap: "..fixed4(tr_gap))
  44.         print ("limit: "..fixed4(tr_limit))
  45.         print ("-")
  46.     else
  47.         print ("TRAILING OFF")
  48.     end
  49.    
  50.     perte += currentprofit
  51.     if perte >= 0 then
  52.         if randomch then
  53.             chanceDB = tonumber(math.random(minch,maxch))+(tonumber(math.random(1,9))/10)
  54.         end
  55.         if !bbfixed then
  56.             bb = balance / bbfactor
  57.         end
  58.         nextbet = bb
  59.         perte   = 0
  60.         if stopwin then stop() end
  61.     else
  62.         if win then
  63.             bethigh = !bethigh
  64.             payoutB = payout
  65.             chance  = chanceDB
  66.             nextbet = previousbet * qW
  67.         elseif currentstreak%math.floor(payout)==0 then
  68.             payoutB -= 0.5
  69.             chance  = (100-casino)/payoutB
  70.             nextbet = -perte/payout            
  71.         end
  72.         if (risk == 2) then
  73.             if win then
  74.                 risk = 0
  75.             else
  76.                 print ("risk")
  77.                 stop()
  78.             end
  79.         end
  80.         if nextbet < bb then nextbet = bb end
  81.     end
  82.    
  83.     profitnow = fixed2(profit / (balance - profit) * 100)
  84.    
  85.     print("bb: "..fixed4(bb))
  86.     print("target: "..fixed4(balance-maxbalance))
  87.     print("perte: "..fixed4(perte))
  88.     print("risk "..risk)
  89.     print("chance "..chanceDB)
  90.     print("profit: "..profitnow.."%")
  91.    
  92.     if nextbet > maxstake and maxstake != 0 then risk += 1 end
  93.     if balance > topbalance then stop() end
  94.     if bets > topbets and perte == 0 and topbets != 0 then stop() end
  95.     if balance - nextbet < minbalance then stop() end
  96.     if balance > maxbalance then stop() end
  97.     print("\n")
  98. end
  99.  
  100. function fixed2(x)
  101.     return string.format("%.2f",x)
  102. end
  103.  
  104. function fixed4(x)
  105.     return string.format("%.4f",x)
  106. end
  107.    
  108.  
  109. maxbalance = balance + target
  110. maxstake   = 0
  111. stopwin    = false
  112. risk       = 0
  113. enablesrc  = false
  114. enablezz   = false
  115. nextbet    = bb
  116. casino     = 1
  117. perte      = 0
  118. chanceDB   = chance
  119. payout     = (100-casino)/chance
  120. payoutB    = payout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement