Advertisement
ZeroCool5254

OS.2.2

Jul 16th, 2014
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.24 KB | None | 0 0
  1. p = peripheral.wrap ("bottom")
  2. monitor = peripheral.wrap ("top")
  3. monitor.clear()
  4. monitor.setCursorPos(1,1)
  5. monitor.setTextScale(1)
  6. monitor.write ("Systems Active")
  7. while true do
  8.   evt, msg = os.pullEvent()
  9.   if evt == "chat_command" and msg == "help" then
  10.   p.addText (1, 1, "Displaying Commands", 0xFF0000)
  11.   p.addText (1, 10, "Garage - Bunker - Passage", 0x0020C2)
  12.   p.addText (1, 20, "Computer - Armor - Lasers", 0x0020C2)
  13.   p.addText (1, 30, "Power - Chamber - Reactor", 0x0020C2)
  14.   sleep (5)
  15.   p.clear()
  16.   end
  17.   if evt == "chat_command" and msg == "garage" then
  18.   rs.setBundledOutput ("back", colors.orange)
  19.   sleep (2)
  20.   rs.setBundledOutput ("back",rs.getBundledOutput ("back")-colors.orange)
  21.   end
  22.   if evt == "chat_command" and msg == "bunker" then
  23.   rs.setBundledOutput ("back", colors.magenta)
  24.   sleep (2)
  25.   rs.setBundledOutput ("back",rs.getBundledOutput ("back")-colors.magenta)
  26.   end
  27.   if evt == "chat_command" and msg == "passage" then
  28.   rs.setBundledOutput ("back", colors.lightBlue)
  29.   sleep (2)
  30.   rs.setBundledOutput ("back" ,rs.getBundledOutput ("back")-colors.lightBlue)
  31.   end
  32.   if evt == "chat_command" and msg == "computer" then
  33.   rs.setBundledOutput ("back", colors.yellow)
  34.   sleep (2)
  35.   rs.setBundledOutput ("back" ,rs.getBundledOutput ("back")-colors.yellow)
  36.   end
  37.   if evt == "chat_command" and msg == "armor" then
  38.   rs.setBundledOutput ("back", colors.lime)
  39.   sleep (2)
  40.   rs.setBundledOutput ("back" ,rs.getBundledOutput ("back")-colors.lime)
  41.   end
  42.   if evt == "chat_command" and msg == "lasers" then
  43.   rs.setBundledOutput ("back", colors.pink)
  44.   sleep (2)
  45.   rs.setBundledOutput ("back" ,rs.getBundledOutput ("back")-colors.pink)
  46.   end
  47.   if evt == "chat_command" and msg == "power" then
  48.   rs.setBundledOutput ("back", colors.gray)
  49.   sleep (2)
  50.   rs.setBundledOutput ("back" ,rs.getBundledOutput ("back")-colors.gray)
  51.   end
  52.   if evt == "chat_command" and msg == "chamber" then
  53.   rs.setBundledOutput ("back", colors.lightGray)
  54.   sleep (2)
  55.   rs.setBundledOutput ("back" ,rs.getBundledOutput ("back")-colors.lightGray)
  56.   end
  57.   if evt == "chat_command" and msg == "reactor" then
  58.   rs.setBundledOutput ("back", colors.cyan)
  59.   sleep (2)
  60.   rs.setBundledOutput ("back" ,rs.getBundledOutput ("back")-colors.cyan)
  61.   end
  62. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement