Advertisement
Guest User

installer.lua

a guest
Apr 27th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.84 KB | None | 0 0
  1. --Installer Script v0.1
  2. print("Installing authServer")
  3. shell.run("pastebin", "get" ,"aez6DhWB", "authServer.lua")
  4. print("Installing Command Interpreter")
  5. shell.run("pastebin", "get", "sygJd2Wu", "commandprocessor.lua")
  6. print("")
  7. uname = {}
  8. pword = {}
  9. authLevel = {5}
  10. print("Please enter the following information: ")
  11. write("Username: ")
  12. input = read()
  13. table.insert(uname, input)
  14. print("")
  15. write("Password: ")
  16. input = read()
  17. table.insert(pword, input)
  18. print("")
  19. print("Dont forget this information!")
  20. print("It is the master account.")
  21. sleep(1)
  22. print("Saving information...")
  23. f = fs.open("uname", "w")
  24. f.write(textutils.serialise(uname))
  25. f.close()
  26. f = fs.open("pword", "w")
  27. f.write(textutils.serialise(pword))
  28. f.close()
  29. f = fs.open("authLevel", "w")
  30. f.write(textutils.serialise(authLevel))
  31. f.close()
  32. sleep(1)
  33. print("Saved!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement