From b4935b2f81ff9e8903dd89228ff97fc03b584c73 Mon Sep 17 00:00:00 2001 From: gumi Date: Tue, 13 Dec 2016 12:24:26 -0500 Subject: remove motd-text, make debug motd use a temp global var --- .tools/npc/motd-debug-text.txt | 2 +- .tools/npc/motd-text.txt | 4 ---- npc/commands/motd.txt | 4 ++-- 3 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 .tools/npc/motd-text.txt 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; } -- cgit v1.2.3-70-g09d2