diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-17 19:09:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-17 19:09:04 +0300 |
commit | 333c908061a1871a73a8562f0095bb15c3ddb740 (patch) | |
tree | 546c909b53960ca30b9512c27dd91d76bc701ed3 /src/emap/init.c | |
parent | 45e89b39985270e12d5f8eb19c666c8fd0562661 (diff) | |
download | evol-hercules-333c908061a1871a73a8562f0095bb15c3ddb740.tar.gz evol-hercules-333c908061a1871a73a8562f0095bb15c3ddb740.tar.bz2 evol-hercules-333c908061a1871a73a8562f0095bb15c3ddb740.tar.xz evol-hercules-333c908061a1871a73a8562f0095bb15c3ddb740.zip |
Add support for card limits.
Into item db to item need add AllowCards group. In format id: amount
If AllowCards not present, all cards allowed.
Example:
AllowCards: {
id5001: 2
id5002: 1
}
Diffstat (limited to 'src/emap/init.c')
-rw-r--r-- | src/emap/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index f4c60b1..255eeb4 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -181,6 +181,7 @@ HPExport void plugin_init (void) addHookPost("pc->unequipitem", epc_unequipitem_post); addHookPost("pc->setnewpc", epc_setnewpc); addHookPost("pc->delitem", epc_delitem_post); + addHookPost("pc->can_insert_card_into", epc_can_insert_card_into_post); langScriptId = script->add_str("Lang"); } |