Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Weather Clear v1.0 by yerathel
- -- http://interageek.fr/
- -- Copyright © 2015
- -- All Right Reserved
- local args = {...}
- if not commands then
- print("Ce programme est pour un commande computer seulement!")
- return
- end
- if args[1] == "?" or args[1] == "/?" or args[1] == "-?" or args[1] == "help" then
- print("Usage:")
- print(fs.getName(shell.getRunningProgram()).." [ticksToWait] [programToRun]")
- return
- end
- local ticksToWait = tonumber(args[1]) or 999999
- local prog = args[2] or "rom/programs/shell"
- print("Weather Clear daemon attente "..ticksToWait.." pour chaque commande")
- local function main()
- while true do
- commands.exec("/weather clear 999999")
- sleep(ticksToWait/20)
- end
- end
- parallel.waitForAny(function() shell.run(prog) end, main)
- print("Daemon Kill")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement