From c1e8d6907938980fd860cd92f94fa5d32c4c0eca Mon Sep 17 00:00:00 2001 From: wushin Date: Thu, 13 Oct 2016 11:54:07 -0500 Subject: Add MOTD to configs --- localserver/installconfigs.sh | 4 +++- localserver/npc/motd-debug-text.txt | 4 ++++ localserver/npc/motd-text.txt | 4 ++++ localserver/updateconfigs.sh | 5 +++++ 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 localserver/npc/motd-debug-text.txt create mode 100644 localserver/npc/motd-text.txt (limited to 'localserver') 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 -- cgit v1.2.3-70-g09d2