diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-20 16:38:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-20 16:38:41 +0300 |
commit | 8cc96fc6a97376a020b31fbb16196e3476f79ec5 (patch) | |
tree | 71e4c8dc49db7642df43ba68bcf1732643c46c4e /src/map/clif.c | |
parent | 428c65b5c8d000d1cf3b3540de5bd91124c76113 (diff) | |
download | evol-hercules-8cc96fc6a97376a020b31fbb16196e3476f79ec5.tar.gz evol-hercules-8cc96fc6a97376a020b31fbb16196e3476f79ec5.tar.bz2 evol-hercules-8cc96fc6a97376a020b31fbb16196e3476f79ec5.tar.xz evol-hercules-8cc96fc6a97376a020b31fbb16196e3476f79ec5.zip |
map: add support for sending npc activate distance to client
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 3c6675e..d0634bd 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -218,7 +218,31 @@ int eclif_send_actual(int *fd, void *buf, int *len) return 0; if (data->clientVersion < 3) { // not sending new packets to old clients - ShowWarning("skip packet %d\n", packet); +// ShowWarning("skip packet %d\n", packet); + hookStop(); + return 0; + } + } + if (packet >= 0xb03 && packet <= 0xb0a) + { + struct SessionExt *data = session_get(*fd); + if (!data) + return 0; + if (data->clientVersion < 4) + { // not sending new packets to old clients +// ShowWarning("skip packet %d\n", packet); + hookStop(); + return 0; + } + } + if (packet == 0xb0b) + { + struct SessionExt *data = session_get(*fd); + if (!data) + return 0; + if (data->clientVersion < 5) + { // not sending new packets to old clients +// ShowWarning("skip packet %d\n", packet); hookStop(); return 0; } @@ -237,6 +261,8 @@ void eclif_set_unit_idle_post(struct block_list* bl, struct map_session_data *ts send_mob_info(bl, &tsd->bl, *target); else if (bl->type == BL_PC) send_pc_info(bl, &tsd->bl, *target); + else if (bl->type == BL_NPC) + send_npc_info(bl, &tsd->bl, *target); } void eclif_set_unit_walking(struct block_list* bl, struct map_session_data *tsd, |