Guest User

startup

a guest
Aug 15th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.20 KB | None | 0 0
  1. local pullEvent = os.pullEvent
  2. os.pullEvent = os.pullEventRaw
  3. local q1
  4. local q2
  5. local q3
  6. local q4
  7. local lab
  8. if fs.exists("disk/app") then write("Remove current disk throw away and reboot (hold control R to reboot)")
  9. os.reboot()
  10.  
  11. else
  12.         print("what is your in-game name?")
  13.         lab = read()
  14.         term.clear()
  15.        
  16.         print("Why are you applying to become staff of Oceanic Cove:")
  17.         q1 = read()
  18.         term.clear()
  19.        
  20.         print("How old are you?:")
  21.         q2 = read()
  22.         term.clear()
  23.        
  24.         print("do you have or can you get ts3(teamspeak)")
  25.         q3 = read()
  26.         term.clear()
  27.  
  28.         print("What do you think makes you more Valuable then other Applicants?:")
  29.         q4 = read()
  30.         term.clear()
  31. end
  32. test = disk.hasData("left")
  33. if test == false then print("insert drive and reboot (hold control and R to reboot)")
  34. end
  35. while test == false do os.sleep(1)
  36. end
  37. local f = fs.open("disk/app", "w")
  38. f.writeLine(q1)
  39. f.writeLine(q2)
  40. f.writeLine(q3)
  41. f.writeLine(q4)
  42. f.close()
  43. disk.setLabel("left", (lab))
  44. print("Remove disk and throw under the computer thanks for your application")
  45. sleep(15)
  46. os.pullEvent = pullEvent
  47. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment