summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDastgir <dastgirp@gmail.com>2020-03-07 22:23:24 +0530
committerHaru <haru@dotalux.com>2020-07-26 20:59:00 +0200
commit831ace2651186f538ab0b818830f4adc921c35b9 (patch)
tree1ddf1c7f278c0301cc3e7ca4217488f600fd2a18
parent9106bbab19b4feaa4623a3b8e5d59e08ef73b640 (diff)
downloadhercules-831ace2651186f538ab0b818830f4adc921c35b9.tar.gz
hercules-831ace2651186f538ab0b818830f4adc921c35b9.tar.bz2
hercules-831ace2651186f538ab0b818830f4adc921c35b9.tar.xz
hercules-831ace2651186f538ab0b818830f4adc921c35b9.zip
Fixed Experience Gain Message
-rw-r--r--conf/messages.conf2
-rw-r--r--src/map/pc.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/conf/messages.conf b/conf/messages.conf
index 98b0e0a9d..4fdc13b09 100644
--- a/conf/messages.conf
+++ b/conf/messages.conf
@@ -694,7 +694,7 @@
886: Gained %dz.
887: %s stole an Unknown Item (id: %i).
888: %s stole %s.
-889: Experience Gained Base:%"PRIu64" (%.2f%%) Job:%"PRIu64" (%.2f%%)
+889: Experience Gained Base:%llu (%.2f%%) Job:%llu (%.2f%%)
890: [KS Warning!! - Owner : %s]
891: [Watch out! %s is trying to KS you!]
892: Growth: hp:%d sp:%d str(%.2f) agi(%.2f) vit(%.2f) int(%.2f) dex(%.2f) luk(%.2f)
diff --git a/src/map/pc.c b/src/map/pc.c
index c96e957c7..fc1552e62 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -7120,8 +7120,8 @@ static bool pc_gainexp(struct map_session_data *sd, struct block_list *src, uint
if(sd->state.showexp) {
char output[256];
sprintf(output,
- msg_sd(sd, 889), // Experience Gained Base:%"PRIu64" (%.2f%%) Job:%"PRIu64" (%.2f%%)
- base_exp, nextbp * (float)100, job_exp, nextjp * (float)100);
+ msg_sd(sd, 889), // Experience Gained Base:%llu (%.2f%%) Job:%llu (%.2f%%)
+ (unsigned long long)base_exp, nextbp * 100.0f, (unsigned long long)job_exp, nextjp * 100.0f);
clif_disp_onlyself(sd, output);
}