summaryrefslogtreecommitdiff
path: root/src/map/send.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-03 20:33:41 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-03 20:34:12 +0300
commit7013684efe7fe3dab29e1125197285a8cde8f978 (patch)
tree43f1965eca0361dcf0d748a91c96043636e772b6 /src/map/send.c
parentbb82b741257eb5d389f61fc4ab202b629a58b0d9 (diff)
downloadevol-hercules-7013684efe7fe3dab29e1125197285a8cde8f978.tar.gz
evol-hercules-7013684efe7fe3dab29e1125197285a8cde8f978.tar.bz2
evol-hercules-7013684efe7fe3dab29e1125197285a8cde8f978.tar.xz
evol-hercules-7013684efe7fe3dab29e1125197285a8cde8f978.zip
map: add join channel packets.
Diffstat (limited to 'src/map/send.c')
-rw-r--r--src/map/send.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/send.c b/src/map/send.c
index 029df93..0e281b6 100644
--- a/src/map/send.c
+++ b/src/map/send.c
@@ -183,3 +183,12 @@ void send_changenpc_title (struct map_session_data *sd, const int npcId, const c
strcpy (WFIFOP (fd, 10), name);
WFIFOSET (fd, sz);
}
+
+void send_join_ack(int fd, const char *const name, int flag)
+{
+ WFIFOHEAD (fd, 27);
+ WFIFOW (fd, 0) = 0xb08;
+ safestrncpy (WFIFOP (fd, 2), name, 24);
+ WFIFOB (fd, 26) = flag;
+ WFIFOSET (fd, 27);
+}