summaryrefslogtreecommitdiff
path: root/src/echar
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-12-06 01:12:38 +0300
committerAndrei Karas <akaras@inbox.ru>2018-12-06 01:12:38 +0300
commit6f0b72f56d6ca3078e2a61b07046d797bb64a755 (patch)
tree0bd2389041161df976014e7cbf3e1fbba5f7e8c8 /src/echar
parent6cf162853caa324cd8fb3b27296bc20ee17a04f6 (diff)
downloadevol-hercules-6f0b72f56d6ca3078e2a61b07046d797bb64a755.tar.gz
evol-hercules-6f0b72f56d6ca3078e2a61b07046d797bb64a755.tar.bz2
evol-hercules-6f0b72f56d6ca3078e2a61b07046d797bb64a755.tar.xz
evol-hercules-6f0b72f56d6ca3078e2a61b07046d797bb64a755.zip
Register all evol server to client packets in hercules.
Also change hercules packets limit to allow all custom packets.
Diffstat (limited to 'src/echar')
-rw-r--r--src/echar/init.c3
1 files changed, 3 insertions, 0 deletions
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);