Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Ticketer v1.1 by DeBrates
- --Intended for use with: Mainline(Railcraft Station Control)by DeBrates in ComputerCraft
- --Change senderID to the ID of the sender computer
- --Rednet Message should be exact intended Destination/Ticket Name.
- rednet.open("top")
- ticket = peripheral.wrap("back")
- --ID of Main Line computer
- senderID = 3
- while true do
- local event, p1, p2 = os.pullEvent()
- if event == "rednet_message" and p1 == senderID then
- ticket.createTicket(p2, 1)
- print("Ticket created: "..p2)
- end
- end
Add Comment
Please, Sign In to add comment