diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-02-13 21:37:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-02-13 21:37:35 +0300 |
commit | 68c2ea30403890497b05cd0c8ce9d8197324efef (patch) | |
tree | 1cbcf302014e717862a0b880d6670b17397af2a4 /src/emap/init.c | |
parent | a72ce61cd2dd4981259a8b9a16801222b9775f08 (diff) | |
download | plugin-68c2ea30403890497b05cd0c8ce9d8197324efef.tar.gz plugin-68c2ea30403890497b05cd0c8ce9d8197324efef.tar.bz2 plugin-68c2ea30403890497b05cd0c8ce9d8197324efef.tar.xz plugin-68c2ea30403890497b05cd0c8ce9d8197324efef.zip |
Update for all players clan join/leave state.
Other players will see if player joined or left clan.
Diffstat (limited to 'src/emap/init.c')
-rw-r--r-- | src/emap/init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index 28aabf8..3806aee 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -19,6 +19,7 @@ #include "map/channel.h" #include "map/chat.h" #include "map/chrif.h" +#include "map/clan.h" #include "map/clif.h" #include "map/duel.h" #include "map/elemental.h" @@ -47,6 +48,7 @@ #include "emap/atcommand.h" #include "emap/battle.h" #include "emap/battleground.h" +#include "emap/clan.h" #include "emap/clif.h" #include "emap/config.h" #include "emap/console.h" @@ -286,6 +288,8 @@ HPExport void plugin_init (void) addHookPost(battle, calc_magic_attack, ebattle_calc_weapon_attack_post); addHookPost(battle, calc_misc_attack, ebattle_calc_weapon_attack_post); addHookPost(battle, check_arrows, ebattle_check_arrows_post); + addHookPost(clan, join, eclan_join_post); + addHookPost(clan, leave, eclan_leave_post); addHookPost(clif, addcards, eclif_addcards_post); addHookPost(clif, addcards2, eclif_addcards2_post); addHookPost(clif, getareachar_unit, eclif_getareachar_unit_post); |