Posted 06 December 2012 - 04:05 PM
I made a simplified guestbook for my "factory" in minecraft. Please bare in mind that this is for ADVANCED Computers.
Be sure to set this up as a "startup"
I'm still learning how to incorporate a os.pullEventRaw.
NOTE: To go into maintenance mode use "maintain" as your name
NOTE:For people that need help try:
HELP! How do I setup a os.pullEventRaw() for this?!?
Be sure to set this up as a "startup"
I'm still learning how to incorporate a os.pullEventRaw.
NOTE: To go into maintenance mode use "maintain" as your name
NOTE:For people that need help try:
pastebin get S5qci2qZ startup
term.clear()
term.setCursorPos(1,1)
term.setTextColor(256) --change this for customized colors or remove for non-advanced cpu's
textutils.slowPrint("GuestBook")
textutils.slowPrint("Please Type Your Name Below:")
local time = textutils.formatTime(os.clock()) --wasn't very accurate for me
local name = read()
if name == "maintain" then --change "maintain" into any passcode you want
print("Maintainence Mode Activated")
else
term.setCursorPos(1,1)
term.clear()
print("Welcome "..name.." !")
g = fs.open("guestbook", "a")
g.writeLine(" "..name.." logged at "..time.." ") --VERY simple logging, to read book enter maintenance mode and type "edit guestbook"
sleep(5)
os.reboot()
end
HELP! How do I setup a os.pullEventRaw() for this?!?