Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function stuff()
- sleep(3)
- shell.run("OverlordAPI/web.lua")
- Overlord.Web.SetAPIKey("mc_inf_sys")
- if (Overlord.Web.SetName("mc_inf_miner")) then
- print("Connected to Overlord!")
- end
- local vars = Overlord.Web.GetVars({"z"})
- while (not vars) do
- print("Pauzing, cannot connect to Overlod API")
- sleep(10)
- vars = Overlord.Web.GetVars({"z"})
- end
- Overlord.Web.SetVars({z = vars["z"] - 1})
- while(true) do
- shell.run("rs pulse bottom")
- sleep(1)
- end
- end
- local ret = pcall(stuff)
- if (not ret) then
- shell.run("reboot")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement