summaryrefslogtreecommitdiff
path: root/src/elogin/init.c
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/elogin/init.c
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/elogin/init.c')
-rw-r--r--src/elogin/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/elogin/init.c b/src/elogin/init.c
index c3d3fb7..5f17a46 100644
--- a/src/elogin/init.c
+++ b/src/elogin/init.c
@@ -10,6 +10,7 @@
#include "common/HPMi.h"
#include "common/memmgr.h"
#include "common/mmo.h"
+#include "common/packets.h"
#include "common/socket.h"
#include "common/strlib.h"
#include "common/timer.h"
@@ -47,6 +48,8 @@ HPExport void plugin_init (void)
addPacket(0x027c, 91, elogin_parse_client_login2, hpParse_Login);
addPacket(0x5000, 54, elogin_parse_change_paassword, hpParse_FromChar);
addPacket(0x5003, 4, elogin_parse_serverexit, hpParse_FromChar);
+ packets->addLen(0x7531, -1);
+ packets->addLen(0x63, -1);
addHookPre(login, client_login, elogin_client_login_pre);
addHookPre(login, check_password, elogin_check_password_pre);