Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ****************************************************** --
- -- ****************************************************** --
- -- ** Reactor Control Start ** --
- -- ** for Big Reactor ** --
- -- ** Written by CJ Wayland ** --
- -- ****************************************************** --
- -- ****************************************************** --
- --pastebin get uxt8RnbW startup
- local args = { ... }
- local programName = "reactorControl"
- local programCode1 = "MLBY1YPY"
- local programCode2 = "4E7QiqMu"
- local testProgram = "waz7N1Eh"
- local testNew = "rTmdSTWY"
- --for a on and off code codeVersion = 1
- --for a control rod code codeVersion = 2
- --for a test code codeVersion = 3
- --for a new test codeVersion = 4
- local codeVersion = 1
- --if it already exists then don't load again
- --load again if asked to update
- if (fs.exists(programName) == false or args[1] == "update") then
- shell.run("rm " .. programName)
- if(codeVersion == 1) then
- shell.run("pastebin get " .. programCode1 .. " " .. programName)
- elseif(codeVersion == 2) then
- shell.run("pastebin get " .. programCode2 .. " " .. programName)
- elseif(codeVersion == 3) then
- shell.run("pastebin get " .. testProgram .. " " .. programName)
- elseif(codeVersion == 4) then
- shell.run("pastebin get " .. testNew .. " " .. programName)
- end
- end
- print("Starting Reactor Program")
- shell.run(programName)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement