summaryrefslogtreecommitdiff
path: root/src/emap/send.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/send.c')
-rw-r--r--src/emap/send.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/emap/send.c b/src/emap/send.c
index 1428df7..a42df55 100644
--- a/src/emap/send.c
+++ b/src/emap/send.c
@@ -168,6 +168,26 @@ void send_mob_info(struct block_list* bl1, struct block_list* bl2,
clif->send(&buf, sizeof(buf), bl2, target);
}
+void send_pc_own_flags(struct block_list* bl)
+{
+ if (!bl || bl->type != BL_PC)
+ return;
+
+ struct map_session_data *sd = (struct map_session_data *)bl;
+ struct SessionExt *data = session_get_bysd(sd);
+ if (!data)
+ return;
+ if (data->clientVersion < 22)
+ return;
+
+ const int fd = sd->fd;
+ WFIFOHEAD(fd, 8);
+ WFIFOW(fd, 0) = 0xb25;
+ WFIFOW(fd, 2) = 8;
+ WFIFOL(fd, 4) = sd->group_id;
+ WFIFOSET(fd, 8);
+}
+
void send_pc_info(struct block_list* bl1,
struct block_list* bl2,
enum send_target target)