Advertisement
Guest User

startup.lua

a guest
May 24th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 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 == "a218f3fa887360944064d40f6dfb5139" 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