Advertisement
Guest User

startup

a guest
Sep 21st, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. --os.pullEvent = os.pullEventRaw
  2.  
  3. rednet.open("back")
  4.  
  5. local protocol = "gate-security"
  6. local serverID = 1 --rednet.lookup(protocol, "server")
  7. local keyword = "quit"
  8.  
  9. while true do
  10.   term.clear()
  11.   term.setCursorPos(1,1)
  12.   write("Password: ")
  13.   local input = read("*")
  14.  
  15.   if input == keyword then
  16.     break
  17.   else
  18.     rednet.send(serverID, input, protocol)
  19.   end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement