Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- --table : Name, type, state, name
- local outils = {
- Printer = {"printer"},
- NoteB = {"note"},
- Modem = {"modem"},
- Sorter = {"interactiveSorter"},
- Computer = {"computer"}} -- tout les periphs sur le réseau, de base en false
- for num,name in pairs(peripheral.getNames()) do
- for num = 1, #outils do
- if outils[num][1] == peripheral.getType(name) then
- term.setCursorPos(1,7+num)
- term.write(tostring[outils[num]).." : found on network")
- outils[num] = peripheral.wrap(name)
- else
- term.setCursorPos(1,7+num)
- term.write(tostring[outils[num]).." : not found on network")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment