Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local c = require("component")
- local term = require("term")
- local component = require("component")
- local event = require("event")
- local serialization = require("serialization")
- local gpu = component.gpu
- local tun = component.tunnel
- local w, h = gpu.getResolution()
- gpu.fill(1, 1, w, h, " ")
- local asd = 1
- local os = require("os")
- local address
- repeat
- term.clear(true)
- print("Teleportation computer Alpha")
- print("")
- print("Teleport? y/n")
- answer = io.read()
- print()
- if answer == "y" then
- print("Where are you now? Type in number")
- print("1. Home Base")
- print("2. Alpha Site")
- num = io.read()
- print()
- if num == "1" then
- print("Teleporting, waiting for gate activation")
- tun.send("AlphaT")
- elseif num == "2" then
- print("Teleporting, waiting for gate activation")
- tun.send("BaseT")
- elseif num ~= "1" or num ~= "2" then
- print("ERROR: Wrong number typed!")
- else
- print("UNKNOWN ERROR")
- end
- print()
- os.sleep(5)
- elseif answer == "n" then
- print("Aborted")
- os.sleep(5)
- end
- until asd == 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement