Advertisement
karelvysinka

spawn2 vytah brana strop david

May 2nd, 2015
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. function password()
  2. os.pullEvent = os.pullEventRaw
  3. term.clear()
  4. term.setCursorPos(10, 10)
  5. print("PLEASE ENTER PASSWORD FROM RULES")
  6. term.setCursorPos(22, 6)
  7. pass = read()
  8. if pass == "freedom" then
  9. term.clear()
  10. term.setCursorPos(15, 10)
  11. print("WELCOME TO OUR SERVER")
  12. move()
  13. elseif pass == "kuna12345" then
  14. exit()
  15. else
  16. term.clear()
  17. term.setCursorPos(5, 10)
  18. print("WRONG PASSWORD READ RULES TO FIND PASSWORD")
  19. sleep(3)
  20. password()
  21. end
  22. end
  23.  
  24. function vro()
  25. rs.setBundledOutput(b1, 2)
  26. sleep(1)
  27. rs.setBundledOutput(b1, 0)
  28. end
  29.  
  30. function vrz()
  31. rs.setBundledOutput(b1, 1)
  32. sleep(1)
  33. rs.setBundledOutput(b1, 0)
  34. end
  35.  
  36. function dvo()
  37. rs.setBundledOutput(b1, 16)
  38. sleep(1)
  39. rs.setBundledOutput(b1, 0)
  40. sleep(1)
  41. end
  42.  
  43. function dvz()
  44. rs.setBundledOutput(b1, 32)
  45. sleep(1)
  46. rs.setBundledOutput(b1, 0)
  47. sleep(1)
  48. end
  49.  
  50. function vn()
  51. rs.setBundledOutput(b1, 4)
  52. sleep(1)
  53. rs.setBundledOutput(b1, 0)
  54. sleep(1)
  55. end
  56.  
  57. function vd()
  58. rs.setBundledOutput(b1, 8)
  59. sleep(1)
  60. rs.setBundledOutput(b1, 0)
  61. sleep(1)
  62. end
  63.  
  64. function move()
  65. for i = 0, 3 do
  66. dvz()
  67. end
  68. for i = 0, 2 do
  69. vro()
  70. sleep(1)
  71. end
  72. for i = 0, 11 do
  73. vro()
  74. vn()
  75. end
  76. sleep(10)
  77. vd()
  78. vd()
  79. for i = 0, 11 do
  80. vd()
  81. vrz()
  82. end
  83. for i = 0, 3 do
  84. dvo()
  85. end
  86. password()
  87. end
  88.  
  89. b1 = "back"
  90. password()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement