forked from github/server
I must remember to load the spells, too
This commit is contained in:
parent
2cb9b7bdaa
commit
9230a0a074
|
@ -1,3 +1,11 @@
|
||||||
|
function loadscript(name)
|
||||||
|
local script = scriptpath .. "/" .. name
|
||||||
|
print("- loading " .. script)
|
||||||
|
if pcall(dofile, script)==0 then
|
||||||
|
print("Could not load " .. script)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function write_emails()
|
function write_emails()
|
||||||
local locales = { "de", "en" }
|
local locales = { "de", "en" }
|
||||||
local files = {}
|
local files = {}
|
||||||
|
@ -63,6 +71,7 @@ end
|
||||||
if orderfile==nil then
|
if orderfile==nil then
|
||||||
print "you must specify an orderfile"
|
print "you must specify an orderfile"
|
||||||
else
|
else
|
||||||
|
loadscript("spells.lua")
|
||||||
process(orderfile)
|
process(orderfile)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@ end
|
||||||
|
|
||||||
function run_scripts()
|
function run_scripts()
|
||||||
scripts = {
|
scripts = {
|
||||||
|
"spells.lua",
|
||||||
"eternath.lua",
|
"eternath.lua",
|
||||||
"wedding-jadee.lua",
|
"wedding-jadee.lua",
|
||||||
"ponnuki.lua"
|
"ponnuki.lua"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
function run_scripts()
|
function run_scripts()
|
||||||
scripts = {
|
scripts = {
|
||||||
|
"spells.lua",
|
||||||
"hse-portals.lua",
|
"hse-portals.lua",
|
||||||
"hse-stats.lua"
|
"hse-stats.lua"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
function run_scripts()
|
function run_scripts()
|
||||||
scripts = {
|
scripts = {
|
||||||
|
"spells.lua",
|
||||||
"hse-portals.lua",
|
"hse-portals.lua",
|
||||||
"hse-stats.lua"
|
"hse-stats.lua"
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,6 +41,7 @@ end
|
||||||
print("- Running wdw-run.lua")
|
print("- Running wdw-run.lua")
|
||||||
|
|
||||||
scripts = {
|
scripts = {
|
||||||
|
"spells.lua",
|
||||||
"wdw-sphinx.lua",
|
"wdw-sphinx.lua",
|
||||||
"wdw-standings.lua"
|
"wdw-standings.lua"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue