summaryrefslogtreecommitdiff
path: root/src/emap/send.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-27 21:09:53 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-27 21:09:53 +0300
commit457e6e04f2f8c4b0ce5f73db8c17a2fe3c3951ed (patch)
treeaabdd9b3a280aa6a6257fc65b384c1be9386c320 /src/emap/send.c
parent24a5f119b798bce791775943da06c1feaff16027 (diff)
downloadplugin-457e6e04f2f8c4b0ce5f73db8c17a2fe3c3951ed.tar.gz
plugin-457e6e04f2f8c4b0ce5f73db8c17a2fe3c3951ed.tar.bz2
plugin-457e6e04f2f8c4b0ce5f73db8c17a2fe3c3951ed.tar.xz
plugin-457e6e04f2f8c4b0ce5f73db8c17a2fe3c3951ed.zip
Add killer id packet.
Change plugin version to 14.
Diffstat (limited to 'src/emap/send.c')
-rw-r--r--src/emap/send.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/emap/send.c b/src/emap/send.c
index 8a5c5a3..7078410 100644
--- a/src/emap/send.c
+++ b/src/emap/send.c
@@ -459,3 +459,18 @@ void send_pc_skin(int fd, int npcId, const char *const skin)
strcpy(WFIFOP (fd, 8), skin);
WFIFOSET(fd, sz);
}
+
+void send_pc_killed(int fd, struct block_list* bl)
+{
+ struct SessionExt *data = session_get(fd);
+ if (!data || data->clientVersion < 17)
+ return;
+
+ WFIFOHEAD (fd, 6);
+ WFIFOW(fd, 0) = 0xb1d;
+ if (bl)
+ WFIFOL(fd, 2) = bl->id;
+ else
+ WFIFOL(fd, 2) = 0;
+ WFIFOSET(fd, 6);
+}