diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-28 15:41:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-28 15:42:39 +0300 |
commit | 905642f167858017e1fa1582f6253da3c9a8ff97 (patch) | |
tree | 792d0cd12bab53cb03addb634ec0baa1cc2171ea /src/map/send.c | |
parent | 1ea90a6de5d0dc506b4be96ded4fe50e27df7e2b (diff) | |
download | plugin-905642f167858017e1fa1582f6253da3c9a8ff97.tar.gz plugin-905642f167858017e1fa1582f6253da3c9a8ff97.tar.bz2 plugin-905642f167858017e1fa1582f6253da3c9a8ff97.tar.xz plugin-905642f167858017e1fa1582f6253da3c9a8ff97.zip |
Send map mask to clients.
Diffstat (limited to 'src/map/send.c')
-rw-r--r-- | src/map/send.c | 21 |
1 files changed, 21 insertions, 0 deletions
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); +} |