summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalserver/installconfigs.sh4
-rw-r--r--localserver/npc/motd-debug-text.txt4
-rw-r--r--localserver/npc/motd-text.txt4
-rwxr-xr-xlocalserver/updateconfigs.sh5
4 files changed, 16 insertions, 1 deletions
diff --git a/localserver/installconfigs.sh b/localserver/installconfigs.sh
index 3f403a4..5d68a03 100755
--- a/localserver/installconfigs.sh
+++ b/localserver/installconfigs.sh
@@ -2,10 +2,12 @@
export SD="../../server-data"
export CONF="$SD/conf/import"
+export NPC="$SD/npc"
mkdir $CONF
cp conf/* $CONF
cp -f conf/inter_conf.txt $CONF
cp -f ${SD}/conf/channels.conf.base ${SD}/conf/channels.conf
+cp -f npc/motd-* ${NPC}/commands/
mkdir versions
-echo "3" >versions/confver
+echo "4" >versions/confver
diff --git a/localserver/npc/motd-debug-text.txt b/localserver/npc/motd-debug-text.txt
new file mode 100644
index 0000000..1dc8621
--- /dev/null
+++ b/localserver/npc/motd-debug-text.txt
@@ -0,0 +1,4 @@
+function script MOTD_debug_text {
+ setarray $Debug_Messages$,"";
+ return;
+}
diff --git a/localserver/npc/motd-text.txt b/localserver/npc/motd-text.txt
new file mode 100644
index 0000000..093616e
--- /dev/null
+++ b/localserver/npc/motd-text.txt
@@ -0,0 +1,4 @@
+function script MOTD_text {
+ setarray $MOTD_Messages$,"";
+ return;
+}
diff --git a/localserver/updateconfigs.sh b/localserver/updateconfigs.sh
index 699c670..2e85481 100755
--- a/localserver/updateconfigs.sh
+++ b/localserver/updateconfigs.sh
@@ -23,3 +23,8 @@ if [ "${VER}" -lt "3" ]; then
cp conf/constants.conf ${CONFDIR}/conf/import/
echo "3" >versions/confver
fi
+
+if [ "${VER}" -lt "4" ]; then
+ cp -f npc/motd-* ${CONFDIR}/npc/commands/
+ echo "4" >versions/confver
+fi