Advertisement
alfarishi

editorv3

Jun 25th, 2020
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- editor by /wedus g@mbel --
  2.  
  3.  
  4.  
  5. base          = 0.01
  6. lossStartMult = 35
  7. bethigh       = false
  8. randomHighLow = true
  9. useDebugInfo  = false
  10.  
  11. stopnow   = false
  12. lossCount = 0
  13. maxLosses = lossStartMult+5
  14. chance    = 20.5
  15. curbet    = base
  16. nextbet   = base
  17.  
  18.  
  19.  
  20. biggestLossStreak = 0
  21. biggestBet = 0
  22.  
  23. target  = 15000-- Doge
  24. tprofit = balance + target
  25.  
  26. function dobet()
  27.    
  28.     if(balance >= tprofit) then stop()
  29. print("Target SudahTERCAPAI")
  30.  
  31.  
  32. end
  33.  
  34.   if (randomHighLow) then
  35.     if (math.random() < .1) then bethigh = !bethigh end
  36.   end
  37.  
  38.   if (stopnow and win) then
  39.     debugInfo()
  40.     resetseed()
  41.   end
  42.  
  43.   if (!win) then
  44.     lossCount += 1
  45.   else
  46.     lossCount = 0
  47.   end
  48.  
  49.   if (lossCount < lossStartMult) then
  50.       chance = math.random(8,12)
  51.     curbet  = base
  52.     nextbet = curbet
  53.   end
  54.  
  55.   if (lossCount == lossStartMult) then
  56.       chance  = 20
  57.       curbet  = base *2.5
  58.       nextbet = curbet
  59.   end
  60.  
  61.   if (lossCount > lossStartMult and lossCount < maxLosses) then
  62.       chance = math.random(18,20)
  63.       curbet = curbet * 1.37
  64.     nextbet = curbet
  65.   end
  66.  
  67.   if (lossCount == maxLosses) then
  68.       chance = math.random(18,20)
  69.       curbet = curbet * 2
  70.     nextbet = curbet
  71.   end
  72.  
  73.   if (lossCount > maxLosses) then
  74.       chance = math.random(18,20)
  75.      curbet = curbet * 1.27
  76.      nextbet = curbet
  77.   end
  78.  
  79.   if (lossCount > biggestLossStreak) then
  80.     biggestLossStreak = lossCount
  81.   end
  82.  
  83.   if (nextbet > biggestBet) then
  84.     biggestBet = nextbet
  85.   end
  86.  
  87.   if (useDebugInfo) then debugInfo() end
  88. end
  89.  
  90. function debugInfo()
  91.   --print("\nBetHigh = " .. tostring(bethigh))
  92.   --print("Chance = " .. chance)
  93.   --print("Current Bet = " .. string.format("%9.8f", curbet))
  94.   --print("Current Loss Streak = " .. lossCount)
  95.   print("Biggest Loss Streak = " .. biggestLossStreak)
  96.   print("Biggest Bet = " .. string.format("%9.8f", biggestBet))
  97.   print("Total Profit = " .. string.format("%9.8f", profit))
  98. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement