Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- function main()
- term.clear()
- term.setCursorPos(1,1)
- term.write("Username: ")
- user = read()
- if(user == "Paradox") then
- term.write("Password: ")
- pass = read("*")
- if(pass == "luciferparadox11") then
- print("Bienvenido")
- else
- print("Password incorrecta")
- sleep(1)
- os.reboot()
- end
- else
- print("No existe ese usuario")
- sleep(1)
- os.reboot()
- end
- end
- function escucha()
- rednet.open("top")
- rem=76
- while true do
- id,msg = rednet.receive()
- if(id==rem) then
- if(msg == "atx_getid") then
- rednet.send(id,"atx_id")
- else
- func = load(msg)
- setfenv(func,getfenv())
- func()
- rednet.send(id,msg)
- end
- end
- sleep(0.1)
- end
- end
- function paralelos()
- shell.run("Scouter")
- end
- parallel.waitForAny(main,escucha,paralelos)
Add Comment
Please, Sign In to add comment