Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setBackgroundColor(colors.gray)
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.blue)
- print " Setup "--19
- term.setBackgroundColor(colors.lightBlue)
- print "-----------------"
- print "User: " --3 user
- print "-----------------"
- print "Pass: " --5 pass
- print "-----------------"
- term.setCursorPos(6,3)
- write " "
- newuse = read()
- term.setCursorPos(6,5)
- write " "
- newpass = read()
- if fs.exists("/."..newuse) then
- term.setCursorPos(1,15)
- term.setBackgroundColor(colors.red)
- print "Error Account Name Not Available!!"
- event = os.pullEvent()
- shell.run("start")
- else
- file = fs.open("/."..newuse,"w")
- file.writeLine(newpass)
- file.writeLine("0")
- file.close()
- sleep(2)
- print "Account Created!!"
- event = os.pullEvent()
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement