Advertisement
ecco7777

chat monitor

Feb 20th, 2015
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. m = peripheral.wrap("bottom")
  2. mon = peripheral.wrap("right")
  3. y = 1
  4. while true do
  5.  
  6. e,player,message = os.pullEvent("chat")
  7.   print ( player .. ":" .. message )
  8. x = player .. ":" .. message
  9. mon.write(x)
  10. y = y + 1
  11. if y > 25 then
  12. y = 1
  13. mon.clear()
  14. end
  15. mon.setCursorPos(1,y)
  16. --if player == "_SkypeHiker_" then
  17.  if message == "ecco" then
  18.   rs.setOutput("left", true)
  19.  end
  20.  if player == "ecco7777" then
  21.   rs.setOutput("left", false)
  22.  --end
  23. end
  24.  
  25. sleep(0.2)
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement