summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-22 03:30:37 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-28 04:43:36 +0300
commit5ced38c58adb0236bf741ef0ec08a6cdc542d3b6 (patch)
tree6c56db4709dfc2969b36efcf70ca89ff4cfd0b74 /src/map/clif.c
parentb830a1528eb4a77cbd62fb9d8d4d855f9ae23261 (diff)
downloadhercules-5ced38c58adb0236bf741ef0ec08a6cdc542d3b6.tar.gz
hercules-5ced38c58adb0236bf741ef0ec08a6cdc542d3b6.tar.bz2
hercules-5ced38c58adb0236bf741ef0ec08a6cdc542d3b6.tar.xz
hercules-5ced38c58adb0236bf741ef0ec08a6cdc542d3b6.zip
Add packet ZC_GROUP_ISALIVE.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 3dae902cb..50d6e00a7 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -21611,6 +21611,20 @@ static void clif_parse_changeDress(int fd, struct map_session_data *sd)
atcommand->exec(fd, sd, command, true);
}
+static void clif_party_dead_notification(struct map_session_data *sd)
+{
+#if PACKETVER_MAIN_NUM >= 20170524 || PACKETVER_RE_NUM >= 20170502 || defined(PACKETVER_ZERO)
+ struct PACKET_ZC_GROUP_ISALIVE p;
+
+ nullpo_retv(sd);
+
+ p.packetType = 0xab2;
+ p.AID = sd->bl.id;
+ p.isDead = pc_isdead(sd);
+ clif->send(&p, sizeof(p), &sd->bl, PARTY_WOS);
+#endif
+}
+
/*==========================================
* Main client packet processing function
*------------------------------------------*/
@@ -22734,6 +22748,7 @@ void clif_defaults(void)
// -- Hat Effect
clif->hat_effect = clif_hat_effect;
clif->hat_effect_single = clif_hat_effect_single;
+ clif->party_dead_notification = clif_party_dead_notification;
clif->pAttendanceDB = clif_parse_attendance_db;
clif->attendancedb_libconfig_sub = clif_attendancedb_libconfig_sub;