summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emap/clif.c9
-rw-r--r--src/emap/clif.h2
-rw-r--r--src/emap/init.c1
3 files changed, 12 insertions, 0 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c
index d211a83..63b7cc0 100644
--- a/src/emap/clif.c
+++ b/src/emap/clif.c
@@ -1730,3 +1730,12 @@ void eclif_parse_WalkToXY(int fd,
unit->walktoxy(&sd->bl, x, y, 4);
}
}
+
+void eclif_party_info_post(struct party_data *p,
+ struct map_session_data *sd)
+{
+ if (sd)
+ {
+ clif->party_option(p, sd, 2);
+ }
+}
diff --git a/src/emap/clif.h b/src/emap/clif.h
index 5786e52..4838dc6 100644
--- a/src/emap/clif.h
+++ b/src/emap/clif.h
@@ -101,4 +101,6 @@ void eclif_skillinfo_pre(struct map_session_data **sdPtr,
int *infPtr);
void eclif_parse_WalkToXY(int fd,
struct map_session_data *sd) __attribute__((nonnull (2)));
+void eclif_party_info_post(struct party_data *p,
+ struct map_session_data *sd);
#endif // EVOL_MAP_CLIF
diff --git a/src/emap/init.c b/src/emap/init.c
index 8f8c986..93d027c 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -281,6 +281,7 @@ HPExport void plugin_init (void)
addHookPost(clif, damage, eclif_damage_post);
addHookPost(clif, set_unit_walking, eclif_set_unit_walking_post);
addHookPost(clif, move, eclif_move_post);
+ addHookPost(clif, party_info, eclif_party_info_post);
addHookPost(status, init, estatus_init_post);
addHookPost(status, set_viewdata, estatus_set_viewdata_post);
addHookPost(status, read_job_db_sub, estatus_read_job_db_sub_post);