Advertisement
cryptomonkey

Revolver Roller

Dec 16th, 2019
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.27 KB | None | 0 0
  1. --by AlsoKnown
  2. --Revolver Roller
  3. --My Doge wallit: DRywDACdWUgzaqKXj8beuj1g2RdYvWPwVm
  4.  
  5. resetstats(); resetstats(); resetstats();
  6. nextbet=0.00000001
  7. resetseed(); resetseed();resetseed();
  8. nextbet=0.00000001
  9.  
  10. ---divider variable
  11. divmin = 999000
  12. divmax = 1000000
  13. div    = math.random(divmin*100.0, divmax*100.0)/100.0
  14.  
  15. ---hi/lo variable
  16. minC        = 16.50
  17. maxC        = 17.50
  18. mychance    = math.random(minC*100.0, maxC*100.0)/100.0
  19.  
  20. bethigh     = true
  21. basebet     = balance/div   --0.00000001
  22. nextbet     = balance/div   --0.00000001
  23.  
  24. stoploss  = balance*0.97
  25. profitbalance  = balance*1.03
  26.  
  27. lowhigh     = 1
  28. rollcount   = 10
  29. resetstats();
  30. resetseed();
  31. print("---------------------------------------------------------------------------------------------")
  32. print("BALANCE:") print(balance)
  33. print("---------------------------------------------------------------------------------------------")
  34.  
  35. --mychance       = 16.50    --10
  36. chance         = mychance
  37. bethigh        = true
  38.  
  39.  
  40. losses         = 0
  41. wins           = 0
  42. IncreaseOnLoss = 1.25   --1.15
  43. target         = balance*0.99   --0.05000000
  44. rollcount      = 50
  45.  
  46. function dobet()
  47.  
  48.     -- Check Balance
  49.  
  50.    
  51.     if balance-nextbet <= stoploss and stoploss ~= 0 then
  52.             print("\n\nStoploss Reach\n\n")
  53.             print("Profit: " .. string.format("%9.8f", profit) )
  54.             stop()
  55.             ching()
  56.     end
  57.  
  58.     losses+=1 wins+=1
  59.  
  60.      if balance > profitbalance then
  61.         chance  = mychance
  62.         nextbet = balance/div   --balance*0.00001   --basebet
  63.         resetseed(); ching();
  64.         stop()
  65.         stop()
  66.         print("---------------------------------------------------------")
  67.         print("WOW!!! TARGET BALANCE REACHED")
  68.         print("---------------------------------------------------------")
  69.         print("Profit: " .. string.format("%9.8f", profit) )
  70.         print("---------------------------------------------------------")
  71.      end
  72.  
  73. if (win) then
  74.  
  75.         div         = math.random(divmin*100.0, divmax*100.0)/100.0
  76.         mychance    = math.random(minC*100.0, maxC*100.0)/100.0
  77.         nextbet     = balance/div   --0.00000001
  78.         lowhigh     = math.random(0,1)
  79.  
  80.     if (profit > target) then
  81.         chance  = mychance
  82.         nextbet = balance/div   --balance*0.00001   --basebet
  83.         resetstats();
  84.         resetseed(); resetseed();resetseed();
  85.         end
  86.  
  87.     resetseed(); resetseed();resetseed();
  88.     losses+=1
  89.     wins+=1
  90.     chance  = mychance
  91.     nextbet = balance/div   --balance*0.00001   --basebet
  92.  
  93. else
  94.  
  95.     if (losses > 1) then
  96.         chance  = mychance
  97.         nextbet = previousbet*IncreaseOnLoss
  98.     end
  99.  
  100.     if (profit > target) then
  101.         chance  = mychance
  102.         nextbet = balance/div   --balance*0.00001   --basebet
  103.         resetstats();
  104.         resetseed(); resetseed();resetseed();
  105.     end  
  106.  
  107. end
  108.  
  109. if (lowhigh == 0) then
  110.     bethigh = false
  111. else
  112.     bethigh = true
  113. end
  114.  
  115. --change seed every 10 rolls/bets
  116. if (rollcount == 10) then
  117.     rollcount = 0
  118.     resetseed();
  119.     print("---------------------------------------------------------------------------------------------")
  120.     print("Profit: " .. string.format("%9.8f", profit) )
  121.     print("---------------------------------------------------------------------------------------------")
  122. else
  123.     rollcount = rollcount + 1
  124. end
  125. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement