summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorEmistry Haoyan <Equinox1991@gmail.com>2017-03-14 00:15:49 +0800
committerEmistry Haoyan <Equinox1991@gmail.com>2017-03-14 00:15:49 +0800
commit880ea659c9ec5241579281c8f9bff256d3d42eac (patch)
treef95e240db0325d101afdb38257d1ea884294b376 /src/map/clif.c
parent7b4d4fb92603ef1e622b52e777cd5ac1b7f97d55 (diff)
downloadhercules-880ea659c9ec5241579281c8f9bff256d3d42eac.tar.gz
hercules-880ea659c9ec5241579281c8f9bff256d3d42eac.tar.bz2
hercules-880ea659c9ec5241579281c8f9bff256d3d42eac.tar.xz
hercules-880ea659c9ec5241579281c8f9bff256d3d42eac.zip
Fixed MVP exp message issue for clients 2013-12-23cRagexe and newer
- Fixed MVP exp message issue clients 2013-12-23cRagexe and newer. - Gravity remove packet MVP exp message - Credit to https://github.com/rathena/rathena/commit/85749e84b91087960e868e30a7a052b0c0cdce5b
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 6897c357a..597a890ae 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -7256,6 +7256,13 @@ void clif_mvp_item(struct map_session_data *sd,int nameid)
/// 010b <exp>.L
void clif_mvp_exp(struct map_session_data *sd, unsigned int exp)
{
+#if PACKETVER >= 20131223 // Kro removed this packet [Napster]
+ if (battle_config.mvp_exp_reward_message) {
+ char e_msg[CHAT_SIZE_MAX];
+ sprintf(e_msg, msg_txt(855), exp);
+ clif->messagecolor_self(sd->fd, COLOR_CYAN, e_msg); // Congratulations! You are the MVP! Your reward EXP Points are %u !!
+ }
+#else
int fd;
nullpo_retv(sd);
@@ -7265,6 +7272,7 @@ void clif_mvp_exp(struct map_session_data *sd, unsigned int exp)
WFIFOW(fd,0)=0x10b;
WFIFOL(fd,2)=cap_value(exp,0,INT32_MAX);
WFIFOSET(fd,packet_len(0x10b));
+#endif
}
/// Dropped MVP item reward message (ZC_THROW_MVPITEM).