Advertisement
alfarishi

miningjp2

May 1st, 2020
901
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bethigh       = false
  2. minchance     = 5
  3. maxchance     = 40
  4. chance        = math.random(minchance,maxchance)
  5. base          = 0.010
  6. curbet        = base
  7. nextbet       = base
  8. winStreak     = 0
  9. loseStreak    = 0
  10. maxBalance    = balance
  11. target        = maxBalance*1.2
  12. loseAmount    = 0
  13. rnd           = 2
  14. round         = 0
  15. roundd        = 0
  16. loss          = 0;
  17. n             = 0
  18. sbalance      = balance
  19. strategy      = 1
  20. profit        = 0
  21. largestProfit = 0
  22. lose          = 0
  23.  
  24. function dobet()
  25.  
  26. if balance>target then
  27. print("TARGET REACHED")
  28. msg_goal    = " ( Target : " .. string.format("%.8f", target) .. " )"
  29. print("Profit : " .. string.format("%.8f", profit))
  30. stop()
  31. end
  32. if profit>=largestProfit then
  33. largestProfit=profit
  34. loseAmount=0
  35. else
  36. loseAmount=largestProfit-profit
  37. end
  38.  
  39. if !win then
  40. loss=loss+1
  41. lose=lose+1
  42. else
  43. lose=0
  44. end
  45.      if loseAmount<=0 then
  46.          minchance = 15
  47.          maxchance = 66.45
  48.            
  49.     chance = math.random(minchance,maxchance)
  50.         rnd= math.random(1,2)
  51.         if rnd==1 then
  52.         bethigh=!bethigh
  53.             end
  54.  
  55.     if rnd==1 then
  56.       strategy=1
  57.     else
  58.       strategy=2
  59.     end
  60.    
  61.         curbet=balance/1000000
  62.    
  63.     nextbet=curbet
  64.     round=0
  65.         rnd= math.random(1,3)
  66.    
  67.      else
  68.     round=round+1
  69.         if strategy==1 then
  70.            
  71.        
  72.             bethigh=!bethigh
  73.             chance = math.random(chance-5,chance)
  74.             if chance<=5 then
  75.             chance=50
  76.             end
  77.                 if chance<=35 then
  78.              nextbet=loseAmount/(99/chance-1)
  79.             end            
  80.         else
  81.            
  82.             if round%rnd == 0 then
  83.            
  84.             chance = math.random(minchance,maxchance)
  85.                 rnd= math.random(1,2)
  86.             if rnd==1 then
  87.             bethigh=!bethigh
  88.                 end
  89.            
  90.                 end
  91.            
  92.             if round%10 == 0 then
  93.             if loss>7 then
  94.             nextbet=nextbet*1.5
  95.                 end
  96.            
  97.                 end
  98.    
  99.     if loseAmount<=base*1000/100 or nextbet>(loseAmount/(99/chance-1)) or lose>=15 then
  100.             nextbet=loseAmount/(99/chance-1)
  101.     end
  102.  
  103.         end
  104.            
  105.            
  106.      end
  107.  
  108.    
  109. if nextbet<base then
  110. nextbet=base  
  111. end
  112.  
  113. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement