From 9230a0a074eecd7f7b9a7919c6b716df3926a51c Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 8 Oct 2005 21:34:00 +0000 Subject: [PATCH] I must remember to load the spells, too --- src/scripts/default.lua | 9 +++++++++ src/scripts/eressea.lua | 1 + src/scripts/hse3-run.lua | 1 + src/scripts/hse4-run.lua | 1 + src/scripts/wdw-run.lua | 3 ++- 5 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/scripts/default.lua b/src/scripts/default.lua index d1276af5b..efce2ad8e 100644 --- a/src/scripts/default.lua +++ b/src/scripts/default.lua @@ -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() local locales = { "de", "en" } local files = {} @@ -63,6 +71,7 @@ end if orderfile==nil then print "you must specify an orderfile" else + loadscript("spells.lua") process(orderfile) end diff --git a/src/scripts/eressea.lua b/src/scripts/eressea.lua index 91c654fe0..899150ced 100644 --- a/src/scripts/eressea.lua +++ b/src/scripts/eressea.lua @@ -23,6 +23,7 @@ end function run_scripts() scripts = { + "spells.lua", "eternath.lua", "wedding-jadee.lua", "ponnuki.lua" diff --git a/src/scripts/hse3-run.lua b/src/scripts/hse3-run.lua index b0a398a76..16017aeb5 100644 --- a/src/scripts/hse3-run.lua +++ b/src/scripts/hse3-run.lua @@ -1,5 +1,6 @@ function run_scripts() scripts = { + "spells.lua", "hse-portals.lua", "hse-stats.lua" } diff --git a/src/scripts/hse4-run.lua b/src/scripts/hse4-run.lua index 5e38b9ccc..b8039b8c3 100644 --- a/src/scripts/hse4-run.lua +++ b/src/scripts/hse4-run.lua @@ -1,5 +1,6 @@ function run_scripts() scripts = { + "spells.lua", "hse-portals.lua", "hse-stats.lua" } diff --git a/src/scripts/wdw-run.lua b/src/scripts/wdw-run.lua index 94dd6265e..a8f0bb87c 100644 --- a/src/scripts/wdw-run.lua +++ b/src/scripts/wdw-run.lua @@ -40,7 +40,8 @@ end print("- Running wdw-run.lua") -scripts = { +scripts = { + "spells.lua", "wdw-sphinx.lua", "wdw-standings.lua" }