diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-13 21:08:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-13 21:09:15 +0300 |
commit | ab731862f899dd87b84613ebf12a82cdc73e094f (patch) | |
tree | e0dff28ea24a942d0ad6d07783aadbccfc5022a7 /src/emap/init.c | |
parent | f7cce6ac2d1c010af4865212dc6ddc2a7aea66a4 (diff) | |
download | plugin-ab731862f899dd87b84613ebf12a82cdc73e094f.tar.gz plugin-ab731862f899dd87b84613ebf12a82cdc73e094f.tar.bz2 plugin-ab731862f899dd87b84613ebf12a82cdc73e094f.tar.xz plugin-ab731862f899dd87b84613ebf12a82cdc73e094f.zip |
Add support for take (pickup) script for items taked from ground by player.
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 1259ce8..271f98a 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -157,6 +157,7 @@ HPExport void plugin_init (void) addHookPre("pc->check_job_name", epc_check_job_name); addHookPre("pc->delitem", epc_delitem_pre); addHookPre("pc->dropitem", epc_dropitem_pre); + addHookPre("pc->takeitem", epc_takeitem_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); @@ -215,6 +216,7 @@ HPExport void plugin_init (void) addHookPost("pc->setnewpc", epc_setnewpc_post); addHookPost("pc->delitem", epc_delitem_post); addHookPost("pc->dropitem", epc_dropitem_post); + addHookPost("pc->takeitem", epc_takeitem_post); addHookPost("pc->can_insert_card_into", epc_can_insert_card_into_post); langScriptId = script->add_str("Lang"); |