diff options
author | wushin <pasekei@gmail.com> | 2016-10-13 11:54:07 -0500 |
---|---|---|
committer | wushin <pasekei@gmail.com> | 2016-10-13 12:18:40 -0500 |
commit | c1e8d6907938980fd860cd92f94fa5d32c4c0eca (patch) | |
tree | 7d13ba35d7f813acccdd5b8722e1cddf707f2ada | |
parent | e79d9ad0618ea914ecb76f588e8281319f8c385b (diff) | |
download | evol-tools-c1e8d6907938980fd860cd92f94fa5d32c4c0eca.tar.gz evol-tools-c1e8d6907938980fd860cd92f94fa5d32c4c0eca.tar.bz2 evol-tools-c1e8d6907938980fd860cd92f94fa5d32c4c0eca.tar.xz evol-tools-c1e8d6907938980fd860cd92f94fa5d32c4c0eca.zip |
Add MOTD to configs
-rwxr-xr-x | localserver/installconfigs.sh | 4 | ||||
-rw-r--r-- | localserver/npc/motd-debug-text.txt | 4 | ||||
-rw-r--r-- | localserver/npc/motd-text.txt | 4 | ||||
-rwxr-xr-x | localserver/updateconfigs.sh | 5 |
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 |