Advertisement
Guest User

Universal Atom API

a guest
Jul 29th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.06 KB | None | 0 0
  1. function energy()
  2.  shell.run("clear")
  3.  if not rs.getInput("left") or rs.getInput("right") or fs.getInput("top") or fs.getInput("front") or fs.getInput("back") then
  4.   print("PC can't work without redstone, place lever in PC sides, but not down.")
  5.  else
  6.   auth()
  7.  end
  8. end
  9.  
  10. function auth()
  11.  usr = ""
  12.  passwd = ""
  13.   write("User:")
  14.   term.setCursorPos(1,3)
  15.   print("powered by Authoque, component of Universal Atom API")
  16.  user = read()
  17.  if user == usr then
  18.   write("Password:")
  19.   password = read()
  20.  if password == passwd then
  21.   shell.run("/.bootmanager")
  22.  elseif user then
  23.   print("Authorization error, press any key to reboot.")
  24.   os.pullEvent("key")
  25.   os.reboot()
  26.  elseif password then
  27.   print("Authorization error, press any key to reboot.")
  28.   os.pullEvent("key")
  29.   os.reboot()
  30.   end
  31.  end
  32. end
  33.  
  34. function vent(program)
  35.  print("We have problems with ReactOS Heat Vent System,")
  36.  print("press any key to clear the malware hot gas.")
  37.  os.pullEvent("key")
  38.  shell.run(program)
  39. end
  40.  
  41. function init(string, time)
  42.  sleep(time)
  43.  shell.run(string)
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement