summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorEmistry Haoyan <equinox1991@gmail.com>2019-05-15 01:36:14 +0800
committerJesusaves <cpntb1@ymail.com>2024-08-11 11:48:59 -0300
commit9b4bfd9a667133563219cb44a4f50ea663bcec2e (patch)
tree4a6565c04ff464dc524a5a58acdca904d25f3e97 /src/emap/init.c
parentceb3552310203d9053250bad72415a8fdc43d716 (diff)
downloadevol-hercules-9b4bfd9a667133563219cb44a4f50ea663bcec2e.tar.gz
evol-hercules-9b4bfd9a667133563219cb44a4f50ea663bcec2e.tar.bz2
evol-hercules-9b4bfd9a667133563219cb44a4f50ea663bcec2e.tar.xz
evol-hercules-9b4bfd9a667133563219cb44a4f50ea663bcec2e.zip
[PATCH] Add *duplicate/remove npc script commandHEADtmw2
- `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.c2
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);