Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m=peripheral.wrap("top")--sets the monitor to the top side
- gate=peripheral.wrap("stargate_1")-- wrap the gate connected by wired modem
- local net="right" -- set the side of the rednet cable
- term.clear()
- term.setCursorPos(1,1)
- print("Super Gate Dialer v0.9")
- print("made by Landstryder")
- m.clear()
- m.setCursorPos(1,1)
- m.write("Gate Dialer Online")
- --Put your gate addresses in below
- local ads={"urnonba","nqqymaa","iiaanga","nalzmha","qmjcnfa","amnumja","ocpbnka","lamnmpa","hiaanqa","dixfnba"}
- --
- local c={1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768}
- local cc={"White","Orange","Magenta","Light Blue","Yellow","Lime","Pink","Gray","Light Gray","Cyan","Purple","Blue","Brown","Green","Red","Black"}
- m.setCursorPos(1,2)
- m.write("current address library:")
- function listgate()
- for it=1,#ads do
- m.setCursorPos(1,it+2)
- m.write(ads[it].." on channel "..cc[it])
- end
- end
- listgate()
- while true do
- if rs.getBundledInput(net)>0 then
- for it=1,#ads do
- if rs.testBundledInput(net,c[it]) then
- gate.connect(ads[it])
- m.clear()
- m.setCursorPos(1,1)
- m.write("connecting to address: "..ads[it])
- sleep(45)
- listgate()
- end
- end
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement