karelvysinka

vytah velky david spawn

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