Advertisement
Keiich

Keiichi_80s/20s_updated

Aug 25th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.28 KB | None | 0 0
  1. --@ 80s/20s by Keiichi
  2.  
  3. MINbet = 0.00000444 --@ minbet
  4.  
  5. MAXbet = 0.00002222 --@ maxbet
  6.  
  7. PhaseSwitch1 = 10 --@ switch to lowbetting after wins
  8. PhaseSwitch2 = 15 --@ switch to lowbetting after wins
  9.  
  10. --@ target balance
  11. targetxx = 0.5
  12.  
  13. -------------------------------
  14. base = MINbet
  15. nextbet = base
  16. losecount = 0
  17. betcount = 0
  18. wincount = 0
  19. startbalance = balance
  20. chance = 80.44
  21. MINmulti = 4
  22. MAXmulti = 7
  23. multi = 4
  24. betrand = base
  25. HighPhase = true
  26. bethigh = true
  27. PhaseSwitch = 6
  28. doublebet = 0
  29. -------------------------------
  30. --
  31. --
  32.  
  33. -------------------------------
  34. function dobet()
  35.  
  36.   ------------------------------------
  37.   if HighPhase then
  38.     multi = math.random (MINmulti * 100.0, MAXmulti * 100.0) / 100.0
  39.   else
  40.     multi = 1.2744
  41.   end
  42.  
  43.   ------------------------------------
  44.   if win then
  45.     if previousbet >= MAXbet * 50 then
  46.     ching()
  47.     end
  48.     HighPhase = true
  49.     losecount = 0
  50.     wincount += 1
  51.     betcount += 1
  52.     betrand = math.random (MINbet * 100000000.0, MAXbet * 100000000.0) / 100000000.0
  53.     doublebet = math.random (1,100)
  54.  
  55.     if doublebet <= 44 then
  56.       nextbet = betrand
  57.       print("\nNEXTBET IS RANDOMED")
  58.     end
  59.     if (doublebet > 44 and doublebet <=60) then
  60.       nextbet = previousbet
  61.       print("\nNEXTBET IS PREVIOUSBET")
  62.     end
  63.     if doublebet > 60 then
  64.       nextbet = previousbet / 2
  65.       print("\nNEXTBET IS PREVIOUSBET / 2")
  66.       if nextbet < MINbet then
  67.       nextbet = betrand
  68.       print("\nNEXTBET IS RANDOMED")
  69.       end
  70.     end
  71.     if nextbet >= MAXbet * 20 then
  72.     nextbet = MAXbet * 2
  73.     print("\nNEXTBET IS MAXbet * 2")
  74.     end
  75.    
  76.    
  77.   else
  78.     wincount = 0
  79.     losecount += 1
  80.     betcount += 1
  81.     if (losecount > 1 and multi > 5.5) then
  82.       multi = 5.5
  83.     end
  84.     nextbet = previousbet * multi
  85.  
  86.   end
  87.  
  88.  
  89.   ------------------------------------
  90.  
  91.   PhaseSwitch =  math.random(PhaseSwitch1, PhaseSwitch2)
  92.   if wincount >= PhaseSwitch then
  93.     HighPhase = false
  94.   end
  95.  
  96.   -------------------------------------
  97.   if HighPhase then
  98.     bethigh = true
  99.     chance = 80.44
  100.   else
  101.     wincount = 0
  102.     bethigh = false
  103.     if losecount < 2 then
  104.       nextbet = math.random (MINbet * 100000000.0, MAXbet * 60000000.0) / 100000000.0
  105.     end
  106.     if losecount <= 3 then
  107.       chance = math.random(0.01*100.0, 20.44*100.0)/100.0
  108.     end
  109.     if losecount > 3 then
  110.       chance = math.random(4.44*100.0, 20.44*100.0)/100.0
  111.     end
  112.     if losecount > 6 then
  113.       chance = 20.44
  114.     end
  115.   end
  116.   --------------------------------------
  117.  
  118.  
  119.   -----------------------------------------------
  120.   print("\n---------\n")
  121.   print("\nNextbet " .. string.format("%3.8f", nextbet))
  122.   print("\nChance = " .. chance .. "%")
  123.   print("\nLoseStreak " .. losecount)
  124.   print("\nWinStreak " .. wincount)
  125.   print("\nMulti " .. multi)
  126.   print("\nPhaseSwitch " .. PhaseSwitch)
  127.   print("\nTarget Balance = " .. targetxx )
  128.   print("% of Target Reached = " .. string.format("%3.1f",(balance / targetxx * 100)) .. "%")
  129.   print("\nTotal Bets = " .. betcount)
  130.   print("\n---------\n")
  131.   -------------------------------------------
  132.  
  133.  
  134.   -------------------------------
  135.   if balance >= targetxx then
  136.     print("\n---------\n")
  137.     print("\nTarget Reached")
  138.     print("\n---------\n")
  139.     stop()
  140.   end
  141.  
  142. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement