summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2016-12-13 12:24:26 -0500
committergumi <mekolat@users.noreply.github.com>2016-12-13 12:24:26 -0500
commitb4935b2f81ff9e8903dd89228ff97fc03b584c73 (patch)
tree6d50a9e7d30f952f0d7e49a2ffdd2280e191d768
parent7425036bc37857e6bfc6a6530e05bd3df94c88f4 (diff)
downloadserverdata-b4935b2f81ff9e8903dd89228ff97fc03b584c73.tar.gz
serverdata-b4935b2f81ff9e8903dd89228ff97fc03b584c73.tar.bz2
serverdata-b4935b2f81ff9e8903dd89228ff97fc03b584c73.tar.xz
serverdata-b4935b2f81ff9e8903dd89228ff97fc03b584c73.zip
remove motd-text, make debug motd use a temp global var
-rw-r--r--.tools/npc/motd-debug-text.txt2
-rw-r--r--.tools/npc/motd-text.txt4
-rw-r--r--npc/commands/motd.txt4
3 files changed, 3 insertions, 7 deletions
diff --git a/.tools/npc/motd-debug-text.txt b/.tools/npc/motd-debug-text.txt
index 1dc8621f..a57c9a2a 100644
--- a/.tools/npc/motd-debug-text.txt
+++ b/.tools/npc/motd-debug-text.txt
@@ -1,4 +1,4 @@
function script MOTD_debug_text {
- setarray $Debug_Messages$,"";
+ setarray $@Debug_Messages$[0], "";
return;
}
diff --git a/.tools/npc/motd-text.txt b/.tools/npc/motd-text.txt
deleted file mode 100644
index 093616e0..00000000
--- a/.tools/npc/motd-text.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-function script MOTD_text {
- setarray $MOTD_Messages$,"";
- return;
-}
diff --git a/npc/commands/motd.txt b/npc/commands/motd.txt
index f6a0369a..98a63e87 100644
--- a/npc/commands/motd.txt
+++ b/npc/commands/motd.txt
@@ -7,7 +7,7 @@ function script displayMOTD {
{
for (.@i = 0; .@i < .@dsize; ++.@i)
{
- dispbottom $Debug_Messages$[.@i]; // FIXME: send this to the Debug tab instead
+ dispbottom $@Debug_Messages$[.@i]; // FIXME: send this to the Debug tab instead
}
if (.@dsize > 0)
@@ -183,6 +183,6 @@ OnPCLoginEvent:
OnInit:
MOTD_debug_text;
.size = getarraysize($MOTD_Messages$);
- .dsize = getarraysize($Debug_Messages$);
+ .dsize = getarraysize($@Debug_Messages$);
bindatcmd "motd", "@motd::OnCall", 3, 99, 0;
}