mastersec
Description
My Computercraft program collection
Installation
Copy one of these commands into your ComputerCraft terminal:
wget:
wget https://raw.githubusercontent.com/Vexatos/ComputerCraft-Programs/master/Other/MattMc/Security/scanManual/mastersec.lua mastersecArchive:
wget https://cc.shobie.xyz/cc/get/gh-Vexatos-ComputerCraft-Programs-other-mattmc-security-scanmanual-mastersec mastersec
Quick Install:
wget https://cc.shobie.xyz/cc/get/gh-Vexatos-ComputerCraft-Programs-other-mattmc-security-scanmanual-mastersec mastersec
Usage
Run: mastersec
Tags
Source
View Original SourceCode Preview
local sec = {}
local reply
rednet.open("left")
function fillSec()
sec["direwolf20"] = 3
sec["Soaryn"] = 3
sec["Rorax"] = 2
sec["cpw11"] = 2
end
fillSec()
while true do
local id, msg, dist = rednet.receive()
if sec[msg] == nil then
reply = 1
else
reply = sec[msg]
end
rednet.send(id, reply)
end