mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-22 20:26:33 +01:00
Remove qsay
This commit is contained in:
parent
f5cae94e14
commit
1cf23d76b0
3 changed files with 5 additions and 13 deletions
|
|
@ -528,6 +528,7 @@ ACMD(do_gen_comm)
|
|||
}
|
||||
}
|
||||
|
||||
/* Currently used for qecho only */
|
||||
ACMD(do_qcomm)
|
||||
{
|
||||
if (!PRF_FLAGGED(ch, PRF_QUEST)) {
|
||||
|
|
@ -547,18 +548,11 @@ ACMD(do_qcomm)
|
|||
|
||||
if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_NOREPEAT))
|
||||
send_to_char(ch, "%s", CONFIG_OK);
|
||||
else if (subcmd == SCMD_QSAY) {
|
||||
snprintf(buf, sizeof(buf), "You quest-say, '%s'", argument);
|
||||
act(buf, FALSE, ch, 0, argument, TO_CHAR);
|
||||
} else
|
||||
else
|
||||
act(argument, FALSE, ch, 0, argument, TO_CHAR);
|
||||
|
||||
if (subcmd == SCMD_QSAY)
|
||||
snprintf(buf, sizeof(buf), "$n quest-says, '%s'", argument);
|
||||
else {
|
||||
strlcpy(buf, argument, sizeof(buf));
|
||||
mudlog(CMP, MAX(LVL_BUILDER, GET_INVIS_LEV(ch)), TRUE, "(GC) %s qechoed: %s", GET_NAME(ch), argument);
|
||||
}
|
||||
strlcpy(buf, argument, sizeof(buf));
|
||||
mudlog(CMP, MAX(LVL_BUILDER, GET_INVIS_LEV(ch)), TRUE, "(GC) %s qechoed: %s", GET_NAME(ch), argument);
|
||||
for (i = descriptor_list; i; i = i->next)
|
||||
if (STATE(i) == CON_PLAYING && i != ch->desc && PRF_FLAGGED(i->character, PRF_QUEST))
|
||||
act(buf, 0, ch, 0, i->character, TO_VICT | TO_SLEEP);
|
||||
|
|
|
|||
|
|
@ -33,8 +33,7 @@ ACMD(do_gen_comm);
|
|||
#define SCMD_GEMOTE 4
|
||||
/* do_qcomm */
|
||||
ACMD(do_qcomm);
|
||||
#define SCMD_QSAY 0
|
||||
#define SCMD_QECHO 1
|
||||
#define SCMD_QECHO 0
|
||||
/* do_spec_com */
|
||||
ACMD(do_spec_comm);
|
||||
#define SCMD_WHISPER 0
|
||||
|
|
|
|||
|
|
@ -247,7 +247,6 @@ cpp_extern const struct command_info cmd_info[] = {
|
|||
{ "quest" , "que" , POS_DEAD , do_quest , 0, 0 },
|
||||
{ "qui" , "qui" , POS_DEAD , do_quit , 0, 0 },
|
||||
{ "quit" , "quit" , POS_DEAD , do_quit , 0, SCMD_QUIT },
|
||||
{ "qsay" , "qsay" , POS_RESTING , do_qcomm , 0, SCMD_QSAY },
|
||||
|
||||
{ "reply" , "r" , POS_SLEEPING, do_reply , LVL_IMMORT, 0 },
|
||||
{ "rest" , "res" , POS_RESTING , do_rest , 0, 0 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue