Advertisement
cryptomonkey

Bet Some

Dec 30th, 2019
537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.42 KB | None | 0 0
  1. --------------------------------------------
  2. --@ Start User Vars
  3. initbalance=balance
  4. div = 1000000
  5. base = (balance/div)
  6. lossStartMult = 7
  7. bethigh = false
  8. randomHighLow = true
  9. useDebugInfo = false
  10. --@ End User Vars
  11.  
  12. --@ Start Script Vars
  13. stopnow = false
  14. lossCount = 0
  15. maxLosses = lossStartMult + 5
  16. chance = 60
  17. curbet = base
  18. nextbet = base
  19. --@ End Script Vars
  20.  
  21. --@ Start Debug Vars
  22. biggestLossStreak = 0
  23. biggestBet = 0
  24. --@ End Debug Vars
  25. betcount = 100
  26. -- set profit target here
  27. profittarget = balance+50
  28. stoploss     = balance-66
  29.  
  30. function dobet()
  31.  
  32. if betcount == 100 then
  33.   betcount=0
  34.   resetseed();
  35. else
  36.   betcount=betcount+1
  37. end
  38.  
  39.     -- Check Balance
  40. if balance-nextbet >= profittarget then
  41.     stop()
  42.     ching()
  43.     resetseed()
  44.   print(balance)
  45.   print("TARGET ACHIEVED!!!")
  46.   print("You Won")
  47.   print("Profit: " .. string.format("%9.8f", profit) )
  48.   print("for this Session")
  49. end
  50.  
  51. if balance-nextbet <= stoploss then
  52.     stop()
  53.     ching()
  54.     resetseed()
  55.   print(balance)
  56.   print("ALARM!!!")
  57.   print("You Lose")
  58.   print("Profit: " .. string.format("%9.8f", profit) )
  59.   print("for this Session")
  60. end
  61.  
  62. if (stoponwin == true and lastBet.Profit > 0) then
  63.     stop()
  64.     end
  65.  
  66.  if (lossCount == 7) then
  67.     -- set lossStartMult to X
  68.     lossStartMult = 6 -- or 8, or whatever
  69.   end
  70.  
  71.   if (lossStartMult > 20) then
  72.     print("\nVariable \"lossStartMult\" must be less than 20\n")
  73.     stop()
  74.   end
  75.  
  76.   if (randomHighLow) then
  77.     if (math.random() < .1) then bethigh = !bethigh end
  78.   end
  79.  
  80.   if (stopnow and win) then
  81.     debugInfo()
  82.     stop()
  83.   end
  84.  
  85.  
  86.  
  87.   if (!win) then
  88.     lossCount += 1
  89.   else
  90.     lossCount = 0
  91.   end
  92.  
  93.   if (lossCount < lossStartMult) then
  94.     chance = 60
  95.     curbet = (balance/div)
  96.     nextbet = curbet
  97.   end
  98.  
  99.   if (lossCount == lossStartMult) then
  100.     curbet = base * 100
  101.     chance = 50
  102.     nextbet = curbet
  103.   end
  104.  
  105.   if (lossCount > lossStartMult and lossCount < maxLosses) then
  106.     curbet = curbet * 2.1
  107.     chance = 50
  108.     nextbet = curbet
  109.   end
  110.  
  111.   if (lossCount == maxLosses) then
  112.     chance = 55
  113.     curbet = curbet * 2.5
  114.     nextbet = curbet
  115.   end
  116.  
  117.   if (lossCount > maxLosses) then
  118.     curbet = curbet * 2.5
  119.     nextbet = curbet
  120.   end
  121.  
  122.   if (lossCount > biggestLossStreak) then
  123.     biggestLossStreak = lossCount
  124.   end
  125.  
  126.   if (nextbet > biggestBet) then
  127.     biggestBet = nextbet
  128.   end
  129.  
  130. end
  131. -------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement