|
@@ -4899,18 +4899,17 @@ int pc_gainexp(struct map_session_data *sd, struct block_list *src, unsigned int
|
|
clif_updatestatus(sd,SP_JOBEXP);
|
|
clif_updatestatus(sd,SP_JOBEXP);
|
|
}
|
|
}
|
|
|
|
|
|
- if(sd->state.showexp){
|
|
|
|
#if PACKETVER >= 20091027
|
|
#if PACKETVER >= 20091027
|
|
- if(base_exp)
|
|
|
|
- clif_displayexp(sd, base_exp, 1, quest);
|
|
|
|
- if(job_exp)
|
|
|
|
- clif_displayexp(sd, job_exp, 2, quest);
|
|
|
|
-#else
|
|
|
|
|
|
+ if(base_exp)
|
|
|
|
+ clif_displayexp(sd, base_exp, 1, quest);
|
|
|
|
+ if(job_exp)
|
|
|
|
+ clif_displayexp(sd, job_exp, 2, quest);
|
|
|
|
+#endif
|
|
|
|
+ if(sd->state.showexp) {
|
|
char output[256];
|
|
char output[256];
|
|
sprintf(output,
|
|
sprintf(output,
|
|
"Experience Gained Base:%u (%.2f%%) Job:%u (%.2f%%)",base_exp,nextbp*(float)100,job_exp,nextjp*(float)100);
|
|
"Experience Gained Base:%u (%.2f%%) Job:%u (%.2f%%)",base_exp,nextbp*(float)100,job_exp,nextjp*(float)100);
|
|
clif_disp_onlyself(sd,output,strlen(output));
|
|
clif_disp_onlyself(sd,output,strlen(output));
|
|
-#endif
|
|
|
|
}
|
|
}
|
|
|
|
|
|
return 1;
|
|
return 1;
|