Advertisement
coinwalk

doge bot 1

Mar 25th, 2020
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. chance= 49
  2. base=balance/200000
  3. bethigh = true
  4. investtarget = balance/20
  5.  
  6. nextbet = base
  7. investprofit = 0
  8. wincount = 0
  9. stopnow = false
  10. first = true
  11. second = false
  12. secondwin = false
  13. third = false
  14.  
  15. function dobet()
  16.  
  17. -- switch high/low every bet
  18. -- bethigh = !bethigh
  19.  
  20. investprofit += currentprofit
  21. done = false
  22.  
  23. if win then
  24.  
  25. -- switch high/low every win
  26. -- bethigh = !bethigh
  27.  
  28. if(first) then
  29. -- switch high/low on the first win
  30. -- bethigh = !bethigh
  31. nextbet = base
  32. if(stopnow) then stop() end
  33. end
  34. if(second) then
  35. -- switch high/low on the second win
  36. -- bethigh = !bethigh
  37. secondwin = true
  38. second = false
  39. third = true
  40. done = true
  41. end
  42. if(third and !done) then
  43. -- switch high/low on the third win
  44. -- bethigh = !bethigh
  45. if(secondwin) then
  46. -- switch high/low on the second and third win
  47. -- bethigh = !bethigh
  48. nextbet = base
  49. if(stopnow) then stop() end
  50. else
  51. -- switch high/low on one and two lose third win
  52. -- bethigh = !bethigh
  53. nextbet = previousbet * 3
  54. end
  55. third = false
  56. first = true
  57. end
  58. if (investprofit > investtarget) then
  59. invest(investtarget)
  60. investprofit = 0
  61. end
  62. else
  63. -- switch high/low on the every lose
  64. -- bethigh = !bethigh
  65. if(first and !done) then
  66. -- switch high/low on the first lose
  67. -- bethigh = !bethigh
  68. first = false
  69. second = true
  70. done = true
  71. end
  72. if(second and !done) then
  73. -- switch high/low on the second lose
  74. -- bethigh = !bethigh
  75. secondwin = false
  76. second = false
  77. third = true
  78. done = true
  79. end
  80. if(third and !done) then
  81. -- switch high/low on the third lose
  82. -- bethigh = !bethigh
  83. third = false
  84. first = true
  85. print("lose side")
  86. if (secondwin) then
  87. -- switch high/low on the one lose two in thrird lose
  88. -- bethigh = !bethigh
  89. nextbet = previousbet * 3
  90. else
  91. -- switch high/low only if all three lose
  92. -- bethigh = !bethigh
  93. nextbet = previousbet * 4
  94. end
  95. done = true
  96. end
  97. end
  98. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement