diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-12 18:12:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-12 18:14:03 +0300 |
commit | 763069245561fb981e97120f60ca417fd481ebf9 (patch) | |
tree | 7d27c8493a7d5cd2feb0c0754fcf1cf6f628bba9 /src/emap/send.c | |
parent | b76f34136a4e59e2e3f4545c32f8bf5a848883e5 (diff) | |
download | plugin-763069245561fb981e97120f60ca417fd481ebf9.tar.gz plugin-763069245561fb981e97120f60ca417fd481ebf9.tar.bz2 plugin-763069245561fb981e97120f60ca417fd481ebf9.tar.xz plugin-763069245561fb981e97120f60ca417fd481ebf9.zip |
Add player self flags packet (0xb25)
Now it include group id
Also change plugin version to 18.
Diffstat (limited to 'src/emap/send.c')
-rw-r--r-- | src/emap/send.c | 20 |
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) |