From 41078f975c105cff3247653bcc59be7705a620c9 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 27 Apr 2022 11:39:16 -0300 Subject: Move chat sanitization to Malindou instead of blackbox --- npc/001-14/ctrl.txt | 2 ++ npc/003-3/malindou.txt | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/001-14/ctrl.txt b/npc/001-14/ctrl.txt index c64d20dc6..715cf8cc8 100644 --- a/npc/001-14/ctrl.txt +++ b/npc/001-14/ctrl.txt @@ -17,6 +17,7 @@ OnInit: // FIXME 001-14,88,27,0 script Hocus#MOLY1200 NPC_BLACKWIZARD,{ npctalk l("Icicle Challenge"); + npctalk l("Not Yet Implemented - Sorry."); end; OnInit: @@ -152,6 +153,7 @@ OnInit: // FIXME 001-14,139,85,0 script Hocus#MOLY0300 NPC_BLACKWIZARD,{ npctalk l("Fluffy Hunter Challenge"); + npctalk l("Not Yet Implemented - Sorry."); end; OnInit: diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt index e43edeea1..0c5c7b836 100644 --- a/npc/003-3/malindou.txt +++ b/npc/003-3/malindou.txt @@ -729,7 +729,21 @@ OnPCBonusEvent: end; OnGlobalChat: - SK_Scripture(@chat$); + .@msg$ = @chat$; + + // We don't care with punctuation or capitalization + .@msg$ = strtolower(.@msg$); + .@msg$ = replacestr(.@msg$, ",", ""); + .@msg$ = replacestr(.@msg$, ".", ""); + .@msg$ = replacestr(.@msg$, "!", ""); + .@msg$ = replacestr(.@msg$, ":", ""); + .@msg$ = replacestr(.@msg$, ";", ""); + .@msg$ = replacestr(.@msg$, "(", ""); + .@msg$ = replacestr(.@msg$, ")", ""); + .@msg$ = replacestr(.@msg$, "<", ""); + .@msg$ = replacestr(.@msg$, ">", ""); + + SK_Scripture(.@msg$); end; // Level up events -- cgit v1.2.3-60-g2f50