I must remember to load the spells, too

This commit is contained in:
Enno Rehling 2005-10-08 21:34:00 +00:00
parent 2cb9b7bdaa
commit 9230a0a074
5 changed files with 14 additions and 1 deletions

View File

@ -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

View File

@ -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"

View File

@ -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"
} }

View File

@ -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"
} }

View File

@ -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"
} }