summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2016-10-13 11:55:01 -0500
committerwushin <pasekei@gmail.com>2016-10-13 13:28:06 -0500
commite1c5c4d938f6a734b44c7db1266da2eae8ba4197 (patch)
treeea19737738b0351adb203fa77dbbba05221f04c4
parentfaec2e2164f6df535dea7b1a6e941ec4fb7e45a2 (diff)
downloadserverdata-e1c5c4d938f6a734b44c7db1266da2eae8ba4197.tar.gz
serverdata-e1c5c4d938f6a734b44c7db1266da2eae8ba4197.tar.bz2
serverdata-e1c5c4d938f6a734b44c7db1266da2eae8ba4197.tar.xz
serverdata-e1c5c4d938f6a734b44c7db1266da2eae8ba4197.zip
Add MOTD to Configs
-rw-r--r--.gitignore2
-rw-r--r--.tools/npc/motd-debug-text.txt4
-rw-r--r--.tools/npc/motd-text.txt4
-rwxr-xr-x.tools/scripts/init.sh1
-rw-r--r--npc/commands/motd.txt2
-rw-r--r--npc/scripts.conf2
6 files changed, 15 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 5115de6c..502826fd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -122,3 +122,5 @@ Thumbs.db
# auto created configs
conf/channels.conf
+npc/commands/motd-debug-text.txt
+npc/commands/motd-text.txt
diff --git a/.tools/npc/motd-debug-text.txt b/.tools/npc/motd-debug-text.txt
new file mode 100644
index 00000000..1dc8621f
--- /dev/null
+++ b/.tools/npc/motd-debug-text.txt
@@ -0,0 +1,4 @@
+function script MOTD_debug_text {
+ setarray $Debug_Messages$,"";
+ return;
+}
diff --git a/.tools/npc/motd-text.txt b/.tools/npc/motd-text.txt
new file mode 100644
index 00000000..093616e0
--- /dev/null
+++ b/.tools/npc/motd-text.txt
@@ -0,0 +1,4 @@
+function script MOTD_text {
+ setarray $MOTD_Messages$,"";
+ return;
+}
diff --git a/.tools/scripts/init.sh b/.tools/scripts/init.sh
index 05dca3a8..6ff3efdb 100755
--- a/.tools/scripts/init.sh
+++ b/.tools/scripts/init.sh
@@ -206,6 +206,7 @@ function init_configs {
./installconfigs.sh
cd ../..
cp server-data/.tools/conf/$1/* server-data/conf/import/
+ cp server-data/.tools/npc/motd-* server-data/npc/commands/
ls -la server-data/conf/import
cat server-data/conf/import/inter_conf.txt
}
diff --git a/npc/commands/motd.txt b/npc/commands/motd.txt
index ff3e6b49..cea01544 100644
--- a/npc/commands/motd.txt
+++ b/npc/commands/motd.txt
@@ -177,6 +177,8 @@ OnPCLoginEvent:
end;
OnInit:
+ MOTD_text;
+ MOTD_debug_text;
.size = getarraysize($MOTD_Messages$);
.dsize = getarraysize($Debug_Messages$);
bindatcmd "motd", "@motd::OnCall", 3, 99, 0;
diff --git a/npc/scripts.conf b/npc/scripts.conf
index 1e8239b8..ef4c18e2 100644
--- a/npc/scripts.conf
+++ b/npc/scripts.conf
@@ -74,6 +74,8 @@
"npc/commands/music.txt",
"npc/commands/warp.txt",
"npc/commands/zeny.txt",
+"npc/commands/motd-debug-text.txt",
+"npc/commands/motd-text.txt",
"npc/commands/motd.txt",
"npc/commands/scheduled-broadcasts.txt",
"npc/commands/event.txt",