summaryrefslogtreecommitdiff
path: root/src/echar
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-01-23 21:38:21 +0300
committerAndrei Karas <akaras@inbox.ru>2019-01-23 21:38:21 +0300
commit3c0e3838f77a62a69130d7b2674e21e2133a7f83 (patch)
tree6f3ff1583e69e5ded625af59a78cbd5568acef51 /src/echar
parent637fcbc9c0f4b042b38f9e900d08aee521305991 (diff)
downloadevol-hercules-3c0e3838f77a62a69130d7b2674e21e2133a7f83.tar.gz
evol-hercules-3c0e3838f77a62a69130d7b2674e21e2133a7f83.tar.bz2
evol-hercules-3c0e3838f77a62a69130d7b2674e21e2133a7f83.tar.xz
evol-hercules-3c0e3838f77a62a69130d7b2674e21e2133a7f83.zip
Update from herculess20190211
Diffstat (limited to 'src/echar')
-rw-r--r--src/echar/char.c3
-rw-r--r--src/echar/char.h2
-rw-r--r--src/echar/init.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/src/echar/char.c b/src/echar/char.c
index efbe402..037aa05 100644
--- a/src/echar/char.c
+++ b/src/echar/char.c
@@ -124,6 +124,7 @@ void echar_creation_failed(int *fdPtr, int *result)
/* 0x02 = Symbols in Character Names are forbidden */
/* 0x03 = You are not eligible to open the Character Slot. */
/* 0x0B = This service is only available for premium users. */
+ /* 0x0C = Character name is invalid. */
switch (*result)
{
case -1: WFIFOB(fd, 2) = 0x00; break; // 'Charname already exists'
@@ -176,7 +177,7 @@ void echar_parse_login_password_change_ack(int charFd)
}
}
-void echar_mmo_char_send099d_post(int fd, struct char_session_data *sd)
+void echar_send_HC_ACK_CHARINFO_PER_PAGE_post(int fd, struct char_session_data *sd)
{
send_additional_slots(fd, sd);
}
diff --git a/src/echar/char.h b/src/echar/char.h
index 8726d93..708a558 100644
--- a/src/echar/char.h
+++ b/src/echar/char.h
@@ -13,7 +13,7 @@ void echar_parse_change_paassword(int fd);
void echar_parse_login_password_change_ack(int charFd);
-void echar_mmo_char_send099d_post(int fd, struct char_session_data *sd);
+void echar_send_HC_ACK_CHARINFO_PER_PAGE_post(int fd, struct char_session_data *sd);
int echar_mmo_char_send_characters_post(int retVal, int fd, struct char_session_data *sd);
diff --git a/src/echar/init.c b/src/echar/init.c
index d9f39c7..4e9faa6 100644
--- a/src/echar/init.c
+++ b/src/echar/init.c
@@ -61,7 +61,7 @@ HPExport void plugin_init (void)
addHookPre(chr, creation_failed, echar_creation_failed);
addHookPre(chr, parse_char_connect, echar_parse_char_connect_pre);
- addHookPost(chr, mmo_char_send099d, echar_mmo_char_send099d_post);
+ addHookPost(chr, send_HC_ACK_CHARINFO_PER_PAGE, echar_send_HC_ACK_CHARINFO_PER_PAGE_post);
addHookPost(chr, mmo_char_send_characters, echar_mmo_char_send_characters_post);
addHookPost(chr, parse_char_connect, echar_parse_char_connect_post);
}