diff options
author | Emistry Haoyan <equinox1991@gmail.com> | 2019-05-15 01:36:14 +0800 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-08-11 11:48:59 -0300 |
commit | 9b4bfd9a667133563219cb44a4f50ea663bcec2e (patch) | |
tree | 4a6565c04ff464dc524a5a58acdca904d25f3e97 /src/emap/init.c | |
parent | ceb3552310203d9053250bad72415a8fdc43d716 (diff) | |
download | evol-hercules-9b4bfd9a667133563219cb44a4f50ea663bcec2e.tar.gz evol-hercules-9b4bfd9a667133563219cb44a4f50ea663bcec2e.tar.bz2 evol-hercules-9b4bfd9a667133563219cb44a4f50ea663bcec2e.tar.xz evol-hercules-9b4bfd9a667133563219cb44a4f50ea663bcec2e.zip |
- `npc_duplicate()` duplicate any existing duplicated NPC.
- `npc_duplicate_remove()` will remove any existing NPC other than source NPC.
Edited by Jesusalva for ease of use in Moubootaur Legends context
See also https://github.com/HerculesWS/Hercules/pull/2473
Diffstat (limited to 'src/emap/init.c')
-rw-r--r-- | src/emap/init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index ccbe8b0..a9f8686 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -248,6 +248,8 @@ HPExport void plugin_init (void) addScriptCommand("getskillname", "i", getskillname); addScriptCommand("bgnew", "siiss", bgnew); addScriptCommand("bgjoin", "isii?", bgjoin); + addScriptCommand("npc_duplicate", "sssii????", npc_duplicate); + addScriptCommand("npc_duplicate_remove", "?", npc_duplicate_remove); addScriptCommand("apicall", "is", apicall); addScriptCommand("apiasync", "ss", apiasync); |