Advertisement
Alakazard12

iHome OS

Jun 18th, 2013
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.48 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(4,7) ;
  3. print("Killing creepers...") ;
  4. sleep(1) ;
  5. --print("Green penises exlode") ;
  6. term.clear() term.setCursorPos(1,1) ;
  7. print("Loading programs...          >Not logged<") ;
  8. --14 progs total
  9. if fs.exists(".pn1") == true then
  10. pa = fs.open(".pn1", "r") ;
  11. p1 = pa.readLine() ;
  12. else
  13. p1 = "None"
  14. end
  15. --pa.close()
  16. if fs.exists(".pn2") == true then
  17. sleep(0.1)
  18. pb = fs.open(".pn2", "r") ;
  19. p2 = pb.readLine()
  20. else
  21. p2 = "None"
  22. end
  23. sleep(0.1)
  24. if fs.exists(".pn3") == true then
  25. pc = fs.open(".pn3", "r") ;
  26. p3 = pc.readLine()
  27. else
  28. p3 = "None"
  29. sleep(0.1)
  30. end
  31. if fs.exists(".pn4") == true then
  32. pd = fs.open(".pn4", "r") ;
  33. p4 = pd.readLine()
  34. else
  35. p4 = "None"
  36. end
  37. sleep(0.1) ;
  38. if fs.exists(".pn5") == true then
  39. pe = fs.open(".pn5", "r") ;
  40. p5 = pe.readLine()
  41. else
  42. p5 = "None"
  43. end
  44. sleep(0.1) ;
  45. if fs.exists(".pn6") == true then
  46. pf = fs.open(".pn6", "r") ;
  47. p6 = pf.readLine()
  48. else
  49. p6 = "None"
  50. end
  51. sleep(0.1)
  52. if fs.exists(".pn7") == true then
  53. pg = fs.open(".pn7", "r") ;
  54. p7 = pg.readline()
  55. else
  56. p7 = "None"
  57. end
  58. sleep(0.1)
  59. if fs.exists(".pn8") == true then
  60. aa = fs.open(".pn8", "r") ;
  61. p8 = aa.readLine()
  62. else
  63. p8 = "None"
  64. end
  65. sleep(0.1)
  66. if fs.exists(".pn9") == true then
  67. ab = fs.open(".pn9", "r") ;
  68. p9 = ab.readLine()
  69. else
  70. p9 = "None"
  71. end
  72. sleep(0.1)
  73. if fs.exists(".pn10") == true then
  74. ac = fs.open(".pn10", "r")
  75. p10 = ac.readLine()
  76. else
  77. p10 = "None"
  78. end
  79. sleep(0.1)
  80. if fs.exists(".pn11") == true then
  81. ad = fs.open(".pn11")
  82. p11 = ad.readLine()
  83. else
  84. p11 = "None"
  85. end
  86. sleep(0.1)
  87. if fs.exists(".pn12") == true then
  88. ba = fs.open(".pn12")
  89. p12 = ba.readLine()
  90. else
  91. p12 = "None"
  92. end
  93.  
  94. sleep(0.1)
  95. if fs.exists(".pn13") == true then
  96. bb = fs.open(".pn13") ;
  97. p13 = bb.readLine()
  98. else
  99. p13 = "None"
  100. end
  101.  
  102. sleep(0.1)
  103. if fs.exists(".pn14") == true then
  104. bc = fs.open(".pn14") ;
  105. p14 = bc.readLine() ;
  106. else
  107. p14 = "None"
  108. end
  109. sleep(0.1)
  110.  
  111.  
  112. --print("Making everything pretty manly and mancave like...") ;
  113. --sleep(1.4) ;
  114. --print("Making everything manly and mancave like nerdy and making sports equiptment computers...") ;
  115. sleep(1.9) ;
  116. print("Turning on RedNet") ;
  117. rednet.open("top") ;
  118. sleep(0.4) ;
  119. --print("Falling into lava and losing all of the diamonds...") ;
  120. --sleep(0.9) ;
  121. --print("Raging while coming back into the cave and finding a Herobrine Liar made of diamond blocks and taking all the diamonds...") ;
  122. --sleep(2) ;
  123. print("Looking for an account to see if you already set one up...") ;
  124. if fs.exists("adminacc") == true then
  125. sleep(1)
  126. shell.run('logger') ;
  127. else
  128. print("No admin account found! Taking you through the setup process?0�") ;
  129. print("Enter your disired username. Don't worry; you can change it later if you don't like it.") ;
  130. term.write("---> ") ;
  131. input2 = read()
  132. aac = fs.open("uname", "w") ;
  133. aac.writeLine(input2)
  134. aac.close()
  135. print("Now you just need a password. Don't worry; you can change this later, too!") ;
  136. input = read()
  137. apc = fs.open("password", "w") ;
  138. apc.writeLine(input)
  139. apc.close()
  140. print("Congratulations, you're ready to use iHome OS! Without further ado!") ;
  141. lrs = fs.open("adminacc", "w") ;
  142. lrs.writeLine("AdminAccIsOnThisComputer!") ;
  143. lrs.close()
  144. onAdmin = 1
  145. sleep(1.2)
  146. term.clear() term.setCursorPos(1,1)
  147. shell.run('bootos') ;
  148. --ghff = fs.open("uname", "r") ;
  149. --ghff.readLine(name)
  150. --Credits:
  151. --Hithere__(Minecraft user name)
  152. --ComputerCraft wiki
  153.  
  154. end
  155. --each end other than the first one is for the varu
  156. --ble checking at the start(if fs.exists("fn") ==
  157. --true then
  158. --commands:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement