Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sg = peripheral.find("stargate")
- while true do
- print("Press Key for desired program")
- print("[D] Dial")
- print("[S] Disconnect")
- print("Note: Gate must be disconnected before redialling")
- local event, character = os.pullEvent("char")
- if character == "d" then
- --Dial
- term.clear()
- term.setCursorPos(1,1)
- print("Enter Gate Address")
- address = read()
- sg.dial(address)
- elseif character == "s" then
- sg.disconnect()
- print("Gate Disconnected")
- end
- term.clear()
- term.setCursorPos(1,1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement