SHARE
TWEET
reaktor
a guest
Jan 29th, 2018
43
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- function getInfo(cmd)
- rednet.open("back")
- rednet.send(28, cmd)
- id, msg, prot = rednet.receive(2)
- if id == 28 then
- return msg
- else
- return "ERROR"
- end
- end
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("Reaktor Info")
- print()
- print("Staus: "..getInfo("ACT"))
- print("Kern-Tmp: "..getInfo("FTMP").."C")
- print("Huelle-Tmp: "..getInfo("CTMP").."C")
- print("Energie: "..getInfo("EPLT").."RF")
- print("Uran: "..getInfo("FA").."/"..getInfo("MAXFA").."mB")
- print("Abfall: "..getInfo("WA"))
- --print("Kuehlung: "..getInfo("COOL"))
- --print("Wasser: "..getInfo("COOLA").."/"..getInfo("MAXCOOL"))
- print("Reaktion: "..getInfo("FREAC").."%")
- print("Staebe: "..getInfo("RODS"))
- print("Staebe Level: "..getInfo("RODL").."%")
- sleep(5)
- -- term.clear()
- -- term.setCursorPos(1,1)
- -- print("Staebe Info")
- -- local count = 0
- -- local rods = getInfo("RODS")
- -- while count < rods do
- -- rednet.open("back")
- -- rednet.send(28, "RODL", count)
- -- id, value, prot = rednet.receive(2)
- -- if id ~= 28 then
- -- value = "ERROR"
- -- end
- -- print(count..": "..value.."%")
- -- rednet.close()
- -- count = count + 1
- -- end
- -- sleep(5)
- end
RAW Paste Data

