Posted 14 January 2013 - 10:09 AM
Hello everyone, first of all my question seems to be an easy one but if you count the hours i've spend looking for an anwser and asking questions in other forums you wont mind me asking it here.
So, what im trying to do is diffecult to explain so posting the code will help me with that. Everything works fine except the reference shell.run("factory1")
Well here the code:
os.pullEvent = os.pullEventRaw
local loop = true
while loop == true do
term.clear()
term.setCursorPos(1,1)
print("password?")
local input = read()
if input == "example" then
term.setCursorPos(1,1)
print("factory mainframe access granted.")
print("executable programs:")
print("[1] reinforced stone factory")
term.setCursorPos(1,4)
local input = read()
if input == "1" then
shell.run("factory1")
end
end
end
This code is located on a floppy (cd disk > edit startup)
the factory1 program is also located on the floppy.
So, what code should I use to run factory1 ?
Thanks for reading this! Advice is welcome!
So, what im trying to do is diffecult to explain so posting the code will help me with that. Everything works fine except the reference shell.run("factory1")
Well here the code:
os.pullEvent = os.pullEventRaw
local loop = true
while loop == true do
term.clear()
term.setCursorPos(1,1)
print("password?")
local input = read()
if input == "example" then
term.setCursorPos(1,1)
print("factory mainframe access granted.")
print("executable programs:")
print("[1] reinforced stone factory")
term.setCursorPos(1,4)
local input = read()
if input == "1" then
shell.run("factory1")
end
end
end
This code is located on a floppy (cd disk > edit startup)
the factory1 program is also located on the floppy.
So, what code should I use to run factory1 ?
Thanks for reading this! Advice is welcome!