diff options
author | Haru <haru@dotalux.com> | 2020-07-26 23:03:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-26 23:03:50 +0200 |
commit | b91bd29b37c63c9818d5b28d1a3c4b9d7614d792 (patch) | |
tree | 70ce1bde67972e5b61cdad3419dca54e27fb32b7 | |
parent | ccf375c08e6b5b349b2a4feded5eb40bcf195d65 (diff) | |
parent | 831ace2651186f538ab0b818830f4adc921c35b9 (diff) | |
download | hercules-b91bd29b37c63c9818d5b28d1a3c4b9d7614d792.tar.gz hercules-b91bd29b37c63c9818d5b28d1a3c4b9d7614d792.tar.bz2 hercules-b91bd29b37c63c9818d5b28d1a3c4b9d7614d792.tar.xz hercules-b91bd29b37c63c9818d5b28d1a3c4b9d7614d792.zip |
Merge pull request #2647 from dastgirp/message/fix
Fixed Experience Gain message
-rw-r--r-- | conf/messages.conf | 2 | ||||
-rw-r--r-- | src/map/pc.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/conf/messages.conf b/conf/messages.conf index d8338968e..c30af621e 100644 --- a/conf/messages.conf +++ b/conf/messages.conf @@ -696,7 +696,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 64e52848f..04c3cd1cb 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -7250,8 +7250,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); } |