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 /src/map/script.c | |
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>
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 13 |
1 files changed, 0 insertions, 13 deletions
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"), |