From 905642f167858017e1fa1582f6253da3c9a8ff97 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 28 Nov 2014 15:41:01 +0300 Subject: Send map mask to clients. --- src/map/send.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/map/send.c') diff --git a/src/map/send.c b/src/map/send.c index 8e2f878..f923dbb 100644 --- a/src/map/send.c +++ b/src/map/send.c @@ -79,3 +79,24 @@ void send_changelook(int fd, int id, int type, int val) WFIFOW (fd, 9) = 0; WFIFOSET (fd, 11); } + +void send_mapmask(int fd, int mask) +{ + WFIFOHEAD (fd, 10); + WFIFOW (fd, 0) = 0xb02; + WFIFOL (fd, 2) = mask; + WFIFOL (fd, 6) = 0; + WFIFOSET (fd, 10); +} + +void send_mapmask_brodcast(const int map, const int mask) +{ + struct block_list bl; + char buf[10]; + + bl.m = map; + WBUFW (buf, 0) = 0xb02; + WBUFL (buf, 2) = mask; + WBUFL (buf, 6) = 0; + clif->send(buf, 10, &bl, ALL_SAMEMAP); +} -- cgit v1.2.3-60-g2f50