Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --New JESSE boot script
- --Remove comment from command lines for OpenComputers
- --[[local component = require("component")
- local c = component.computer
- local gpu = component.gpu
- gpu.setForeground(0x00FF00)]]
- function sleep(s) local ntime = os.clock() + s repeat until os.clock() > ntime end
- ::CLSLogin:: --Clears screen for login and displays the JESSE info.
- if not os.execute("clear") then os.execute("cls") elseif not os.execute("cls") then for i = 1,25 do print("\n\n") end end
- print ("Java-runtime Environment Script Software Emulator- JESSE")
- ::Logon:: --Asks for the Username and
- print ("Enter username:")
- User = io.read ()
- print ("Enter password:")
- Pass = io.read ()
- if User == "CaliRailfan" and Pass == "pass" then
- goto LoadUIcls
- else
- print "Incorrect information entered"
- goto Logon
- end
- ::LoadUIcls:: --Clears the screen for the options menu.
- if not os.execute("clear") then os.execute("cls") elseif not os.execute("cls") then for i = 1,25 do print("\n\n") end end
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- --gpu.setForeground (0xFFFFFF)
- print (" ___")
- print (" |T T|")
- print (" | - |")
- print (" [ -]")
- --gpu.setForeground (0x00FF00)
- --computer.beep(600,1)
- sleep(1)
- if not os.execute("clear") then os.execute("cls") elseif not os.execute("cls") then for i = 1,25 do print("\n\n") end end
- print ("Welcome to JESSE, the script software computer made for Minecraft.")
- ::ContCom:: --Restarts every time you need to enter a command
- print ("Type a command to continue:")
- print ("Execute, Exit, EditSrc, ErrCodes")
- Command = io.read ()
- if Command == "I am not a furry" then
- goto ErrF08
- elseif Command == "Exit" then
- goto CLSLogin
- elseif Command == "ErrCodes" then
- goto ErrCodes
- --[[
- elseif Command == "Execute" then
- print ("Enter OpenOS command to execute")
- Exec = io.read ()
- os.execute(Exec)
- elseif Command == "EditSrc"
- os.execute("edit /home/Jesse.lua")
- ]]
- else
- print("Command Invalid")
- goto ContCom
- end
- ::ErrCodes::
- print ("Error Codes:")
- print ("0x444E43: DNC- Does not compute. Used when the computer cannot handle a command")
- print ("0x434e46: CNF- Code not Finished.")
- goto ContCom
- ::ErrF08::
- if not os.execute("clear") then os.execute("cls") elseif not os.execute("cls") then for i = 1,25 do print("\n\n") end end
- --computer.beep(800,0.25)
- sleep(0.5)
- --computer.beep(800,0.25)
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- print ("")
- --gpu.setForeground (0xFFFFFF)
- print (" ___")
- print (" |x x|")
- print (" | ^ |")
- print (" [ -]")
- --gpu.setForeground (0xFF0000)
- print (" 0444E43")
- print (" ERROR")
- print ("")
- print ("")
- print ("")
- print ("The fatal error 0x444E43 has occurred.")
- print ("")
- print ("")
- print ("The computer will now open the shell.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement