Advertisement
Leka74

Untitled

Jan 24th, 2012
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. print("Welcome to the KriNe nuclear system.\r\nWARNING: This is not a joke.");
  2. print("Enter the keycode to activate: ");
  3.  
  4. sRealPassword = "nexusrocks";
  5. sSymbol = "*";
  6.  
  7. sInput = read(sSymbol);
  8. if (sRealPassword == sInput) then
  9.     print("Nuclear system activated. Count down has begun. Find a shelter.");
  10.     for i=0, 10 do
  11.         print(10-i);
  12.         sleep(1)
  13.     end
  14.     print("Launched");
  15.     redstone.setOutput("left", true);
  16.     sleep(5);
  17.     redstone.setOutput("left", false);
  18.     os.reboot();
  19. else
  20.     print("Incorrect keycode.");
  21.     os.reboot();
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement