summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-17 16:15:51 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-17 16:15:51 +0300
commit0e55e85e9e9a6a4028a29e8c214b69cbc3a54ffe (patch)
tree7e6205674b8baf6c8f450a747dadb3ac705ab04f /src/emap/init.c
parent6d6c12a1721f1432cb576606917dc68db2c9708b (diff)
downloadplugin-0e55e85e9e9a6a4028a29e8c214b69cbc3a54ffe.tar.gz
plugin-0e55e85e9e9a6a4028a29e8c214b69cbc3a54ffe.tar.bz2
plugin-0e55e85e9e9a6a4028a29e8c214b69cbc3a54ffe.tar.xz
plugin-0e55e85e9e9a6a4028a29e8c214b69cbc3a54ffe.zip
Add support for insert cards script.
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 19fbc10..08a0a4d 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -160,6 +160,7 @@ HPExport void plugin_init (void)
addHookPre("pc->delitem", epc_delitem_pre);
addHookPre("pc->dropitem", epc_dropitem_pre);
addHookPre("pc->takeitem", epc_takeitem_pre);
+ addHookPre("pc->insert_card", epc_insert_card_pre);
addHookPre("mob->deleteslave_sub", emob_deleteslave_sub);
addHookPre("mob->read_db_additional_fields", emob_read_db_additional_fields);
addHookPre("npc->parse_unknown_mapflag", enpc_parse_unknown_mapflag);
@@ -224,6 +225,7 @@ HPExport void plugin_init (void)
addHookPost("pc->dropitem", epc_dropitem_post);
addHookPost("pc->takeitem", epc_takeitem_post);
addHookPost("pc->can_insert_card_into", epc_can_insert_card_into_post);
+ addHookPost("pc->insert_card", epc_insert_card_post);
langScriptId = script->add_str("Lang");
}