Merge pull request #23 from wyld-sw/master

Minor changes to interactive and log messages.
This commit is contained in:
Jason "Opie" Babo
2015-06-19 20:03:49 +01:00
8 changed files with 19 additions and 18 deletions

View File

@@ -217,7 +217,7 @@ ACMD(do_reply)
tch = tch->next; tch = tch->next;
if (!tch) if (!tch)
send_to_char(ch, "They are no longer playing.\r\n"); send_to_char(ch, "That player is no longer here.\r\n");
else if (is_tell_ok(ch, tch)) { else if (is_tell_ok(ch, tch)) {
if (CONFIG_SPECIAL_IN_COMM && legal_communication(argument)) if (CONFIG_SPECIAL_IN_COMM && legal_communication(argument))
parse_at(argument); parse_at(argument);

View File

@@ -2411,7 +2411,7 @@ ACMD(do_whois)
hours = (time(0) - victim->player.time.logon) / 3600; hours = (time(0) - victim->player.time.logon) / 3600;
if (!got_from_file) { if (!got_from_file) {
send_to_char(ch, "Last Logon: They're playing now! (Idle %d Minutes)", send_to_char(ch, "Last Logon: Playing now! (Idle %d Minutes)",
victim->char_specials.timer * SECS_PER_MUD_HOUR / SECS_PER_REAL_MIN); victim->char_specials.timer * SECS_PER_MUD_HOUR / SECS_PER_REAL_MIN);
if (!victim->desc) if (!victim->desc)
@@ -2420,7 +2420,7 @@ ACMD(do_whois)
send_to_char(ch, "\r\n"); send_to_char(ch, "\r\n");
if (PRF_FLAGGED(victim, PRF_AFK)) if (PRF_FLAGGED(victim, PRF_AFK))
send_to_char(ch, "%s%s is afk right now, so %s may not respond to communication.%s\r\n", CBGRN(ch, C_NRM), GET_NAME(victim), GET_SEX(victim) == SEX_NEUTRAL ? "it" : (GET_SEX(victim) == SEX_MALE ? "he" : "she"), CCNRM(ch, C_NRM)); send_to_char(ch, "%s%s is afk right now, so %s may not respond to communication.%s\r\n", CBGRN(ch, C_NRM), GET_NAME(victim), HSSH(victim), CCNRM(ch, C_NRM));
} }
else if (hours > 0) else if (hours > 0)
send_to_char(ch, "Last Logon: %s (%d days & %d hours ago.)\r\n", buf, hours/24, hours%24); send_to_char(ch, "Last Logon: %s (%d days & %d hours ago.)\r\n", buf, hours/24, hours%24);
@@ -2430,9 +2430,9 @@ ACMD(do_whois)
} }
if (has_mail(GET_IDNUM(victim))) if (has_mail(GET_IDNUM(victim)))
send_to_char (ch, "They have mail waiting.\r\n"); act("$E$u has mail waiting.", FALSE, ch, 0, victim, TO_CHAR);
else else
send_to_char (ch, "They have no mail waiting.\r\n"); act("$E$u has no mail waiting.", FALSE, ch, 0, victim, TO_CHAR);
if (PLR_FLAGGED(victim, PLR_DELETED)) if (PLR_FLAGGED(victim, PLR_DELETED))
send_to_char (ch, "***DELETED***\r\n"); send_to_char (ch, "***DELETED***\r\n");

View File

@@ -75,7 +75,7 @@ ACMD(do_hit)
if (!*arg) if (!*arg)
send_to_char(ch, "Hit who?\r\n"); send_to_char(ch, "Hit who?\r\n");
else if (!(vict = get_char_vis(ch, arg, NULL, FIND_CHAR_ROOM))) else if (!(vict = get_char_vis(ch, arg, NULL, FIND_CHAR_ROOM)))
send_to_char(ch, "They don't seem to be here.\r\n"); send_to_char(ch, "That player is not here.\r\n");
else if (vict == ch) { else if (vict == ch) {
send_to_char(ch, "You hit yourself...OUCH!.\r\n"); send_to_char(ch, "You hit yourself...OUCH!.\r\n");
act("$n hits $mself, and says OUCH!", FALSE, ch, 0, vict, TO_ROOM); act("$n hits $mself, and says OUCH!", FALSE, ch, 0, vict, TO_ROOM);
@@ -110,7 +110,7 @@ ACMD(do_kill)
send_to_char(ch, "Kill who?\r\n"); send_to_char(ch, "Kill who?\r\n");
} else { } else {
if (!(vict = get_char_vis(ch, arg, NULL, FIND_CHAR_ROOM))) if (!(vict = get_char_vis(ch, arg, NULL, FIND_CHAR_ROOM)))
send_to_char(ch, "They aren't here.\r\n"); send_to_char(ch, "That player is not here.\r\n");
else if (ch == vict) else if (ch == vict)
send_to_char(ch, "Your mother would be so sad.. :(\r\n"); send_to_char(ch, "Your mother would be so sad.. :(\r\n");
else { else {

View File

@@ -403,7 +403,7 @@ ACMD(do_group)
send_to_char(ch, "But you are already part of a group.\r\n"); send_to_char(ch, "But you are already part of a group.\r\n");
return; return;
} else if (!GROUP(vict)) { } else if (!GROUP(vict)) {
send_to_char(ch, "They are not a part of a group!\r\n"); act("$E$u is not a part of a group!", FALSE, ch, 0, vict, TO_CHAR);
return; return;
} else if (!IS_SET(GROUP_FLAGS(GROUP(vict)), GROUP_OPEN)) { } else if (!IS_SET(GROUP_FLAGS(GROUP(vict)), GROUP_OPEN)) {
send_to_char(ch, "That group isn't accepting members.\r\n"); send_to_char(ch, "That group isn't accepting members.\r\n");
@@ -425,7 +425,7 @@ ACMD(do_group)
send_to_char(ch, "Only the group's leader can kick members out.\r\n"); send_to_char(ch, "Only the group's leader can kick members out.\r\n");
return; return;
} else if (GROUP(vict) != GROUP(ch)) { } else if (GROUP(vict) != GROUP(ch)) {
send_to_char(ch, "They are not a member of your group!\r\n"); act("$E$u is not a member of your group!", FALSE, ch, 0, vict, TO_CHAR);
return; return;
} }
send_to_char(ch, "You have kicked %s out of the group.\r\n", GET_NAME(vict)); send_to_char(ch, "You have kicked %s out of the group.\r\n", GET_NAME(vict));

View File

@@ -1490,7 +1490,7 @@ ACMD(do_advance)
return; return;
} }
if (newlevel == GET_LEVEL(victim)) { if (newlevel == GET_LEVEL(victim)) {
send_to_char(ch, "They are already at that level.\r\n"); act("$E is already at that level.", FALSE, ch, 0, victim, TO_CHAR);
return; return;
} }
oldlevel = GET_LEVEL(victim); oldlevel = GET_LEVEL(victim);
@@ -1574,7 +1574,7 @@ ACMD(do_restore)
else if (!(vict = get_char_vis(ch, buf, NULL, FIND_CHAR_WORLD))) else if (!(vict = get_char_vis(ch, buf, NULL, FIND_CHAR_WORLD)))
send_to_char(ch, "%s", CONFIG_NOPERSON); send_to_char(ch, "%s", CONFIG_NOPERSON);
else if (!IS_NPC(vict) && ch != vict && GET_LEVEL(vict) >= GET_LEVEL(ch)) else if (!IS_NPC(vict) && ch != vict && GET_LEVEL(vict) >= GET_LEVEL(ch))
send_to_char(ch, "They don't need your help.\r\n"); act("$E doesn't need your help.", FALSE, ch, 0, vict, TO_CHAR);
else { else {
GET_HIT(vict) = GET_MAX_HIT(vict); GET_HIT(vict) = GET_MAX_HIT(vict);
GET_MANA(vict) = GET_MAX_MANA(vict); GET_MANA(vict) = GET_MAX_MANA(vict);
@@ -1719,7 +1719,7 @@ ACMD(do_dc)
* get disconnected by two different immortals in the same 1/10th of a * get disconnected by two different immortals in the same 1/10th of a
* second, we have the below 'if' check. -gg */ * second, we have the below 'if' check. -gg */
if (STATE(d) == CON_DISCONNECT || STATE(d) == CON_CLOSE) if (STATE(d) == CON_DISCONNECT || STATE(d) == CON_CLOSE)
send_to_char(ch, "They're already being disconnected.\r\n"); act("$E's already being disconnected.", FALSE, ch, 0, d->character, TO_CHAR);
else { else {
/* Remember that we can disconnect people not in the game and that rather /* Remember that we can disconnect people not in the game and that rather
* confuses the code when it expected there to be a character context. */ * confuses the code when it expected there to be a character context. */

View File

@@ -1265,8 +1265,8 @@ static int Crash_load_objs(struct char_data *ch) {
} }
/* Little hoarding check. -gg 3/1/98 */ /* Little hoarding check. -gg 3/1/98 */
mudlog(NRM, MAX(LVL_GOD, GET_INVIS_LEV(ch)), TRUE, "%s (level %d) has %d %s (max %d).", mudlog(NRM, MAX(LVL_GOD, GET_INVIS_LEV(ch)), TRUE, "%s (level %d) has %d object%s (max %d).",
GET_NAME(ch), GET_LEVEL(ch), num_objs, num_objs > 1 ? "objects" : "object", CONFIG_MAX_OBJ_SAVE); GET_NAME(ch), GET_LEVEL(ch), num_objs, num_objs != 1 ? "s" : "", CONFIG_MAX_OBJ_SAVE);
fclose(fl); fclose(fl);

View File

@@ -895,6 +895,7 @@ ACMD(do_oasis_prefedit)
struct descriptor_data *d; struct descriptor_data *d;
struct char_data *vict; struct char_data *vict;
char *buf3; char *buf3;
char buf[MAX_STRING_LENGTH];
char buf1[MAX_STRING_LENGTH]; char buf1[MAX_STRING_LENGTH];
char buf2[MAX_STRING_LENGTH]; char buf2[MAX_STRING_LENGTH];
@@ -939,7 +940,8 @@ ACMD(do_oasis_prefedit)
if (ch == vict) if (ch == vict)
send_to_char(ch, "Your preferences are currently being edited by %s.\r\n", PERS(d->character, ch)); send_to_char(ch, "Your preferences are currently being edited by %s.\r\n", PERS(d->character, ch));
else else
send_to_char(ch, "Their preferences are currently being edited by %s.\r\n", PERS(d->character, ch)); sprintf(buf, "$S$u preferences are currently being edited by %s.", PERS(d->character, ch));
act(buf, FALSE, ch, 0, vict, TO_CHAR);
return; return;
} }
} }

View File

@@ -131,10 +131,9 @@ ASPELL(spell_summon)
if (!IS_NPC(victim) && !PRF_FLAGGED(victim, PRF_SUMMONABLE) && if (!IS_NPC(victim) && !PRF_FLAGGED(victim, PRF_SUMMONABLE) &&
!PLR_FLAGGED(victim, PLR_KILLER)) { !PLR_FLAGGED(victim, PLR_KILLER)) {
send_to_char(victim, "%s just tried to summon you to: %s.\r\n" send_to_char(victim, "%s just tried to summon you to: %s.\r\n"
"%s failed because you have summon protection on.\r\n" "This failed because you have summon protection on.\r\n"
"Type NOSUMMON to allow other players to summon you.\r\n", "Type NOSUMMON to allow other players to summon you.\r\n",
GET_NAME(ch), world[IN_ROOM(ch)].name, GET_NAME(ch), world[IN_ROOM(ch)].name);
(ch->player.sex == SEX_MALE) ? "He" : "She");
send_to_char(ch, "You failed because %s has summon protection on.\r\n", GET_NAME(victim)); send_to_char(ch, "You failed because %s has summon protection on.\r\n", GET_NAME(victim));
mudlog(BRF, LVL_IMMORT, TRUE, "%s failed summoning %s to %s.", GET_NAME(ch), GET_NAME(victim), world[IN_ROOM(ch)].name); mudlog(BRF, LVL_IMMORT, TRUE, "%s failed summoning %s to %s.", GET_NAME(ch), GET_NAME(victim), world[IN_ROOM(ch)].name);