What I need to do is take this code I have and make a menu for it to display places to go and when a numbers is selected a tcket is created. The code below is what I wanted to use. I just don't know what the rednet is for. Can some one help with a menu for this code.
local TM = peripheral.wrap("top")
rednet.open("bottom")
function sea()
local booleanInfo = TM.createTicket("South/SeaStation")
end
function lake()
local booleanInfo = TM.createTicket("North/Lake")
end
while true do
eventType, sender, message, dist = os.pullEvent("rednet_message")
if message == "sea" then
sea()
elseif message == "lake" then
lake()
else
print("invalid message")
end
end