nomnuggetnom

Chatbox

Aug 28th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. local chatBox = peripheral.wrap("left")
  2.  
  3. -------------
  4. while true do
  5. -------------
  6.  
  7. local event, player, message = os.pullEvent("chat")
  8.     --if player == "NomNuggetNom" and message == "Who's the coolest member?" then
  9.     if player == "murkycaveman" and message == "Who's cool?" then
  10.         chatBox.say("Not you, " ..tostring(player))
  11.  
  12.     elseif player == "PlacidWaste" and message == "Who's cool?" then
  13.         chatBox.say("Not you, " ..tostring(player))
  14.  
  15.     elseif player == "NomNuggetNom" and message == "Who's cool?" then
  16.         chatBox.say("" ..tostring(player).. " is")
  17.  
  18.     elseif player == "buizerd007" and message == "Who's cool?" then
  19.         chatBox.say("" ..tostring(player).. " is")
  20.  
  21.     elseif player == "andyjonpage" and message == "Who's cool?" then
  22.         chatBox.say("" ..tostring(player).. " is")
  23.     end
  24. ---
  25. end
  26. ---
Advertisement
Add Comment
Please, Sign In to add comment