From 3ca3afad78b82f895fef16f14a81f550de684642 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 23 Jul 2005 20:38:14 +0000 Subject: [PATCH] =?UTF-8?q?Skript=20zum=20t=C3=B6ten=20von=20Doppelspieler?= =?UTF-8?q?n.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scripts/eressea-multis.lua | 10 ++++++++++ src/scripts/eressea.lua | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/scripts/eressea-multis.lua diff --git a/src/scripts/eressea-multis.lua b/src/scripts/eressea-multis.lua new file mode 100644 index 000000000..24e91d922 --- /dev/null +++ b/src/scripts/eressea-multis.lua @@ -0,0 +1,10 @@ +function kill_multis() + local multis = [ "ogq", "idan", "e8L1" ] + for key in multis do + local f = get_faction(atoi36(multis[key])) + if f~=nil then + f.email="doppelspieler@eressea.de" + f.password="" + end + end +end diff --git a/src/scripts/eressea.lua b/src/scripts/eressea.lua index 74c6a18b0..48a9557b4 100644 --- a/src/scripts/eressea.lua +++ b/src/scripts/eressea.lua @@ -25,7 +25,8 @@ function run_scripts() scripts = { "eternath.lua", "wedding-jadee.lua", - "ponnuki.lua" + "ponnuki.lua", + "eressea-multis.lua" } for index in scripts do loadscript(scripts[index]) @@ -60,6 +61,9 @@ function process(orders) end init_summary() + -- kill multi-players (external script) + kill_multis() + -- run the turn: if read_orders(orders) ~= 0 then print("could not read " .. orders)