Advertisement
cchadwicka

Dicebot script for 999dice

May 21st, 2019
1,319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. chance= 48
  2. base=0.00000001
  3. bethigh = true
  4.  
  5. nextbet = base
  6. investprofit = 0
  7. wincount = 0
  8. losecount=0
  9. stopnow = false
  10. first = true
  11. second = false
  12. secondwin = false
  13. third = false
  14. betcount=1
  15.  
  16. -- set profit target here (Final Balance after Winning)
  17. profittarget= 100.00
  18.  
  19. function dobet()
  20.  
  21. --Randomizer
  22. r=math.random(2)
  23.  
  24. if r == 1 then
  25. bethigh=true
  26. else
  27. bethigh=false
  28. end
  29.  
  30. if betcount == 1 then
  31. betcount=0
  32. resetseed();
  33. else
  34. betcount=betcount+1
  35. end
  36.  
  37. if (balance) >= profittarget then
  38. stop();
  39. print(balance)
  40. print("TARGET ACHIEVED!!!")
  41. end
  42.  
  43. if (balance) < (nextbet) then
  44. stop();
  45. print(balance)
  46. print("INSUFFICIENT FUNDS")
  47. end
  48.  
  49. done = false
  50.  
  51. if win then
  52.  
  53. --switch high/low every win
  54. bethigh = false
  55.  
  56. if(first) then
  57. -- switch high/low on the first win
  58. bethigh = !bethigh
  59. nextbet = base
  60. if(stopnow) then stop() end
  61. end
  62. if(second) then
  63. -- switch high/low on the second win
  64. bethigh = !bethigh
  65. secondwin = true
  66. second = false
  67. third = true
  68. done = true
  69. end
  70. if(third and !done) then
  71. -- switch high/low on the third win
  72. bethigh = !bethigh
  73. if(secondwin) then
  74. -- switch high/low on the second and third win
  75. bethigh = !bethigh
  76. nextbet = base
  77. if(stopnow) then stop() end
  78. else
  79. -- switch high/low on one and two lose third win
  80. bethigh = !bethigh
  81. nextbet = previousbet * 3
  82. end
  83. third = false
  84. first = true
  85. end
  86. else
  87. -- switch high/low on the every lose
  88. bethigh = true
  89. if(first and !done) then
  90. -- switch high/low on the first lose
  91. bethigh = !bethigh
  92. first = false
  93. second = true
  94. done = true
  95. end
  96. if(second and !done) then
  97. -- switch high/low on the second lose
  98. bethigh = !bethigh
  99. secondwin = false
  100. second = false
  101. third = true
  102. done = true
  103. end
  104. if(third and !done) then
  105. -- switch high/low on the third lose
  106. bethigh = !bethigh
  107. third = false
  108. first = true
  109. print("GO 4 THE WIN!!!")
  110. if (secondwin) then
  111. -- switch high/low on the one lose two in thrird lose
  112. bethigh = !bethigh
  113. nextbet = previousbet * 3
  114. else
  115. -- switch high/low only if all three lose
  116. bethigh = !bethigh
  117. nextbet = previousbet * 4
  118. end
  119. done = true
  120. end
  121. end
  122. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement