optimised code and modified for MP use

This commit is contained in:
Chris Sanden
2026-04-29 14:04:14 +02:00
parent 5e68391057
commit 6b69855372

View File

@@ -1,46 +1,25 @@
homePW = #envar homePW
doomKey = #envar doomKey
g = get_custom_object
doomPath = "/root/doom"
myShell = get_shell("root", homePW)
/*
g.count = 0
while g.count < 2
myShell.launch("/usr/bin/Terminal.exe", "doom")
print("Launched terminal #" + g.count + "\n")
g.count += 1
wait 2
end while
*/
if not myShell then
exit("<color=red><b>Not able to get root shell...\n</b></color>")
else
print("<color=green><b>Root shell obtained</b></color>")
end if
i = 0
while (i < 4)
myShell.launch("usr/bin/Terminal.exe", "some terminal launch arg")
filePath = "usr/bin/"
extension = ".exe"
launchSequence = ["Terminal", "Terminal", "Terminal", "Terminal", "AdminMonitor", "FileExplorer", "Mail", "Notepad", "Chat"]
argSequence = ["", "doom", "doom", "doom", "", "", "", "", ""]
if launchSequence.len != argSequence.len then exit(user_input("<center><b><color=red>Launch and args arent the same length...\n</color>Press enter to exit...</b></center>"))
for lines in launchSequence
myShell.launch(filePath + launchSequence[line] + extension, argSequence[line])
wait 2
i += 1
end while
i = 0
somePath = launch_path
print("\n<b> Debug log: <b>\n Parent path: " + parent_path(somePath) + "\n\n")
// uncomment for MP
//myShell.launch("/usr/bin/Chat.exe")
myShell.launch("/usr/bin/AdminMonitor.exe")
wait 2
myShell.launch("/usr/bin/FileExplorer.exe")
wait 2
myShell.launch("/usr/bin/Mail.exe")
wait 2
myShell.launch("/usr/bin/Notepad.exe")
end for
exit()