Guest User

startup

a guest
May 31st, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. monitor = peripheral.wrap("back")
  2. dofile("config")
  3. dofile("compat")
  4. while true do
  5.   monitor.clear()
  6.   monitor.setCursorPos(1,1)
  7.   e = {pull_event()}
  8.   if string.sub(e[1], 1, 3) == "sgM" then
  9.      monitor.write(e[3])
  10.      if e[3] == 730 then
  11.        monitor.setCursorPos(1,2)
  12.        monitor.setTextColor(colors.blue)
  13.        monitor.write("-DauntlessFour")
  14.      else
  15.        monitor.setCursorPos(1,2)
  16.        monitor.setTextColor(colors.blue)
  17.        monitor.write("-Unrecognised IDC")
  18.      end
  19.      monitor.setTextColor(colors.white)
  20.      sleep(20)
  21.   end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment