Keiich

Faucet_to_WD_by_Keiichi_LAST

Aug 8th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.21 KB | None | 0 0
  1. --Faucet_to_WD by Keiichi
  2.  
  3.  
  4. --@ minbet
  5. prebet = 0.00000010
  6. --@ number of prebet rolls
  7. prebetnumber = 10
  8. --@ target balance
  9. targetxx = 0.00204
  10. --@ to change seed after wins
  11. winseed = true
  12.  
  13. -------------------------------
  14. base = prebet
  15. nextbet = prebet
  16. losecount = 0
  17. betcount = 0
  18. startbalance = balance
  19. chance = 8.4
  20. loseround = 0
  21. resetstats()
  22. prebetnum = prebetnumber
  23. bethigh = true
  24.  
  25.  
  26.  
  27. -------------------------------
  28. print("\nStarting Balance = " .. startbalance)
  29. print("\nTarget = " .. targetxx )
  30. print("\nChance = " .. chance .. "%")
  31. print("\nPrebets = " .. prebetnumber)
  32.  
  33. phase0 = true
  34. phase1 = false
  35. phase2 = false
  36. phase3 = false
  37. phase4 = false
  38. phase5 = false
  39.  
  40.  
  41. -------------------------------
  42. function dobet()
  43.  
  44.  if win then
  45.   ching()
  46.     nextbet = prebet
  47.     losecount = 0
  48.     betcount += 1
  49.     loseround = 0
  50.     if winseed then
  51.       resetseed()
  52.     end
  53.   else
  54.     losecount += 1
  55.     betcount += 1
  56.     nextbet = prebet
  57.     print("loseround = " .. loseround)
  58.   end
  59.  
  60.  
  61.  
  62.   -----------------------------------------------
  63.   if phase0 then
  64.     print("\n---------\n")
  65.     print("\nPhase 0")
  66.     print("\nChance = " .. chance .. "%")
  67.       if loseround < 1 then
  68.       prebetnum = prebetnumber
  69.       print("\nlose " .. losecount)
  70.       print("Prebets = " .. prebetnum)
  71.       print("Max losestreak = " .. prebetnum + 9)
  72.       else
  73.       print("\nlose R2 " .. prebetnum + 9 + losecount)
  74.       prebetnum = -2
  75.       print("Round 2 Prebets = " .. prebetnum)
  76.       end
  77.     print("\nTarget Balance = " .. targetxx )
  78.     print("% of Target Reached = " .. string.format("%3.1f",(balance / targetxx * 100)) .. "%")
  79.     print("Next Phase Balance = " .. string.format("%3.8f",(targetxx * 0.22)))
  80.     print("% till Next Phase = " .. string.format("%3.1f",(balance / (targetxx * 0.22) * 100)) .. "%")
  81.     print("\nTotal Bets = " .. betcount)
  82.     print("\n---------\n")
  83.   end
  84. -------------------------------------------
  85.   if phase1 then
  86.     print("\n---------\n")
  87.     print("\nPhase 1")
  88.     print("\nChance = " .. chance .. "%")
  89.       if loseround < 1 then
  90.       print("\nlose " .. losecount)
  91.       prebetnum = prebetnumber - 2
  92.       print("Prebets = " .. prebetnum)
  93.       print("Max losestreak = " .. prebetnum + 13)
  94.       else
  95.       print("\nlose R2 " .. prebetnum + 13 + losecount)
  96.       prebetnum = -2
  97.       print("Round 2 Prebets = " .. prebetnum)
  98.       end
  99.     print("\nTarget Balance = " .. targetxx )
  100.     print("% of Target Reached = " .. string.format("%3.1f",(balance / targetxx * 100)) .. "%")
  101.     print("Next Phase Balance = " .. string.format("%3.8f",(targetxx* 0.33)))
  102.     print("% till Next Phase = " .. string.format("%3.1f",(balance / (targetxx * 0.33) * 100)) .. "%")
  103.     print("\nTotal Bets = " .. betcount)
  104.     print("\n---------\n")
  105.   end
  106. -------------------------------------------
  107.   if phase2 then
  108.     chance = 7.5
  109.     print("\n---------\n")
  110.     print("\nPhase 2")
  111.     print("\nChance = " .. chance .. "%")
  112.       if loseround < 1 then
  113.       print("\nlose " .. losecount)
  114.       prebetnum = prebetnumber - 2
  115.       print("Prebets = " .. prebetnum)
  116.       print("Max losestreak = " .. prebetnum + 15)
  117.       else
  118.       print("\nlose R2 " .. prebetnum + 15 + losecount)
  119.       prebetnum = -2
  120.       print("Round 2 Prebets = " .. prebetnum)
  121.       end
  122.     print("\nTarget Balance = " .. targetxx )
  123.     print("% of Target Reached = " .. string.format("%3.1f",(balance / targetxx * 100)) .. "%")
  124.     print("Next Phase Balance = " .. string.format("%3.8f",(targetxx * 0.44)))
  125.     print("% till Next Phase = " .. string.format("%3.1f",(balance / (targetxx * 0.44) * 100)) .. "%")
  126.     print("\nTotal Bets = " .. betcount)
  127.     print("\n---------\n")
  128.   end
  129. -------------------------------------------
  130.   if phase3 then
  131.     chance = 7
  132.     print("\n---------\n")
  133.     print("\nPhase 3")
  134.     print("\nChance = " .. chance .. "%")
  135.       if loseround < 1 then
  136.       print("\nlose " .. losecount)
  137.       prebetnum = prebetnumber - 2
  138.       print("Prebets = " .. prebetnum)
  139.       print("Max losestreak = " .. prebetnum + 17)
  140.       else
  141.       print("\nlose R2 " .. prebetnum + 17 + losecount)
  142.       prebetnum = -2
  143.       print("Round 2 Prebets = " .. prebetnum)
  144.       end
  145.     print("\nTarget Balance = " .. targetxx )
  146.     print("% of Target Reached = " .. string.format("%3.1f",(balance / targetxx * 100)) .. "%")
  147.     print("Next Phase Balance = " .. string.format("%3.8f",(targetxx * 0.55)))
  148.     print("% till Next Phase = " .. string.format("%3.1f",(balance / (targetxx * 0.55) * 100)) .. "%")
  149.     print("\nTotal Bets = " .. betcount)
  150.     print("\n---------\n")
  151.   end
  152. -------------------------------------------
  153.   if phase4 then
  154.     chance = 6.5
  155.     print("\n---------\n")
  156.     print("\nPhase 4")
  157.     print("\nChance = " .. chance .. "%")
  158.       if loseround < 1 then
  159.       print("\nlose " .. losecount)
  160.       prebetnum = prebetnumber - 1
  161.       print("Prebets = " .. prebetnum)
  162.       print("Max losestreak = " .. prebetnum + 19)
  163.       else
  164.       print("\nlose R2 " .. prebetnum + 19 + losecount)
  165.       prebetnum = -2
  166.       print("Round 2 Prebets = " .. prebetnum)
  167.       end
  168.     print("\nTarget Balance = " .. targetxx )
  169.     print("% of Target Reached = " .. string.format("%3.1f",(balance / targetxx * 100)) .. "%")
  170.     print("Next Phase Balance = " .. string.format("%3.8f",(targetxx * 0.77)))
  171.     print("% till Next Phase = " .. string.format("%3.1f",(balance / (targetxx * 0.77) * 100)) .. "%")
  172.     print("\nTotal Bets = " .. betcount)
  173.     print("\n---------\n")
  174.   end
  175. -------------------------------------------
  176.   if phase5 then
  177.     chance = 8
  178.     print("\n---------\n")
  179.     print("\nPhase 5")
  180.     print("\nChance = " .. chance .. "%")
  181.       if loseround < 1 then
  182.       print("\nlose " .. losecount)
  183.       prebetnum = prebetnumber - 6
  184.       print("Prebets = " .. prebetnum)
  185.       print("Max losestreak = " .. prebetnum + 22)
  186.       else
  187.       print("\nlose R2 " .. prebetnum + 22 + losecount)
  188.       prebetnum = -2
  189.       print("Round 2 Prebets = " .. prebetnum)
  190.       end
  191.     print("\nTarget Balance = " .. targetxx )
  192.     print("% of Target Reached = " .. string.format("%3.1f",(balance / targetxx * 100)) .. "%")
  193.     print("\nTotal Bets = " .. betcount)
  194.     print("\n---------\n")
  195.   end
  196.  
  197.  
  198.  
  199.  
  200.   -------------------------------------
  201.   if (losecount > prebetnum +1 ) then
  202.     nextbet = base * 7
  203.   end
  204.   if (losecount > prebetnum +2 ) then
  205.     nextbet = base * 7.5
  206.   end
  207.   if (losecount > prebetnum +3 ) then
  208.     nextbet = base * 8
  209.   end
  210.   if (losecount > prebetnum +4 ) then
  211.     nextbet = base * 9.5
  212.   end
  213.   if (losecount > prebetnum +5 ) then
  214.     nextbet = base * 14
  215.   end
  216.   if (losecount > prebetnum +6 ) then
  217.     nextbet = base * 16
  218.   end
  219.   if (losecount > prebetnum +7 ) then
  220.     nextbet = base * 18
  221.   end
  222.   if (losecount > prebetnum +8 ) then
  223.    nextbet = base * 20
  224.   end
  225.   if (losecount > prebetnum +9 ) then
  226.     if (phase0 and loseround < 1) then
  227.     nextbet = base
  228.     losecount = 0
  229.     loseround += 1
  230.     else
  231.       nextbet = base * 22
  232.     end
  233.   end
  234.   if (losecount > prebetnum +10 ) then
  235.     nextbet = base * 24
  236.   end
  237.   if (losecount > prebetnum +11 ) then
  238.     nextbet = base * 26
  239.   end
  240.   if (losecount > prebetnum +12 ) then
  241.     nextbet = base * 28
  242.   end
  243.   if (losecount > prebetnum +13 ) then
  244.     if (phase1 and loseround < 1) then
  245.     nextbet = base
  246.     losecount = 0
  247.     loseround += 1
  248.     else
  249.       nextbet = base * 30
  250.     end
  251.   end
  252.   if (losecount > prebetnum +14 ) then
  253.     nextbet = base * 33
  254.   end
  255.   if (losecount > prebetnum +15 ) then
  256.     if (phase2 and loseround < 1) then
  257.     nextbet = base
  258.     losecount = 0
  259.     loseround += 1
  260.     else
  261.       nextbet = base * 37
  262.     end
  263.   end
  264.   if (losecount > prebetnum +16 ) then
  265.     nextbet = base * 43
  266.   end
  267.   if (losecount > prebetnum +17 ) then
  268.     if (phase3 and loseround < 1)  then
  269.     nextbet = base
  270.     losecount = 0
  271.     loseround += 1
  272.     else
  273.       nextbet = base * 48
  274.     end
  275.   end
  276.   if (losecount > prebetnum +18 ) then
  277.     nextbet = base * 55
  278.   end
  279.   if (losecount > prebetnum +19 ) then
  280.     if (phase4 and loseround < 1) then
  281.     nextbet = base
  282.     losecount = 0
  283.     loseround += 1
  284.     else
  285.       nextbet = base * 63
  286.     end
  287.   end
  288.   if (losecount > prebetnum +20 ) then
  289.     nextbet = base * 70
  290.   end
  291.   if (losecount > prebetnum +21 ) then
  292.       nextbet = base * 80
  293.   end
  294.   if (losecount > prebetnum +22 ) then
  295.     if (phase5 and loseround < 1) then
  296.     nextbet = base
  297.     losecount = 0
  298.     loseround += 1
  299.     else
  300.     nextbet = base * 90
  301.     end
  302.   end
  303.   if (losecount > prebetnum +23 ) then
  304.     nextbet = base * 100
  305.   end
  306.   if (losecount > prebetnum +24 ) then
  307.     nextbet = base * 110
  308.   end
  309.   if (losecount > prebetnum +25 ) then
  310.     nextbet = base * 121
  311.   end
  312.   if (losecount > prebetnum +26 ) then
  313.     nextbet = base * 133
  314.   end
  315.   if (losecount > prebetnum +27 ) then
  316.     nextbet = base * 146
  317.   end
  318.   if (losecount > prebetnum +28 ) then
  319.     nextbet = base * 160
  320.   end
  321.   if (losecount > prebetnum +29 ) then
  322.     nextbet = base * 176
  323.   end
  324.   if (losecount > prebetnum +30 ) then
  325.     nextbet = base * 193
  326.   end
  327.   if (losecount > prebetnum +31 ) then
  328.     nextbet = base * 210
  329.   end
  330.   if (losecount > prebetnum +32 ) then
  331.     nextbet = base * 240
  332.   end
  333.   if (losecount > prebetnum +33 ) then
  334.     nextbet = base * 300
  335.   end
  336.   if (losecount > prebetnum +34 ) then
  337.     nextbet = base * 350
  338.   end
  339.   if (losecount > prebetnum +35 ) then
  340.     nextbet = base * 400
  341.   end
  342.   if (losecount > prebetnum +36 ) then
  343.     nextbet = base * 440
  344.   end
  345.   if (losecount > prebetnum +37 ) then
  346.     nextbet = base * 484
  347.   end
  348.   if (losecount > prebetnum +38 ) then
  349.     nextbet = base * 532
  350.   end
  351.   if (losecount > prebetnum +39 ) then
  352.     nextbet = base * 586
  353.   end
  354.   if (losecount > prebetnum +40 ) then
  355.     nextbet = base * 645
  356.   end
  357.   if (losecount > prebetnum +41 ) then
  358.     nextbet = base * 710
  359.   end
  360.   if (losecount > prebetnum +42 ) then
  361.     nextbet = base * 781
  362.   end
  363.   if (losecount > prebetnum +43 ) then
  364.     nextbet = base * 820
  365.   end
  366.   if (losecount > prebetnum +44 ) then
  367.     nextbet = base * 910
  368.   end
  369.   if (losecount > prebetnum +45 ) then
  370.     nextbet = base * 1000
  371.   end
  372.   if (losecount > prebetnum +46 ) then
  373.     nextbet = base * 1100
  374.   end
  375.   if (losecount > prebetnum +47 ) then
  376.     nextbet = base * 1300
  377.   end
  378.   if (losecount > prebetnum +48 ) then
  379.     nextbet = base * 1500
  380.   end
  381.   if (losecount > prebetnum +49 ) then
  382.     nextbet = base * 1700
  383.   end
  384.   if (losecount > prebetnum +50 ) then
  385.     nextbet = base * 2000
  386.   end
  387.   if (losecount > prebetnum +51 ) then
  388.     nextbet = base * 2300
  389.   end
  390.   if (losecount > prebetnum +52 ) then
  391.     nextbet = base * 2600
  392.   end
  393.   if (losecount > prebetnum +53 ) then
  394.     nextbet = base * 2800
  395.   end
  396.   if (losecount > prebetnum +54 ) then
  397.     nextbet = base * 3080
  398.   end
  399.   if (losecount > prebetnum +55 ) then
  400.     nextbet = base * 3380
  401.   end
  402.   if (losecount > prebetnum +56 ) then
  403.     nextbet = base * 3780
  404.   end
  405.   if (losecount > prebetnum +57 ) then
  406.     nextbet = base * 4000
  407.   end
  408.   if (losecount > prebetnum +58 ) then
  409.     nextbet = base * 4800
  410.   end
  411.   if (losecount > prebetnum +59 ) then
  412.     nextbet = base * 5600
  413.   end
  414.   if (losecount > prebetnum +60 ) then
  415.     nextbet = base * 6000
  416.   end
  417.   if (losecount > prebetnum +61 ) then
  418.     nextbet = base * 7000
  419.   end
  420.   if (losecount > prebetnum +62 ) then
  421.     nextbet = base * 7700
  422.   end
  423.   if (losecount > prebetnum +63 ) then
  424.     nextbet = base * 8500
  425.   end
  426.   if (losecount > prebetnum +64 ) then
  427.     nextbet = base * 10003
  428.   end
  429.   if (losecount > prebetnum +65 ) then
  430.     nextbet = base * 11000
  431.   end
  432.   if (losecount > prebetnum +66 ) then
  433.     nextbet = base * 12100
  434.   end
  435.   if (losecount > prebetnum +67 ) then
  436.     nextbet = base * 13310
  437.   end
  438.   if (losecount > prebetnum +68 ) then
  439.     nextbet = base * 14641
  440.   end
  441.   if (losecount > prebetnum +69 ) then
  442.     nextbet = base * 16106
  443.   end
  444.   if (losecount > prebetnum +70 ) then
  445.     nextbet = base * 17717
  446.   end
  447.   if (losecount > prebetnum +71 ) then
  448.     nextbet = base * 19489
  449.   end
  450.   if (losecount > prebetnum +72 ) then
  451.     nextbet = base * 21438
  452.   end
  453.   if (losecount > prebetnum +73 ) then
  454.     nextbet = base * 23582
  455.   end
  456.   if (losecount > prebetnum +74 ) then
  457.     nextbet = base * 25582
  458.   end
  459.   if (losecount > prebetnum +75 ) then
  460.     nextbet = base * 29582
  461.   end
  462.   if (losecount > prebetnum +76 ) then
  463.     nextbet = base * 33582
  464.   end
  465.   if (losecount > prebetnum +77 ) then
  466.     nextbet = base * 39582
  467.   end
  468.   if (losecount > prebetnum +78 ) then
  469.     nextbet = base * 46582
  470.   end
  471.   if (losecount > prebetnum +79 ) then
  472.     nextbet = base * 55582
  473.   end
  474.   if (losecount > prebetnum +80 ) then
  475.     nextbet = base * 67582
  476.   end
  477.   if (losecount > prebetnum +81 ) then
  478.     nextbet = previousbet * 1.08
  479.   end
  480.  
  481.   -------------------------------------
  482. if (phase0 and nextbet > prebet * 2)  then
  483. nextbet = nextbet * 0.9
  484. end
  485. if phase2 then
  486. nextbet = nextbet * 1.075
  487. end
  488. if phase3 then
  489. nextbet = nextbet * 1.15
  490. end
  491. if phase4 then
  492. nextbet = nextbet * 1.2
  493. end
  494. if phase5 then
  495. nextbet = nextbet * 1.3
  496. end
  497.  
  498.  
  499.   -------------------------------
  500.   if (balance >= targetxx * 0.22  and balance < targetxx * 0.33) then
  501.     phase0 = false
  502.     phase1 = true
  503.     phase2 = false
  504.     phase3 = false
  505.     phase4 = false
  506.     phase5 = false
  507.   end
  508.   if (balance >= targetxx * 0.33 and balance < targetxx * 0.44) then
  509.     phase0 = false
  510.     phase1 = false
  511.     phase2 = true
  512.     phase3 = false
  513.     phase4 = false
  514.     phase5 = false
  515.   end
  516.   if (balance >= targetxx * 0.44 and balance < targetxx * 0.55) then
  517.     phase0 = false
  518.     phase1 = false
  519.     phase2 = false
  520.     phase3 = true
  521.     phase4 = false
  522.     phase5 = false
  523.  
  524.   end
  525.   if (balance >= targetxx * 0.55 and balance < targetxx * 0.77) then
  526.     phase0 = false
  527.     phase1 = false
  528.     phase2 = false
  529.     phase3 = false
  530.     phase4 = true
  531.     phase5 = false
  532.  
  533.   end
  534.   if (balance >= targetxx * 0.77) then
  535.     phase0 = false
  536.     phase1 = false
  537.     phase2 = false
  538.     phase3 = false
  539.     phase4 = false
  540.     phase5 = true
  541.   end
  542.  
  543.  
  544.  
  545.  
  546.   -------------------------------
  547.   if balance >= targetxx then
  548.     print("\n---------\n")
  549.     print("\nTarget Reached")
  550.     print("\n---------\n")
  551.     stop()
  552.   end
  553.  
  554. end
Add Comment
Please, Sign In to add comment