Posted 28 June 2015 - 10:59 AM
Can someone help me with that ( getting a whitelist list from a other computer using a Wireless Modem.)
I'm doing this at Tekkit Lite, using CCsensors
My code goes as followed
The thing I want to do;
If I change the whitelist from the main computer, the whitelist on the other computers with the actual Player Detector will change automatically. Is this possible or not?
-Matthijs
I'm doing this at Tekkit Lite, using CCsensors
My code goes as followed
--# Player Detector Front Door Created by Matthijs
--# Change the names to get acces to the whitelist
os.loadAPI("ocs/apis/sensor")
os.pullEvent = os.pullEventRaw
local prox = sensor.wrap("bottom")
local whitelist = {
["mattie078"] = true,
["stormchaser6"] = true,
["ClankS"] = true,
["Zeita"] = true,
["KingArthur524"] = true,
["Pasta_Blizzard"] = true,
["Shadow_Demon_666"] = true,
["LaFesta1749"] = true,
["Orangerageous"] = true,
["KaylaXtreme"] = true,
["yu1327"] = true,
["MsSunshine"] = true,
["WhiteDuck"] = true,
["Chugslava"] = true,
["WhyHiThere"] = true
--# etc
}
while true do
local targets = prox.getTargets()
for name, basicDetails in pairs(targets) do
if basicDetails.Name == "Player" then
print(name)
if whitelist[name] then
rs.setOutput("top", true)
sleep(2)
rs.setOutput("top", false)
else
rs.setOutput("top", false)
sleep(0.5)
end
end
end
end
The thing I want to do;
If I change the whitelist from the main computer, the whitelist on the other computers with the actual Player Detector will change automatically. Is this possible or not?
-Matthijs