SHARE
TWEET

blink

Hauteknits Feb 14th, 2020 (edited) 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. arg = {...}
  2. name = arg[1]
  3. write("Enter passkey: ")
  4. pass = read()
  5. rednet.send(68, pass, "blinkProto")
  6. senderID, check, proto = rednet.receive(7)
  7. if check == "Correct" then
  8.     rednet.send(68, name, "blinkProto")
  9.     senderID, message, proto = rednet.receive(5)
  10.     if message == "Getting satellite fix..." then
  11.         print(message)
  12.         senderID, message, proto = rednet.receive()
  13.         print(message)
  14.     else
  15.         print("error")
  16.     end
  17. elseif check == "failed" then
  18.     print("Error: Wrong passkey!")
  19. else
  20.     print("Error: No response, you are likely out of range")
  21. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top