diff options
author | Haru <haru@dotalux.com> | 2019-10-18 13:15:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-18 13:15:22 +0200 |
commit | ad460000f3f4af4dba1cdc2d9ce466b81c2dcf08 (patch) | |
tree | 9cef997bc7c05216c156f4b517802ecdf2931ca3 /src/map/clif.c | |
parent | be66e6f50c078cb712b8152357325fdaa6d9f35f (diff) | |
parent | b7b3080c9edec4c2f7d34b4d77b08646d46100eb (diff) | |
download | hercules-ad460000f3f4af4dba1cdc2d9ce466b81c2dcf08.tar.gz hercules-ad460000f3f4af4dba1cdc2d9ce466b81c2dcf08.tar.bz2 hercules-ad460000f3f4af4dba1cdc2d9ce466b81c2dcf08.tar.xz hercules-ad460000f3f4af4dba1cdc2d9ce466b81c2dcf08.zip |
Merge pull request #2152 from dastgirp/clif_messages
Moved hardcoded messages to conf
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index f6caa502e..5c6bc39d3 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -10769,7 +10769,7 @@ static void clif_parse_LoadEndAck(int fd, struct map_session_data *sd) if( map->list[sd->bl.m].flag.allowks && !map_flag_ks(sd->bl.m) ) { char output[128]; - sprintf(output, "[ Kill Steal Protection Disabled. KS is allowed in this map ]"); + sprintf(output, "%s", msg_sd(sd, 893)); // [ Kill Steal Protection Disabled. KS is allowed in this map ] clif->broadcast(&sd->bl, output, (int)strlen(output) + 1, BC_BLUE, SELF); } @@ -11664,7 +11664,7 @@ static void clif_parse_WisMessage(int fd, struct map_session_data *sd) // if player is autotrading if (dstsd->state.autotrade) { char output[256]; - sprintf(output, "%s is in autotrade mode and cannot receive whispered messages.", dstsd->status.name); + sprintf(output, msg_fd(fd, 894), dstsd->status.name); // %s is in autotrade mode and cannot receive whispered messages. clif->wis_message(fd, map->wisp_server_name, output, (int)strlen(output)); return; } @@ -16683,7 +16683,7 @@ static void clif_Mail_refreshinbox(struct map_session_data *sd) if( md->full ) {// TODO: is this official? char output[100]; - sprintf(output, "Inbox is full (Max %d). Delete some mails.", MAIL_MAX_INBOX); + sprintf(output, msg_sd(sd, 511), MAIL_MAX_INBOX); // Inbox is full (Max %d). Delete some mails. clif_disp_onlyself(sd, output); } } @@ -20599,7 +20599,7 @@ static void clif_show_modifiers(struct map_session_data *sd) if( sd->status.mod_exp != 100 || sd->status.mod_drop != 100 || sd->status.mod_death != 100 ) { char output[128]; - snprintf(output,128,"Base EXP : %d%% | Base Drop: %d%% | Base Death Penalty: %d%%", + snprintf(output,128, msg_sd(sd, 896), // Base EXP : %d%% | Base Drop: %d%% | Base Death Penalty: %d%% sd->status.mod_exp,sd->status.mod_drop,sd->status.mod_death); clif->broadcast2(&sd->bl, output, (int)strlen(output) + 1, 0xffbc90, 0x190, 12, 0, 0, SELF); } |