summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-29 13:32:06 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-29 13:32:06 +0300
commit33dd27e7025553d3635dc06200c1189901243ede (patch)
treefaf8038ddcea8f5f634dfb5922141a66f4819e32 /src/map/clif.c
parentf7557fca587fac9d7bb410dba724e2c53f3c831a (diff)
downloadplugin-33dd27e7025553d3635dc06200c1189901243ede.tar.gz
plugin-33dd27e7025553d3635dc06200c1189901243ede.tar.bz2
plugin-33dd27e7025553d3635dc06200c1189901243ede.tar.xz
plugin-33dd27e7025553d3635dc06200c1189901243ede.zip
map: send monster info packet.
For now include monster attack range.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 5868c5e..f92a9f7 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -200,13 +200,13 @@ int eclif_send_actual(int *fd, void *buf, int *len)
if (*len >= 2)
{
const int packet = RBUFW (buf, 0);
- if (packet == 0xb02)
+ if (packet == 0xb02 || packet == 0xb03)
{
struct SessionExt *data = session_get(*fd);
if (!data)
return 0;
if (data->clientVersion < 3)
- { // not sending 0xb02 to old clients
+ { // not sending new packets to old clients
hookStop();
return 0;
}
@@ -214,3 +214,13 @@ int eclif_send_actual(int *fd, void *buf, int *len)
}
return 0;
}
+
+void eclif_set_unit_idle_post(struct block_list* bl, struct map_session_data *tsd,
+ enum send_target *target)
+{
+ if (!bl || !tsd)
+ return;
+
+ if (bl->type == BL_MOB && tsd)
+ send_mob_info(bl, tsd ? &tsd->bl : bl, *target);
+}