Advertisement
tocacorp

Client

Nov 9th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2.  
  3. rednet.open("back")
  4. local serverId = 32
  5. local done = false
  6. local myId = os.computerID()
  7.  
  8. while done == false do
  9.  
  10. term.clear()
  11. term.setCursorPos(1,1)
  12. write("Enter Password:")
  13. local password = read()
  14. term.clear()
  15. term.setCursorPos(1,1)
  16.  
  17.  
  18. if password == colegiodosplatanos then
  19.  exit()
  20.  
  21. else
  22.  
  23. rednet.send(serverId,password)
  24. senderId,message,distance = rednet.receive(5)
  25. if senderId == serverId then
  26.  if message == "Valid" then
  27. print("Acess Granted")
  28. rs.setOutput("right",true)
  29. sleep(5)
  30. rs.setOutput("right",false)
  31. end
  32. end
  33. end
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement