diff options
-rw-r--r-- | src/echar/char.c | 3 | ||||
-rw-r--r-- | src/emap/clif.c | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/echar/char.c b/src/echar/char.c index 91d7356..6d16e56 100644 --- a/src/echar/char.c +++ b/src/echar/char.c @@ -64,7 +64,8 @@ void echar_parse_char_create_new_char(int *fdPtr, struct char_session_data **sdP } } - const int result = chr->make_new_char_sql(sd, RFIFOP(fd, 2), 1, 1, 1, 1, 1, 1, RFIFOB(fd, 26), RFIFOW(fd, 27), RFIFOW(fd, 29), JOB_NOVICE); + // +++ need remove addition sql query after this line for set sex + const int result = chr->make_new_char_sql(sd, RFIFOP(fd, 2), 1, 1, 1, 1, 1, 1, RFIFOB(fd, 26), RFIFOW(fd, 27), RFIFOW(fd, 29), JOB_NOVICE, 'U'); if (result < 0) { chr->creation_failed(fd, result); diff --git a/src/emap/clif.c b/src/emap/clif.c index 54df930..a5e3ecd 100644 --- a/src/emap/clif.c +++ b/src/emap/clif.c @@ -1816,7 +1816,12 @@ void eclif_party_info_post(struct party_data *p, void eclif_parse_NpcStringInput(int fd, struct map_session_data* sd) { - int message_len = RFIFOW(fd, 2) - 8; +// [4144] can't confirm exact client version. At least >= correct for 20150513 +#if PACKETVER >= 20151029 + int message_len = RFIFOW(fd, 2) - 7; +#else + int message_len = RFIFOW(fd, 2) - 8; +#endif int npcid = RFIFOL(fd, 4); const char *message = RFIFOP(fd, 8); |