SHOW:
|
|
- or go back to the newest paste.
1 | local detector = peripheral.find("playerDetector") | |
2 | local chat = peripheral.find("chatBox") | |
3 | local players = detector.getPlayersInRange(50) | |
4 | ||
5 | for k,v in pairs(players) do | |
6 | if v == "D3tra" | |
7 | then chat.sendMessage("hi ari!", "buddytron-3000") | |
8 | - | if message == "hi" then sendMessage("hey!", "buddytron-3000") |
8 | + | |
9 | - | elseif message == "who are you" or "who are you?" or "?" then sendMessage("i'm buddytron-3000!", "buddytron-3000") |
9 | + | then chat.sendMessage("hi rochelle! hi ari! ", "buddytron-3000") |
10 | elseif v == "CDSabo" | |
11 | then chat.sendMessage("what are you doing here?", "buddytron-3000") | |
12 | elseif v == "Scorpion2561" | |
13 | - | then sendMessage("hi ari!", "buddytron-3000") |
13 | + | then chat.sendMessage("brandon, how are you doing?", "buddytron-3000") |
14 | elseif v == "Jesse" | |
15 | - | then sendMessage("hi rochelle! hi ari! ", "buddytron-3000") |
15 | + | then chat.sendMessage("jesse... hope u dont got the ender-flu.", "buddytron-3000") |
16 | elseif v == "ItzzzCazzz" | |
17 | - | then sendMessage("what are you doing here?", "buddytron-3000") |
17 | + | then chat.sendMessage("long time no see cazaroni", "buddytron-3000") |
18 | sleep(1) | |
19 | - | then sendMessage("brandon, how are you doing?", "buddytron-3000") |
19 | + | end |
20 | end | |
21 | - | then sendMessage("jesse... hope u dont got the ender-flu.", "buddytron-3000") |
21 | + | local pos = detector.getPlayerPos(Scorpion2124) |
22 | while true do | |
23 | - | then sendMessage("long time no see cazaroni", "buddytron-3000") |
23 | + | |
24 | - | sleep(10) |
24 | + | |
25 | print(username.. " just wrote: ".. message) -- Prints "*User* just wrote: *Message*" | |
26 | - | end |
26 | + | if message == "hi" then chat.sendMessage("hey!", "buddytron-3000") |
27 | elseif message == "?" then chat.sendMessage("i'm buddytron-3000!", "buddytron-3000") | |
28 | - | end |
28 | + | elseif message == "who are you" then chat.sendMessage("i'm buddytron-3000!", "buddytron-3000") |
29 | elseif message == "who are you?" then chat.sendMessage("i'm buddytron-3000!", "buddytron-3000") | |
30 | elseif message == "how are you doing?" then chat.sendMessage("i'm good what about you?", "buddytron-3000") | |
31 | elseif message == "good" then chat.sendMessage("awesome", "buddytron-3000") | |
32 | elseif message == "where is brandon?" then chat.sendMessage("pos.x, pos,y, pos.z") | |
33 | end | |
34 | ||
35 | ||
36 | ||
37 | end | |
38 |