From a72ce61cd2dd4981259a8b9a16801222b9775f08 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 13 Feb 2018 20:25:24 +0300 Subject: Send clan id in packet 0xb0a. --- src/emap/send.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/emap/send.c b/src/emap/send.c index 71f7d9e..d87000b 100644 --- a/src/emap/send.c +++ b/src/emap/send.c @@ -208,7 +208,9 @@ void send_pc_info(struct block_list* bl1, return; int len = 14; - if (bl1 == bl2 || tdata->clientVersion >= 21) + if (tdata->clientVersion >= 24) + len = 20; + else if (bl1 == bl2 || tdata->clientVersion >= 21) len = 16; char buf[len]; WBUFW (buf, 0) = 0xb0a + evolPacketOffset; @@ -221,6 +223,14 @@ void send_pc_info(struct block_list* bl1, WBUFW (buf, 12) = data->mount; if (bl1 == bl2 || tdata->clientVersion >= 21) WBUFW (buf, 14) = data->language; + if (tdata->clientVersion >= 24) + { + int clanId = 0; + struct clan *const clan = tsd->clan; + if (clan != NULL) + clanId = clan->clan_id; + WBUFL (buf, 16) = clanId; + } clif->send(&buf, (int)sizeof(buf), bl2, target); } -- cgit v1.2.3-70-g09d2