From 6f0b72f56d6ca3078e2a61b07046d797bb64a755 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 6 Dec 2018 01:12:38 +0300 Subject: Register all evol server to client packets in hercules. Also change hercules packets limit to allow all custom packets. --- src/echar/init.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/echar') diff --git a/src/echar/init.c b/src/echar/init.c index d241d8c..d9f39c7 100644 --- a/src/echar/init.c +++ b/src/echar/init.c @@ -11,6 +11,7 @@ #include "common/memmgr.h" #include "common/mapindex.h" #include "common/mmo.h" +#include "common/packets.h" #include "common/socket.h" #include "common/strlib.h" #include "common/sql.h" @@ -54,6 +55,8 @@ HPExport void plugin_init (void) addPacket(0x5001, 7, echar_parse_login_password_change_ack, hpParse_FromLogin); addPacket(0x5002, 4, echar_parse_map_serverexit, hpParse_FromMap); + packets->addLen(0xb17 + evolPacketOffset, 19); + addHookPre(chr, parse_char_create_new_char, echar_parse_char_create_new_char); addHookPre(chr, creation_failed, echar_creation_failed); addHookPre(chr, parse_char_connect, echar_parse_char_connect_pre); -- cgit v1.2.3-60-g2f50