Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- rednet.open("left")
- rednet.open("right")
- rednet.open("back")
- function credits()
- term.clear()
- term.setCursorPos(1,1)
- print("---ProVirus---")
- print("ProVirus Made and coded by ComputerCraftFan11")
- end
- print("---ProVirus---")
- print("1. Check Computers")
- print("2. Credits")
- print("3. Quit")
- while true do
- local e,key = os.pullEvent( "key" )
- if key == 2 then
- break
- elseif key == 3 then
- credits()
- elseif key == 4 then
- os.reboot()
- end
- end
- term.clear()
- term.setCursorPos(1,1)
- print("---ProVirus---")
- print("Waiting for a computer to respond.")
- print("Make sure you intalled the virus correctly.")
- print("Press Ctrl+T to cancel.")
- id, message = rednet.receive()
- rednet.send(id, "Received")
- term.clear()
- term.setCursorPos(1,1)
- print("---ProVirus---")
- print("Computer " ..id.. " has joined!")
- print("Would you like to hack that computer?")
- print("1. Yes")
- print("2. No")
- while true do
- local e,key = os.pullEvent( "key" )
- if key == 2 then
- break
- elseif key == 3 then
- os.reboot()
- end
- end
- function menu()
- term.clear()
- term.setCursorPos(1,1)
- print("---ProVirus---")
- print("Connected to " ..id)
- print("Commands: | Fun: | Other: |")
- print("1.Spam |2.FakeOff|3. |")
- print("4.Clear |5. |6. |")
- print("7.Reboot |8. |9. |")
- print("10. |11. |12. |")
- end
- menu()
- while true do
- local e,key = os.pullEvent( "key" )
- if key == 2 then
- rednet.send(id, "Spam")
- menu()
- end
- if key == 5 then
- rednet.send(id, "Clear")
- menu()
- end
- if key == 8 then
- rednet.send(id, "Boot")
- menu()
- end
- if key == 3 then
- rednet.send(id, "Off")
- menu()
- end
- end
- And install this on theirs:
- term.clear()
- term.setCursorPos(1,1)
- rednet.open("left")
- rednet.open("right")
- rednet.open("back")
- local derr = 1;
- print("CraftOS 1.3")
- print("> ")
- while true do
- rednet.send(derr, "Hello")
- id, message = rednet.receive()
- if message == "Spam" then
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- print("Error!")
- end
- if message == "Clear" then
- term.clear()
- term.setCursorPos(1,1)
- end
- if message == "Boot" then
- term.clear()
- term.setCursorPos(1,1)
- print("CraftOS 1.3")
- print("> ")
- end
- if message == "Off" then
- print("Goodbye.")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- end
- end
Add Comment
Please, Sign In to add comment