Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fusion = peripheral.wrap("top")
- Mon_de_l_item = " Yellorium"
- local function r(...) return shell.run(...) end
- local function w(...) return write(...) end
- if not fs.exists("Config") then
- fs.makeDir("Config")
- end
- if not fs.exists("Config/Production") then
- createAcc1 = fs.open("Config/Production", "w")
- createAcc1.write("0")
- createAcc1.close()
- end
- local function post(one)
- http.post(
- "http://zaidal.96.lt/ComputerCraft/scorepost.php",
- "one="..textutils.urlEncode(tostring(one))
- )
- end
- function Compte()
- Element = Fusion.getStackInSlot(3)
- if Element == nil then
- else
- if Element.display_name == "element.U" then
- if Element.qty == 64 then
- heure = fs.open("Config/Production","r")
- Heure = heure.readLine()
- heure.close()
- Heure = Heure + 1
- Production = fs.open("Config/Production","w")
- Production.write(Heure)
- Production.close()
- Yolo = Heure*64
- Nombre = Yolo/16
- print("Stack: "..Heure.." = "..Nombre..Mon_de_l_item)
- post("Stack: "..Heure.." = "..Nombre..Mon_de_l_item)
- sleep(5)
- end
- end
- end
- end
- while true do
- Compte()
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement