Advertisement
CryptekCoding

Blinker

Mar 31st, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. local mon = peripheral.wrap("back")
  2.  
  3. mon.write = function (...)
  4.   mon.callRemote("wrap", ...)
  5. end
  6.  
  7. mon.clear = function () mon.callRemote("clear") end
  8.  
  9. mon.setCursorPos = function (...)
  10.   mon.callRemote("setCursorPos", "?", ...)
  11. end
  12.  
  13. local messages = {
  14.   "Do not enter!", " ", " ", "Or else! ", " "," " }
  15.  
  16. repeat
  17.   for i = 1, #messages do
  18.     mon.setCursorPos(1, 1)
  19.     mon.clear()
  20.     mon.write("Server Room")
  21.     mon.setCursorPos(1, 2)
  22.     mon.write(messages[i])
  23.     sleep(1)
  24.   end
  25. until cows_come_home
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement