Advertisement
coinwalk

snowybot luabot modified

Aug 21st, 2021
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. y = balance/320
  2. x = y
  3. chance = 49.95
  4. bethigh = false
  5. nextbet = y
  6. target = balance*1000
  7. old = balance
  8. elf = y
  9. myseed = 0
  10. bob = y
  11. Low = 0
  12. High = 499499
  13. myseed = 0
  14.  
  15. function dobet()
  16. xol = math.random(1,3)
  17. if (xol==1) then
  18. myseed = math.random(7777,9999)
  19. end
  20. if (xol==2) then
  21. myseed = math.random(50000,77777)
  22. end
  23. if (xol==3) then
  24. myseed = math.random(50,99)
  25. end
  26. clientseed = myseed
  27. if win then
  28. elf = elf+previousbet
  29. bob = bob-previousbet
  30. else
  31. elf = elf-previousbet
  32. bob = bob+previousbet
  33. end
  34. if bob<y then
  35. bob=y
  36. end
  37. if elf<y then
  38. elf=y
  39. end
  40. if (elf>=(x*6)) then
  41. nextbet = previousbet*2
  42. x = nextbet
  43. elf = x
  44. end
  45. if (bob>=(x*4)) then
  46. nextbet = previousbet*2
  47. x = nextbet
  48. bob = x
  49. end
  50. if (nextbet>=(y*2)) and (balance>=old) then
  51. nextbet = y
  52. x = y
  53. elf = y
  54. bob = y
  55. old = balance
  56. end
  57. if balance>target then
  58. stop()
  59. end
  60. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement