LewdLamb

Untitled

Jan 17th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. chatbox=peripheral.wrap("top")
  2. while true do
  3.   e,s,p,m=os.pullEvent("chat_message")
  4.   -- where e = event
  5.   --       s = side
  6.   --       p = player
  7.   --       m = message
  8.   end
  9. print("..p.. said "..m)
  10.  
  11.  -- chatbox.say("The event "..e.." on the "..s.." of the computer heard "..p.." say "..m)
Add Comment
Please, Sign In to add comment