Guest User

Untitled

a guest
Oct 5th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.55 KB | None | 0 0
  1. x = "nothing"
  2. input = "nothing"
  3. User = "Default User"
  4. password = "password"
  5.  
  6. function f1() -- What is tekkit?
  7. input = "adf"
  8. while input ~= "exit" do
  9. textutils.slowPrint "Tekkit is a collection of some of the best Mods around, IC2, EE, Redpower, the list goes on." -- Whatever you want to explain it
  10. textutils.slowPrint "Would you like to learn more about what you can do in Tekkit? Yes | No"
  11. input = read()
  12. if input == string.lower("yes") then
  13. textutils.slowPrint "You can build Quarry's, Make Town's, mine with lasers, fly with jet packs, drill for oil, use the sun for energy, the possibilities are endless!"
  14. sleep(2)
  15. else
  16. break
  17. end
  18. end
  19.  
  20. function f2() -- Not Enough Items isn't showing
  21. input = "adf"
  22. while input ~= "no" do -- while input doesn't equal "no"
  23. textutils.slowPrint "Step 1. Open up your Inventory Screen (usually 'e')"
  24. write "Enter to continue.."
  25. input = io.read() --Waits for input, code can't continue till it gets SOME input
  26. textutils.slowPrint "Step 2. Press the 'o' button."
  27. write "Enter to continue.."
  28. input = io.read()
  29. textutils.slowPrint "You should now see NEI."
  30. sleep(2)
  31. textutils.slowPrint "Furthermore, you can press 'r' while your mouse is over an item to get the recipe."
  32. write "Enter to continue.."
  33. input = io.read()
  34. textutils.slowPrint "Go over this again?"
  35. input = io.read()
  36. if input == string.lower("yes") then
  37. shell.run("clear")
  38. else
  39. break -- stop the loop thus stopping the Function
  40. end
  41.  
  42. end
  43.  
  44. function f3() --How to get started
  45. input = "adf"
  46. while input ~= "back" do
  47. textutils.slowPrint "The first thing you will need is a base, just how you would start out in Vanilla Minceraft."
  48. write "Enter to continue.."
  49. input = io.read()
  50. textutils.slowPrint "It is suggested you head as far away from spawn as possible, to help prevent griefing."
  51. input = io.read()
  52. textutils.slowPrint "Once you have your base set up, the next thing you will need is Rubber."
  53. input = io.read()
  54. textutils.slowPrint "Where do you get Rubber? From Rubber Tree's! They are especially common in Swamps, with the 2-3 leaves sticking straight out."
  55. input = io.read()
  56. textutils.slowPrint "Just chop them down and get their saplings, you will use them later for a farm."
  57. sleep(2)
  58. write "Do you wish to continue this tutorial? Yes | No "
  59. input = io.read()
  60. if input == string.lower("yes") then
  61. textutils.slowPrint "The first thing you will need to do is set up your Rubber Tree Farm. Just plant the saplings like you would farm any other tree."
  62. input = io.read()
  63. textutils.slowPrint "You will notice the Saplings have what appears to be orange squares on them, you can use a 'tree tap' to obtain rubber from said orange squares."
  64. input = io.read()
  65. textutils.slowPrint "From there, you will get resin. To make rubber from resin, just smelt it."
  66. input = io.read()
  67. textutils.slowPrint "The next thing you need is Copper bars. 3 of them and 6 rubber make Copper Wire, vital for all IC2 machinery."
  68. write "Do you wish to continue? Yes | No: "
  69. input = io.read()
  70. if input == string.lower("yes") then
  71. textutils.slowPrint "The next thing you will want to do is make a Generator. You can look up the recipe by searching 'generator' and pressing 'r' while your mouse is located over it."
  72. input = io.read()
  73. textutils.slowPrint "If the RE Battery recipe isn't showing, search 're' and try finding the recipe on one of those."
  74. input = io.read()
  75. textutils.slowPrint "From here, you should be able to ask for help from other Players, this is only a VERY basic tutorial on what to do when just starting."
  76. sleep(2)
  77. textutils.slowPrint "I hope you enjoyed it."
  78. sleep(4)
  79. else
  80. break
  81. else
  82. break
  83. end
  84. end
  85. end
  86. end
  87.  
  88. function f4() -- How to make money
  89. input = "adf"
  90. while input ~= "exit" do
  91. textutils.slowPrint "This is an easy question.. Just sell stuff at the signs." -- Whatever you want to explain it
  92. input = io.read()
  93. textutils.slowPrint "That is the only way to currently make money."
  94. write "Enter to go back.."
  95. input = io.read()
  96. end
  97.  
  98. function f5() -- What do machines do?
  99. input = "adf"
  100. textutils.slowPrint "LOL I JUST REALIZED NOTHING IS HERE" -- Whatever you want to explain it
  101. end
  102.  
  103. function f6() -- Quarry's dont work in Towny
  104. input = "adf"
  105. while input ~= "exit" do
  106. textutils.slowPrint "Quarry's currently don't work in Towny." -- Whatever you want to explain it
  107. input = io.read()
  108. textutils.slowtextutils.slowPrint "Towny doesnt let them work properly, there is nothing we can do to assist you in this problem. We are sorry for the nonviolence."
  109. end
  110. end
  111.  
  112. function f7() -- What is EE?
  113. input = "adf"
  114. textutils.slowPrint "EE is a Mod, short for Equivalent Exchange" -- Whatever you want to explain it
  115. input = io.read()
  116. textutils.slowPrint "It runs off of EMC, Energy Matter Conversion. Every item in game has an EMC Value."
  117. input = io.read()
  118. textutils.slowPrint "You can use certain items/blocks to convert items with equidistant EMC value, i.e. Stone for Cobblestone."
  119. input = io.read()
  120. end
  121.  
  122. function f8() -- What are the rules of the Server
  123. input = "adf"
  124. textutils.slowPrint "1. Insert Rule 1 here _______" -- TREM, WRITE WHATEVER YOU WANT
  125. textutils.slowPrint "2. Insert Rule 2 here _______"
  126. textutils.slowPrint "3. Insert Rule 3 here _______"
  127. --etc  
  128. end
  129.  
  130. function fcredits()
  131. input = "adf"
  132. textutils.slowPrint[[
  133. Art Created By
  134.  ____         ___                                  
  135. /\  _`\   __ /\_ \                                  
  136. \ \,\L\_\/\_\\//\ \      __    ___     ___     __  
  137.  \/_\__ \\/\ \ \ \ \   /'__`\/' _ `\  /'___\ /'__`\
  138.    /\ \L\ \ \ \ \_\ \_/\  __//\ \/\ \/\ \__//\  __/
  139.    \ `\____\ \_\/\____\ \____\ \_\ \_\ \____\ \____\
  140.     \/_____/\/_/\/____/\/____/\/_/\/_/\/____/\/____/
  141.                                                    
  142.                                                    
  143. Code Created By
  144.  ____                                ________    __    __ __      
  145. /\  _`\                             /\_____  \ /'_ `\ /\ \\ \    
  146. \ \ \L\ \  __  __     __      ___   \/___//'/'/\ \L\ \\ \ \\ \    
  147. \ \ ,  / /\ \/\ \  /'__`\  /' _ `\     /' /' \/_> _ <_\ \ \\ \_  
  148.  \ \ \\ \\ \ \_\ \/\ \L\.\_/\ \/\ \  /' /'     /\ \L\ \\ \__ ,__\
  149.   \ \_\ \_\/`____ \ \__/.\_\ \_\ \_\/\_/       \ \____/ \/_/\_\_/
  150.    \/_/\/ /`/___/> \/__/\/_/\/_/\/_/\//         \/___/     \/_/  
  151.               /\___/                                            
  152.               \/__/                                              
  153.  
  154. OS
  155. ____         __             ____                                      
  156. /\  _`\    __/\ \__         /\  _`\                                    
  157. \ \ \/\_\ /\_\ \ ,_\  __  __\ \,\L\_\    ___     __     _____      __  
  158. \ \ \/_/_\/\ \ \ \/ /\ \/\ \\/_\__ \   /'___\ /'__`\  /\ '__`\  /'__`\
  159.  \ \ \L\ \\ \ \ \ \_\ \ \_\ \ /\ \L\ \/\ \__//\ \L\.\_\ \ \L\ \/\  __/
  160.   \ \____/ \ \_\ \__\\/`____ \\ `\____\ \____\ \__/.\_\\ \ ,__/\ \____\
  161.    \/___/   \/_/\/__/ `/___/> \\/_____/\/____/\/__/\/_/ \ \ \/  \/____/
  162.                          /\___/                          \ \_\        
  163.                          \/__/                            \/_/        
  164. ]]
  165. input = io.read()
  166. end
  167.  
  168. while x ~= exit do
  169. shell.run("clear")
  170.  
  171. textutils.slowPrint[[
  172. .----..-..-----..-.  .-..----..----.  .--.  .-.-. .----.     .---.  .----.
  173. | }`-'{ |`-' '-' \ \/ /{ {__-`| }`-' / {} \ | } }}} |__}    / {-. \{ {__-`
  174. | },-.| }  } {    `-\ }.-._} }| },-./  /\  \| |-' } '__}    \ '-} /.-._} }
  175. `----'`-'  `-'      `-'`----' `----'`-'  `-'`-'   `----'     `---' `----'                                                                          
  176. ]]
  177. textutils.slowPrint ("User: "..User)
  178. textutils.slowPrint ""
  179. textutils.slowPrint "Main Menu:"
  180. textutils.slowPrint "1. What is Tekkit?"
  181. textutils.slowPrint "2. Not Enough Items ins't showing!!"
  182. textutils.slowPrint "3. How to get started.."
  183. textutils.slowPrint "4. How to make money"
  184. textutils.slowPrint "5. What do machines do?"
  185. textutils.slowPrint "6. Quarry's don't work in Towny!?"
  186. textutils.slowPrint "7. What is EE? (Or Equivalent Exchange)"
  187. textutils.slowPrint "8. What are the rules of this Server?"
  188. textutils.slowPrint ""
  189. textutils.slowPrint "Credits: All those who helped make this OS!"
  190. textutils.slowPrint "End Menu"
  191.  
  192. write "Choice: "
  193. input = io.read()
  194.  
  195. textutils.slowPrint ""
  196.  
  197. if input == 1 then
  198. f1()
  199. elseif input == 2 then
  200. f2()
  201. elseif input == 3 then
  202. f3()
  203. elseif input == 4 then
  204. f4()
  205. elseif input == 5 then
  206. f5()
  207. elseif input == 6 then
  208. f6()
  209. elseif input == 7 then
  210. f7()
  211. elseif input == 8 then
  212. f8()
  213. elseif input == string.lower("credits") then
  214. fcredits()
  215. else
  216. textutils.slowPrint "Did not understand."
  217. sleep(2)
  218. end
  219.  
  220.  
  221. end
  222.  
  223. textutils.slowPrint "Exiting OS Software.."
  224.  
  225. sleep(3)
  226.  
  227. shell.run("clear")
Add Comment
Please, Sign In to add comment