Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TankID = "tk01"
- TankCT = "Oil"
- TankCP = 6400
- TankSP = 4
- TankCR = -1
- HQID = 2
- rednet.open("top")
- while (true) do
- local senderId, msg, protocol = rednet.receive()
- if (msg == "tk01") then
- if (rs.testBundledInput("back", colors.red) == true) then
- TankCR = 0
- elseif (rs.testBundledInput("back", colors.orange) == true) then
- TankCR = 4
- elseif (rs.testBundledInput("back", colors.yellow) == true) then
- TankCR = 3
- elseif (rs.testBundledInput("back", colors.green) == true) then
- TankCR = 2
- elseif (rs.testBundledInput("back", colors.blue) == true) then
- TankCR = 1
- end
- rednet.send(HQID, TankCR, "tanks")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement