diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-02-05 19:38:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-02-11 03:22:46 +0300 |
commit | e92580d708be4d2fc2530f795720e08554913576 (patch) | |
tree | 147b29de389f01eb5b5f2341d4fdbe4ed5248aa6 /src | |
parent | dd64c68019905e27b9da0594dd0ff2e1d87dfbb5 (diff) | |
download | hercules-e92580d708be4d2fc2530f795720e08554913576.tar.gz hercules-e92580d708be4d2fc2530f795720e08554913576.tar.bz2 hercules-e92580d708be4d2fc2530f795720e08554913576.tar.xz hercules-e92580d708be4d2fc2530f795720e08554913576.zip |
Extend class field in packet 0x3898
Diffstat (limited to 'src')
-rw-r--r-- | src/char/mapif.c | 8 | ||||
-rw-r--r-- | src/map/intif.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/char/mapif.c b/src/char/mapif.c index 0fb11fdbe..f570770de 100644 --- a/src/char/mapif.c +++ b/src/char/mapif.c @@ -1809,10 +1809,10 @@ static void mapif_rodex_checkname(int fd, int reqchar_id, int target_char_id, in WFIFOW(fd, 0) = 0x3898; WFIFOL(fd, 2) = reqchar_id; WFIFOL(fd, 6) = target_char_id; - WFIFOW(fd, 10) = target_class; - WFIFOL(fd, 12) = target_level; - safestrncpy(WFIFOP(fd, 16), name, NAME_LENGTH); - WFIFOSET(fd, 16 + NAME_LENGTH); + WFIFOL(fd, 10) = target_class; + WFIFOL(fd, 14) = target_level; + safestrncpy(WFIFOP(fd, 18), name, NAME_LENGTH); + WFIFOSET(fd, 18 + NAME_LENGTH); } static int mapif_load_guild_storage(int fd, int account_id, int guild_id, char flag) diff --git a/src/map/intif.c b/src/map/intif.c index a526e5ec0..144c0195f 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -2830,11 +2830,11 @@ static void intif_parse_RodexCheckName(int fd) struct map_session_data *sd = NULL; int reqchar_id = RFIFOL(fd, 2); int target_char_id = RFIFOL(fd, 6); - short target_class = RFIFOW(fd, 10); - int target_level = RFIFOL(fd, 12); + int target_class = RFIFOL(fd, 10); + int target_level = RFIFOL(fd, 14); char name[NAME_LENGTH]; - safestrncpy(name, RFIFOP(inter_fd, 16), NAME_LENGTH); + safestrncpy(name, RFIFOP(inter_fd, 18), NAME_LENGTH); if (reqchar_id <= 0) return; @@ -3001,7 +3001,7 @@ void intif_defaults(void) -1, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //0x3860 Quests [Kevin] [Inkfish] -1, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 3, 3, 0, //0x3870 Mercenaries [Zephyrus] / Elemental [pakpil] 12,-1, 7, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //0x3880 - -1,-1, 7, 3, 0,-1, 7, 15,16 + NAME_LENGTH, 0, 0, 0, 0, 0, 0, 0, //0x3890 Homunculus [albator] / RoDEX [KirieZ] + -1,-1, 7, 3, 0,-1, 7, 15,18 + NAME_LENGTH, 0, 0, 0, 0, 0, 0, 0, //0x3890 Homunculus [albator] / RoDEX [KirieZ] }; intif = &intif_s; |