diff options
author | Haru <haru@dotalux.com> | 2014-11-02 03:09:35 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-11-02 03:09:35 +0100 |
commit | d22e937e62b3443b74051ecc47ccc3137f9ff5f5 (patch) | |
tree | ebb5fcf715e8d82aaa5b832e1c094e738b1b09bc | |
parent | 5745f9877e544ac8566f220a676b517d9e45b399 (diff) | |
download | hercules-d22e937e62b3443b74051ecc47ccc3137f9ff5f5.tar.gz hercules-d22e937e62b3443b74051ecc47ccc3137f9ff5f5.tar.bz2 hercules-d22e937e62b3443b74051ecc47ccc3137f9ff5f5.tar.xz hercules-d22e937e62b3443b74051ecc47ccc3137f9ff5f5.zip |
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 <haru@dotalux.com>
-rw-r--r-- | doc/script_commands.txt | 8 | ||||
-rw-r--r-- | src/map/script.c | 2 |
2 files changed, 9 insertions, 1 deletions
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 "<npc name>","<command>"; + @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + @ /!\ 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 <npc name>::OnCommand<command>". 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"), |