Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fs.delete("startup")
- fs.delete("SCode")
- local SirenCodeTable = {"175", "217", "218", "220"}
- local SirenServer = {"HLtsrcGt", "startup"}
- local SirenClient = {"ARL1VeTU", "startup"}
- local function SirensACode(tTable, tText)
- local resault = "(Not found!)"
- for i=1, #tTable do
- if tText == tTable[i] then
- resault = tTable[i]
- end
- end
- return resault
- end
- local type
- print("Please enter the system that you want to install: \nThe options are server OR client (Remember to write this in lower case!)")
- write("")
- type = read()
- --if pExists == 1 then break end
- --while pExists == 1 do
- if type == "server" then
- shell.run("pastebin", "get", SirenServer[1], SirenServer[2])
- elseif type == "client" then
- shell.run("pastebin", "get", SirenClient[1], SirenClient[2])
- else
- error("You can only choose server OR client")
- end
- local SiCode = ""
- if not fs.exists("SCode") then
- --print("Successfully downloaded Siren "..type.."\nNow please enter the siren area code: \n")
- if SirensACode(SirenCodeTable, SiCode) == "(Not found!)" then
- print("Please enter the siren codes\nThe Codes are\n175 | 217 | 218 | 219 | 220")
- write("")
- SiCode = read()
- end
- local SCodeFile = fs.open("SCode", "w")
- SCodeFile.write(SiCode)
- SCodeFile.close()
- end
- print("Successfully installed Siren "..type.."\n")
- textutils.slowPrint("Restarting in 5")
- textutils.slowPrint("Restarting in 4")
- textutils.slowPrint("Restarting in 3")
- textutils.slowPrint("Restarting in 2")
- textutils.slowPrint("Restarting in 1")
- textutils.slowPrint("Restarting Now!")
- sleep(1)
- fs.delete("installer")
- os.reboot()
- --end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement