Guest User

startup

a guest
Sep 14th, 2013
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. os.pullEvent=os.pullEventRaw
  2. --Variables
  3. passcheck=tonumber(469)
  4.  
  5. --START
  6. rednet.open("bottom")
  7.  
  8. term.clear()
  9. term.setCursorPos(1,1)
  10. print("Magpie Security v2|")
  11. print("------------------'")
  12. write("password: ")
  13. ui=read("*")
  14. rednet.send(passcheck, ui)
  15. id,msg=rednet.receive()
  16. if msg == "yes" then
  17.   term.clear()
  18.   term.setCursorPos(1,1)
  19.   print("Magpie Security|")
  20.   print("---------------'")
  21. else
  22.   print("wrong")
  23. end
Advertisement
Add Comment
Please, Sign In to add comment