Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Passwort_Justin = "2706"
- function test()
- while true do
- if rs.testBundledInput("back",colors.yellow) == true then
- rs.setBundledOutput("back",colors.white)
- print("Recieve")
- rednet.open("top")
- sleep(1)
- benutzer()
- break
- else
- print("Not Connected")
- sleep(1)
- end
- end
- end
- function benutzer()
- write("User: ")
- if io.read() == "Justin" then
- passwort(Passwort_Justin,"Justin")
- else
- print("Error(1)")
- end
- end
- function Auswahl(user)
- local input = io.read()
- if input == "Holz" then
- textutils.slowPrint("Holz wird bestellt ...")
- write("wird geliefert an ")
- print(user)
- rednet.broadcast("Holz",user)
- end
- end
- function passwort(pw,user)
- write("Passwort: ")
- if io.read() == pw then
- term.clear()
- term.setCursorPos(1,1)
- write("Willkommen ")
- print(user)
- Auswahl(user)
- else
- print("Falsches Passwort!")
- end
- end
- write("Webadresse: ")
- local input = io.read()
- if input == "www.root.de" then
- redstone.setBundledOutput("back",colors.green)
- write("Pinging: ")
- print("www.root.de")
- sleep(2)
- test()
- elseif input == "www.internet.de" then
- redstone.setBundledOutput("back",colors.red)
- print("Pinging: ")
- write("www.Internet.de")
- sleep(6)
- test()
- end
Add Comment
Please, Sign In to add comment