Advertisement
Guest User

test

a guest
Oct 25th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. c = peripheral.wrap("left")
  2. s = peripheral.wrap("right")
  3. while true do
  4. event, player, msg = os.pullEvent("chat")
  5. if msg == "Licorne" then
  6. s.speak("moi aussi")
  7. rs.setOutput("back",true)
  8. os.sleep(2)
  9. s.speak("Ja dore les licorne")
  10. os.sleep(2)
  11. s.speak("Encore Encore")
  12. else
  13. if msg == "salut" then
  14. c.say("A+ tout le mondes")
  15. else
  16. if msg == "non" then
  17. c.say("oui")
  18.      end
  19.    end
  20.  end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement