Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sg = peripheral.wrap("StargateBase_0")
- while true do
- print("Please enter a gate address: ")
- address = read()
- address = http.get("http://intranet.pdglobal.net/?sid=dial&name=" .. address)
- address = address.readAll()
- if address == " 0" then
- print("No such Gate found. Try again.")
- sleep(5)
- else
- address = string.sub(address, 2)
- print(address .. " -> Dialing, Please Wait...")
- sg.dial(address)
- sleep(30)
- sg.disconnect()
- end
- shell.run("clear")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement