diff options
-rw-r--r-- | .tools/npc/motd-debug-text.txt | 2 | ||||
-rw-r--r-- | .tools/npc/motd-text.txt | 4 | ||||
-rw-r--r-- | npc/commands/motd.txt | 4 |
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; } |