Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Welcome to Bobby's ContinualPing program!")
- print("preparing for scan")
- print("please enter a radius for the scan")
- print("between 100 and 999")
- r=io.read()
- print("would you like to use a monitor? (y/n)")
- x=io.read()
- if x=="y" then
- print("which side?")
- m=io.read()
- w=peripheral.wrap(m)
- while true do
- print("pinging with a radius of")
- print(r)
- print("meters.")
- w.clear()
- w.setCursorPos(1,1)
- shell.run("monitor",m,"ping",r)
- sleep(5)
- end
- end
- if x=="n" then
- while true do
- print("pinging with a radius of")
- print(r)
- print("meters.")
- shell.run("ping",r)
- sleep(5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement