Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setCursorPos(1,1)
- -- Check if Modem is On
- if rednet.open("right") == true then
- print("kNet is open already!")
- else
- rednet.open("right")
- print("kNet is Online!")
- end
- term.clear()
- while true do
- term.setCursorPos(1,1)
- print("What Computer are Communicating with?\n")
- print("88: Engine Controller\n90: Factory Controller\n105:Zach Eats Ass Controller")
- local id = tonumber(io.read()) -- Get ID from LIST
- os.sleep(.8)
- term.clear()
- term.setCursorPos(1,1)
- print("You've Chosen Computer ", id, " Give it a Command!")
- local command = tostring(io.read())
- print("Sending Command!")
- rednet.send(id, command)
- local event, param1 = os.pullEvent("rednet_message")
- if param1 == true then
- print("Success!")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment