minicl55

Untitled

May 10th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. function startup()
  2. term()
  3. event, n = os.pullEvent("player")
  4. if (n == "minicl55" or n == "AZNCharizard" or n== "Skulldood") then
  5. print("Press 1 for minicl55's house\nPress 2 for mankool's house\nPress 3 for skulldood's house\nPress 4 for stan's house, just because"
  6. event, p = os.pullEvent("char")
  7. if (p == "1") then -- Blue
  8. string pl = "minicl55's house"
  9. rs.getBundledOutput("bottom",colors.add(rs.getBundledOutput("bottom"), colors.blue))
  10. end
  11. if (p == "2") then --Red
  12. string pl = "Mankool's house"
  13. rs.getBundledOutput("bottom",colors.add(rs.getBundledOutput("bottom"), colors.red))
  14. end
  15. if (p == "3") then --Orange
  16. string pl = "Skulldood's house"
  17. rs.getBundledOutput("bottom",colors.add(rs.getBundledOutput("bottom"), colors.orange))
  18. end
  19. if (p == "4") then --Purple
  20. string pl = "Stan's house"
  21. rs.getBundledOutput("bottom",colors.add(rs.getBundledOutput("bottom"), colors.purple))
  22. end
  23. print(n.." has been teleported to "..pl..".")
  24. redstone.setOutput("bottom", true)
  25. sleep(1)
  26. redstone.setOutput("bottom", false)
  27. startup()
  28. term()
  29. else
  30. print("Whoops, it appears like you don't have permissions.")
  31. startup()
  32. term()
  33. end
  34. end
  35.  
  36. function term
  37. local event = { os.pullEventRaw(_sFilter) }
  38. if event[1] == "terminate" then
  39. shell.run("startup")
  40. end
  41. return unpack(event)
  42. end
  43.  
  44. startup()
Advertisement
Add Comment
Please, Sign In to add comment