Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Disable Manual Termination
- os.pullEvent = os.pullEventRaw
- --Declare Variables
- local username;
- local password;
- id = "Crysys";
- key = "thewhiterabbit";
- override= "6552180573395";
- alarmSide = "back";
- alarmTimeout = "3";
- doorSide = "bottom";
- doorTimeout = "5";
- errorTimeout = "1";
- delay = "1";
- --Display Data Requests, Get Inputs
- term.clear();
- term.setCursorPos(1,1);
- print("Nuclear Facility - Access Verification Required");
- print("");
- print("Username:");
- term.setCursorPos(11,3);
- username = read();
- print("Password:");
- term.setCursorPos(11,4);
- password = read("*");
- --Handle Inputs
- if username == id and password == key then
- term.clear();
- term.setCursorPos(1,1);
- print("Access Granted");
- rs.setOutput(alarmSide, true);
- sleep(alarmTimeout);
- rs.setOutput(alarmSide, false);
- sleep(delay);
- rs.setOutput(doorSide, true);
- sleep(doorTimeout);
- rs.setOutput(doorSide, false);
- os.reboot();
- elseif username == id and password == override then
- term.clear();
- term.setCursorPos(1,1);
- print("Maintanence Mode ENABLED");
- print("");
- else
- print("Login FAILED");
- sleep(errorTimeout);
- os.reboot();
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement