From d22e937e62b3443b74051ecc47ccc3137f9ff5f5 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 2 Nov 2014 03:09:35 +0100 Subject: Marked command 'cmdothernpc' as deprecated. - Note: The command will be completely removed after about a month. Custom, third party scripts will require updates, in case they were using this command. Please see the 'cmdothernpc' documentation. Signed-off-by: Haru --- doc/script_commands.txt | 8 ++++++++ src/map/script.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 1c34a09b5..589db2bf5 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -6276,6 +6276,14 @@ A debug message also shows on the console when no events are triggered. *cmdothernpc "",""; + @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + @ /!\ This command is deprecated @ + @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + +This command is deprecated and it should not be used in new scripts, as it +is scheduled to be removed on or after December 2nd, 2014. Please consider +using donpcevent() instead. + This is simply "donpcevent ::OnCommand". It is an approximation of official server script language's 'cmdothernpc'. diff --git a/src/map/script.c b/src/map/script.c index 35fa6a0a8..6da43b87d 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -19132,7 +19132,7 @@ void script_parse_builtin(void) { BUILDIN_DEF(clone,"siisi????"), BUILDIN_DEF(doevent,"s"), BUILDIN_DEF(donpcevent,"s"), - BUILDIN_DEF(cmdothernpc,"ss"), + BUILDIN_DEF_DEPRECATED(cmdothernpc,"ss"), // Deprecated 2014-11-02 [Haru] BUILDIN_DEF(addtimer,"is"), BUILDIN_DEF(deltimer,"s"), BUILDIN_DEF(addtimercount,"si"), -- cgit v1.2.3-60-g2f50