diff options
author | Haru <haru@dotalux.com> | 2014-12-31 20:09:00 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-01-01 18:07:25 +0100 |
commit | 9ce14c32134ae0ee541dd58dc91cf6193fb38fc3 (patch) | |
tree | 6b2780eaa6d07f2e2934cb8021adf4596a4c8519 | |
parent | 17d8096ad6c4b07f84d3276119dcf314be91c1de (diff) | |
download | hercules-9ce14c32134ae0ee541dd58dc91cf6193fb38fc3.tar.gz hercules-9ce14c32134ae0ee541dd58dc91cf6193fb38fc3.tar.bz2 hercules-9ce14c32134ae0ee541dd58dc91cf6193fb38fc3.tar.xz hercules-9ce14c32134ae0ee541dd58dc91cf6193fb38fc3.zip |
Removed deprecated command cmdothernpc
- Follow-up to d22e937e62b3443b74051ecc47ccc3137f9ff5f5
Signed-off-by: Haru <haru@dotalux.com>
-rw-r--r-- | doc/script_commands.txt | 15 | ||||
-rw-r--r-- | src/map/script.c | 13 |
2 files changed, 0 insertions, 28 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 5f2ccb3e5..90452751a 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -6286,21 +6286,6 @@ 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'. - ---------------------------------------- - *npctalk "<message>"; This command will display a message to the surrounding area as if the NPC diff --git a/src/map/script.c b/src/map/script.c index aa8cadc50..3ed779fba 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -9441,18 +9441,6 @@ BUILDIN(donpcevent) return true; } -/// for Aegis compatibility -/// basically a specialized 'donpcevent', with the event specified as two arguments instead of one [RoVeRT] -BUILDIN(cmdothernpc) { - const char* npc_name = script_getstr(st,2); - const char* command = script_getstr(st,3); - char event[EVENT_NAME_LENGTH]; - snprintf(event, sizeof(event), "%s::OnCommand%s", npc_name, command); - script->check_event(st, event); - npc->event_do(event); - return true; -} - /*========================================== *------------------------------------------*/ BUILDIN(addtimer) @@ -19288,7 +19276,6 @@ void script_parse_builtin(void) { BUILDIN_DEF(clone,"siisi????"), BUILDIN_DEF(doevent,"s"), BUILDIN_DEF(donpcevent,"s"), - BUILDIN_DEF_DEPRECATED(cmdothernpc,"ss"), // Deprecated 2014-11-02 [Haru] BUILDIN_DEF(addtimer,"is"), BUILDIN_DEF(deltimer,"s"), BUILDIN_DEF(addtimercount,"si"), |