Advertisement
titanknox

Stargate Computercraft

Jun 9th, 2015
920
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.09 KB | None | 0 0
  1. --RUN WITH ' pastebin run ykTU74PF '
  2. --FOR USE WITH GREG's SGCRAFT ALSO KNOWN AS THE STARGATE MOD
  3. --TO CUSTOMIZE THIS FOR YOURSELF, YOU WILL NEED BASIC UNDERSTANDING OF LUA
  4. --THAT IS ALL. HAPPY PORTALLING
  5.  
  6. name = os.getComputerLabel()
  7. while name == nil do
  8.     term.write("Enter computer label: ")
  9.     os.setComputerLabel(read())
  10.     name = os.getComputerLabel()
  11. end
  12. kind = string.sub(name,1,4)
  13. if kind == "cont" then
  14.   shell.run("pastebin get 3iznHe8T startup") -for original without comments use wUqcnmsi
  15.   shell.run("pastebin get be4XiawB button")
  16.   print("Make sure you have a 4x3 monitor to the right, and a wireless modem to the left!")
  17.   print("Rebooting in 7 seconds.")
  18.   sleep(7)
  19. elseif kind == "gate" then
  20.   shell.run("pastebin get PQvDitee startup")
  21.   print("Make sure you have an entire stargate setup to the right, and a wireless modem to the left!")
  22.   print("Rebooting in 7 seconds.")
  23.   sleep(7)
  24. else
  25.   print("Incorrect setup, if you are a controller make sure you label starts with 'control' and if you are a gate operator that your label starts with 'gate'.")
  26. end
  27. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement