Advertisement
ecco7777

CC Notar

Nov 28th, 2015
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. c=peripheral.wrap("top")
  2. p=peripheral.wrap("right")
  3. while true do
  4. event, player, message = os.pullEvent("chat")
  5. if player=="ecco7777" and string.sub(message,1,7) == "notiere" then
  6. p.newPage()
  7. p.setPageTitle(string.sub(message,9))
  8. y=1
  9. while message~="schluss" do
  10. event,  player, message = os.pullEvent("chat")
  11. if player=="ecco7777" then
  12. p.setCursorPos(1,y)
  13. p.write(message)
  14. y=y+1
  15. end
  16. end
  17. p.endPage()
  18.    
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement