Advertisement
Guest User

startup.lua

a guest
May 24th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. local net = peripheral.wrap("back")
  2. local strength = 0
  3. net.open(1)
  4. net.open(2)
  5. while true do
  6. local event, ms, sc, replyc, message, sd = os.pullEvent("modem_message")
  7. local ns, ruid, content = split(message, "%5%")
  8. if ruid == "89e778f6999f4e091c849cb773e60469" then
  9.   if content == "uno" then
  10.     net.transmit(replyc, sc, "dous")
  11.   end
  12. elseif ns < strength then
  13.   net.transmit(sc, replyc, message)
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement