Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Alle Rechte an SimSoft 3 sind "SimlorLP" (oder in Minecraft auch nur "Simlor") vorbehalten.
- --Function
- function Clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- function CP(x,y)
- term.setCursorPos(x,y)
- end
- function TC(farbe)
- term.setTextColor(farbe)
- end
- function BC(farbe)
- term.setBackgroundColor(farbe)
- end
- BC(128)
- Clear()
- CP(1,1)
- BC(32768)
- print(" ")
- print(" ")
- print(" ")
- CP(15,2)
- TC(1)
- print("SimSoft 3 - Installer")
- TC(1)
- BC(128)
- CP(4,5)
- print("Terms of use")
- CP(2,8)
- TC(256)
- print("-All rights are reserved to")
- CP(2,9)
- print(" SimlorLP (or just Simlor)")
- CP(2,11)
- print("-Changes in the system may be carried out")
- CP(2,12)
- print(" only with the permission of SimlorLP.")
- CP(4,18)
- TC(1)
- print("Tip - Use the arrow keys")
- CP(47,18)
- TC(256)
- print("1/3")
- l = 1
- while true do
- if l == 1 then
- CP(4,15)
- BC(128)
- TC(32768)
- print("Yes, continue ")
- CP(20,15)
- BC(128)
- TC(32768)
- print("[No, cancel] ")
- elseif l == 2 then
- CP(4,15)
- BC(128)
- TC(32768)
- print("[Yes, continue]")
- CP(20,15)
- BC(128)
- TC(32768)
- print("No, cancel ")
- end
- a, b = os.pullEvent()
- while a~= "key" do a,b = os.pullEvent() end
- if b == 203 then
- l = 2
- end
- if b == 205 then
- l = 1
- end
- if b == 28 then
- if l == 1 then
- os.reboot()
- break
- elseif l == 2 then
- break
- end
- end
- end
- --Teil 2
- BC(128)
- Clear()
- CP(1,1)
- BC(32768)
- print(" ")
- print(" ")
- print(" ")
- CP(15,2)
- TC(1)
- print("SimSoft 3 - Installer")
- BC(128)
- TC(256)
- CP(4,6)
- print("New PC-Name -")
- TC(1)
- CP(4,9)
- print("New account name -")
- CP(4,11)
- print("New account password -")
- CP(47,18)
- TC(256)
- print("2/3")
- CP(19,6)
- TC(32768)
- pcname = read()
- CP(23,9)
- TC(32768)
- name = read()
- CP(27,11)
- TC(32768)
- pass = read()
- --Teil 3
- BC(128)
- Clear()
- CP(1,1)
- BC(32768)
- print(" ")
- print(" ")
- print(" ")
- CP(15,2)
- TC(1)
- print("SimSoft 3 - Installer")
- BC(128)
- CP(20,10)
- TC(1)
- print("Let's go!")
- CP(20,11)
- TC(256)
- print(" [Enter]")
- BC(128)
- CP(2,17)
- TC(256)
- print("Cancel")
- CP(2,18)
- print(" [Q]")
- CP(47,18)
- TC(256)
- print("3/3")
- while true do
- a, b = os.pullEvent()
- while a~= "key" do a,b = os.pullEvent() end
- if b == 16 then
- os.reboot()
- end
- if b == 28 then
- break
- end
- end
- --Teil 4 - Installer
- BC(128)
- TC(32)
- Clear()
- shell.run("cd /")
- fs.delete("SimSoft/System")
- fs.delete("SimSoft/SappS")
- fs.delete("SimSoft/Daten")
- fs.delete("startup")
- os.setComputerLabel(pcname)
- Clear()
- BC(128)
- Clear()
- CP(1,1)
- BC(32768)
- print(" ")
- print(" ")
- print(" ")
- CP(15,2)
- TC(1)
- print("SimSoft 3 - Installer")
- CP(3,8)
- BC(256)
- print(" ")
- CP(3,8)
- BC(1)
- write(" ")
- local file = fs.open("SimSoft/Daten/Config","w")
- file.close()
- local file = fs.open("SimSoft/Daten/Config","a")
- file.writeLine("t")
- file.writeLine("t")
- file.writeLine("3.1.3")
- file.writeLine("en")
- file.close()
- --
- local file = fs.open("SimSoft/Daten/User/User1","w")
- file.close()
- local file = fs.open("SimSoft/Daten/User/User1","a")
- file.writeLine(name)
- file.writeLine(pass)
- file.close()
- local file = fs.open("SimSoft/Daten/User/User2","w")
- file.close()
- local file = fs.open("SimSoft/Daten/User/User2","a")
- file.writeLine("Account 2")
- file.writeLine("123")
- file.writeLine("false")
- file.close()
- local file = fs.open("SimSoft/Daten/User/User3","w")
- file.close()
- local file = fs.open("SimSoft/Daten/User/User3","a")
- file.writeLine("Account 3")
- file.writeLine("123")
- file.writeLine("false")
- file.close()
- --
- write(" ")
- --
- local file = fs.open("SimSoft/Daten/SappS/1","w")
- file.close()
- local file = fs.open("SimSoft/Daten/SappS/1","a")
- file.writeLine("")
- file.close()
- local file = fs.open("SimSoft/Daten/SappS/1","a")
- file.writeLine("")
- file.close()
- local file = fs.open("SimSoft/Daten/SappS/1","a")
- file.writeLine("")
- file.close()
- local file = fs.open("SimSoft/Daten/SappS/1","a")
- file.writeLine("")
- file.close()
- local file = fs.open("SimSoft/Daten/SappS/1","a")
- file.writeLine("n")
- file.close()
- local file = fs.open("SimSoft/Daten/SappS/1","a")
- file.writeLine("false")
- file.close()
- --
- write(" ")
- --
- u = 1
- while true do
- u = (u+1)
- fs.copy("SimSoft/Daten/SappS/1", "SimSoft/Daten/SappS/"..u)
- if u == 15 then
- break
- end
- end
- local file = fs.open("SimSoft/Daten/SappS/A","w")
- file.writeLine("0.0")
- file.close()
- function Download(Pfad, CodePB)
- local cacheBuster = ("%x"):format(math.random(0, 2 ^ 30))
- local datei = http.get("https://pastebin.com/raw/" .. textutils.urlEncode(CodePB) .. "?cb=" .. cacheBuster)
- datei = datei.readAll()
- local file = fs.open(Pfad, "w")
- file.write(datei)
- file.close()
- write(" ")
- end
- Download("SimSoft/System/Desktop", "V32EFt9q")
- Download("SimSoft/System/SappS", "xvU8Ep0N")
- Download("SimSoft/System/SystemStart", "9TDWzqPK")
- Download("SimSoft/Daten/DesktopBG", "5UqmydfY")
- Download("startup", "MmCHLubv")
- Download("SimSoft/System/SystemUpdate", "46mQ0NML")
- Download("SimSoft/System/LiveSystem", "MssfrTSH")
- Download("SimSoft/System/AcManager", "cqa2Pxrh")
- print(" ")
- sleep(0.8)
- os.reboot()
- --end
Add Comment
Please, Sign In to add comment