diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-19 07:02:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-28 04:40:43 +0300 |
commit | b8d48b6f16745132c9be894d7ee12ded9be30d29 (patch) | |
tree | e5230ea96bb992716471c62595c8f364f36108fe /src/map/clif.c | |
parent | eac9c04d28fb71757efb1d6414ebfed5a832b5ca (diff) | |
download | hercules-b8d48b6f16745132c9be894d7ee12ded9be30d29.tar.gz hercules-b8d48b6f16745132c9be894d7ee12ded9be30d29.tar.bz2 hercules-b8d48b6f16745132c9be894d7ee12ded9be30d29.tar.xz hercules-b8d48b6f16745132c9be894d7ee12ded9be30d29.zip |
Fix packet version for packets 0xacb and 0xacc.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index b29fde76b..0897802fc 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -3148,12 +3148,13 @@ static void clif_updatestatus(struct map_session_data *sd, int type) WFIFOL(fd,4)=pc_leftside_matk(sd); break; case SP_ZENY: +// [4144] possible send 64 bit value from PACKETVER_MAIN_NUM >= 20170906 || PACKETVER_RE_NUM >= 20170830 || defined(PACKETVER_ZERO_NUM) +// but kro sending 0xb1 packet only. WFIFOW(fd,0)=0xb1; WFIFOL(fd,4)=sd->status.zeny; len = packet_len(0xb1); break; -// [4144] exact version unknown, between 20170405 to 20170913? -#if PACKETVER >= 20170830 +#if PACKETVER_MAIN_NUM >= 20170906 || PACKETVER_RE_NUM >= 20170830 || defined(PACKETVER_ZERO_NUM) case SP_BASEEXP: WFIFOW(fd, 0) = 0xacb; WFIFOQ(fd, 4) = sd->status.base_exp; @@ -17422,8 +17423,7 @@ static void clif_displayexp(struct map_session_data *sd, uint64 exp, char type, { int fd; -// [4144] unconfirment exact version can be from 20170405 to 20170913 -#if PACKETVER >= 20170830 +#if PACKETVER_MAIN_NUM >= 20170906 || PACKETVER_RE_NUM >= 20170830 || defined(PACKETVER_ZERO_NUM) const int cmd = 0xacc; #else const int cmd = 0x7f6; @@ -17435,8 +17435,7 @@ static void clif_displayexp(struct map_session_data *sd, uint64 exp, char type, WFIFOHEAD(fd, packet_len(cmd)); WFIFOW(fd, 0) = cmd; WFIFOL(fd, 2) = sd->bl.id; -// [4144] unconfirment exact version can be from 20170405 to 20170913 -#if PACKETVER >= 20170830 +#if PACKETVER_MAIN_NUM >= 20170906 || PACKETVER_RE_NUM >= 20170830 || defined(PACKETVER_ZERO_NUM) WFIFOQ(fd, 6) = exp; WFIFOW(fd, 14) = type; WFIFOW(fd, 16) = is_quest ? 1 : 0; // Normal exp is shown in yellow, quest exp is shown in purple. |