Keiich

multi_plainbettin

Oct 5th, 2018
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.14 KB | None | 0 0
  1.  
  2.  
  3.  
  4. ------------------------------------
  5. base = 0.00004444 --@ Put min bet.
  6.  
  7. targetb = 1.0025 --@ Put target balance.
  8.  
  9. basechance = 30
  10.  
  11. winseedreset = false --@ set True for resetting seed after each win
  12.  
  13. sound = true --@ set False to remove the sound on win
  14. -----------------------------------
  15.  
  16.  
  17.  
  18.  
  19. ----------------
  20. prebet = base
  21. nextbet = prebet
  22. losecount = 0
  23. betcount = 0
  24. bethigh = true
  25. startbal = balance
  26. curbal = balance
  27. maxlstreak = 0
  28. largebet = 0.00000000
  29. curbal = balance
  30. targetpercent = curbal / targetb * 100
  31. poMissedT = 0
  32. poMissedH1 = 0
  33. poMissedH2 = 0
  34. poMissedH3 = 0
  35. poMissedL1 = 0
  36. poMissedL2 = 0
  37. poMissedL3 = 0
  38. poMissedHID1 = 0.00
  39. poMissedHID2 = 0.00
  40. poMissedHID3 = 0.00
  41. poMissedLID1 = 0.00
  42. poMissedLID2 = 0.00
  43. poMissedLID3 = 0.00
  44. LBR = 0
  45. LBID = 0.00
  46. LBC = 0
  47. largebetR = 0
  48. largebetC = 0
  49. largebetID = 0
  50. ----------------
  51.  
  52.  
  53. function dobet()
  54.  
  55.   LBC = lastBet.Chance
  56.  
  57.  
  58.   if win then
  59.     if (sound and LBC <= 1) then
  60.       ching()
  61.     end
  62.     chance = basechance
  63.     if lastBet.Profit > largebet then
  64.       largebet = lastBet.Profit
  65.       largebetR = lastBet.Roll
  66.       largebetC = lastBet.Chance
  67.       largebetID = lastBet.Id
  68.     end
  69.     losecount = 0
  70.     betcount += 1
  71.     if winseedreset then
  72.       resetseed()
  73.     end
  74.     curbal = balance
  75.     if curbal >= targetb then
  76.       print("\nTARGET REACHED. GRATS")
  77.       stop()
  78.     end
  79.   else
  80.     losecount += 1
  81.     if losecount > maxlstreak then
  82.       maxlstreak = losecount
  83.     end
  84.     betcount += 1
  85.   end
  86.  
  87.   nextbet = prebet
  88.  
  89.  
  90.   if losecount >= 1 then
  91.     chance = 25
  92.   end
  93.   if losecount >= 2 then
  94.     chance = 20
  95.   end
  96.   if losecount >= 3 then
  97.     chance = 18
  98.   end
  99.   if losecount >= 4 then
  100.     chance = 14
  101.   end
  102.   if losecount >= 5 then
  103.     chance = 11
  104.   end
  105.   if losecount >= 6 then
  106.     chance = 8
  107.   end
  108.   if losecount >= 8 then
  109.     chance = 5
  110.   end
  111.   if losecount >= 14 then
  112.     chance = 3
  113.   end
  114.   if losecount >= 20 then
  115.     chance =  2
  116.   end
  117.   if losecount >= 27 then
  118.     chance =  1.5
  119.   end
  120.   if losecount >= 38 then
  121.     chance =  1
  122.   end
  123.   if losecount >= 47 then
  124.     chance = 0.77
  125.   end
  126.   if losecount >= 71 then
  127.     chance =  0.55
  128.   end
  129.   if losecount >= 95 then
  130.     chance =  0.42
  131.   end
  132.   if losecount >= 120 then
  133.     chance =  0.33
  134.   end
  135.   if losecount >= 150 then
  136.     chance =  0.27
  137.   end
  138.   if losecount >= 180 then
  139.     chance =  0.22
  140.   end
  141.   if losecount >= 210 then
  142.     chance =  0.19
  143.   end
  144.   if losecount >= 250 then
  145.     chance =  0.16
  146.   end
  147.   if losecount >= 290 then
  148.     chance =  0.14
  149.   end
  150.   if losecount >= 330 then
  151.     chance =  0.11
  152.   end
  153.   if losecount >= 360 then
  154.     chance =  0.10
  155.   end
  156.   if losecount >= 390 then
  157.     chance =  0.09
  158.   end
  159.   if losecount >= 420 then
  160.     chance =  0.08
  161.   end
  162.   if losecount >= 450 then
  163.     chance =  0.07
  164.   end
  165.   if losecount >= 480 then
  166.     chance =  0.06
  167.   end
  168.   if losecount >= 510 then
  169.     chance =  0.05
  170.   end
  171.   if losecount >= 540 then
  172.     chance =  0.04
  173.   end
  174.   if losecount >= 570 then
  175.     chance =  0.03
  176.   end
  177.   if losecount >= 600 then
  178.     chance =  0.02
  179.   end
  180.   if losecount >= 630 then
  181.     chance =  0.01
  182.   end
  183.   if losecount >= 660 then
  184.   chance = basechance
  185.   losecount = 0
  186.   end
  187.  
  188.  
  189.   if not win then
  190.   LBR = lastBet.Roll
  191.   LBID = lastBet.Id
  192.   if LBR >= 99.9 then
  193.     poMissedT += 1
  194.     if LBR > poMissedH1 then
  195.       poMissedH3 = poMissedH2
  196.       poMissedHID3 = poMissedHID2
  197.       poMissedH2 = poMissedH1
  198.       poMissedHID2 = poMissedHID1
  199.       poMissedH1 = LBR
  200.       poMissedHID1  = LBID
  201.     else
  202.       if LBR > poMissedH2 then
  203.         poMissedH3 = poMissedH2
  204.         poMissedHID3 = poMissedHI2
  205.         poMissedH2 = LBR
  206.         poMissedHID2  = LBID
  207.       else
  208.         if LBR > poMissedH3 then
  209.           poMissedH3 = LBR
  210.           poMissedHID3 = LBID
  211.         end
  212.       end
  213.     end
  214.   end
  215.  
  216.   if LBR <= 0.10 then
  217.     poMissedT += 1
  218.     if (poMissedL1 == 0 or LBR < poMissedL1) then
  219.       poMissedL3 = poMissedL2
  220.       poMissedLID3 = poMissedLID2
  221.       poMissedL2 = poMissedL1
  222.       poMissedLID2 = poMissedLID1
  223.       poMissedL1 = LBR
  224.       poMissedLID1  = LBID
  225.     else
  226.       if (poMissedL2 == 0 or LBR < poMissedL2) then
  227.         poMissedL3 = poMissedL2
  228.         poMissedLID3 = poMissedLI2
  229.         poMissedL2 = LBR
  230.         poMissedLID2  = LBID
  231.       else
  232.         if (poMissedL3 == 0 or LBR < poMissedL3) then
  233.           poMissedL3 = LBR
  234.           poMissedLID3  = LBID
  235.         end
  236.       end
  237.     end
  238.   end
  239. end
  240.  
  241.  
  242.   curbal = balance
  243.   targetpercent = curbal / targetb * 100
  244.   print("\n---------")
  245.   print("---------")
  246.   print("---------")
  247.   print("---------")
  248.   print("---------")
  249.   print("---------")
  250.   print("---------")
  251.   print("---------")
  252.   print("---------")
  253.   print("---------")
  254.   print("---------")
  255.   print("---------")
  256.   print("---------")
  257.   print("---------\n")
  258.   print("\nBig Payouts Missed = " .. poMissedT)
  259.   print("\n3 Best High Rolls = " .. poMissedH1 .. ", " .. poMissedH2 .. ", " .. poMissedH3)
  260.   print("\n3 Best High IDs:")
  261.   print(poMissedHID1)
  262.   print(poMissedHID2)
  263.   print(poMissedHID3)
  264.   print("\n3 Best Low  Rolls = " .. poMissedL1 .. ", " .. poMissedL2 .. ", " .. poMissedL3)
  265.   print("\n3 Best Low IDs:")
  266.   print(poMissedLID1)
  267.   print(poMissedLID2)
  268.   print(poMissedLID3)
  269.   print("\n---------")
  270.   print("---------")
  271.   print("---------")
  272.   print("---------\n")
  273.   print("Roll number = " .. betcount)
  274.   print("\n---------")
  275.   print("\nLoseStreak = " .. losecount)
  276.   print("\n---------")
  277.   print("---------")
  278.   print("---------\n")
  279.   print("Target Balance = " .. targetb)
  280.   print("% of Target Reached = " .. string.format("%3.2f",targetpercent) .. "%")
  281.   print("\n---------\n")
  282.   print("Longest LoseStreak = " .. maxlstreak)
  283.   print("\nLargest Bet Profit = " .. string.format("%3.8f",largebet))
  284.   print("\nLargest Bet Roll = " .. string.format("%3.2f",largebetR))
  285.   print("\nLargest Bet Chance = " .. string.format("%3.2f",largebetC))
  286.   print("\nLargest Bet ID:")
  287.   print(largebetID)
  288.   print("\n---------\n")
  289.   print("\n---------\n")
  290.   print("\n---------\n")
  291.   --------------------------------------------------------------------------
  292.  
  293.  
  294.  
  295.  
  296. end
Advertisement
Add Comment
Please, Sign In to add comment