Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c=peripheral.wrap("top")
- i=1
- owner="ecco7777"
- name="Helmut"
- dialog={
- "sag hallo","hallo",
- "wie geht es dir?","gut",
- "","",
- "","",
- "","",
- "","",
- "","",
- "",""}
- while true do
- e,player,message = os.pullEvent("chat")
- i=1
- while dialog[i]~= nil do
- if player==owner and message==name.." "..dialog[i] then
- s.say(name..": "..dialog[i+1])
- end
- i=i+2
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement