mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-12 02:54:20 +01:00
- Removed the extra space when you have no title (thanks Rhade).
- Added "Top of File" to the do_file command (thanks Rhade). - Removed socials from wizhelp. - Changed zlist with no arg to list zones. - Wiznet can now be seen while in OLC, again (thanks Fizban). - Updated socials, help, changelog, world, and news. --Rumble
This commit is contained in:
parent
916281ecb0
commit
787c392e0a
11 changed files with 1637 additions and 1596 deletions
|
|
@ -2095,6 +2095,9 @@ ACMD(do_commands)
|
|||
if (!wizhelp && socials != (complete_cmd_info[i].command_pointer == do_action || complete_cmd_info[i].command_pointer == do_insult))
|
||||
continue;
|
||||
|
||||
if (wizhelp && complete_cmd_info[i].command_pointer == do_action)
|
||||
continue;
|
||||
|
||||
send_to_char(ch, "%-11s%s", complete_cmd_info[i].command, no++ % 7 == 0 ? "\r\n" : "");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@ ACMD(do_title)
|
|||
send_to_char(ch, "Sorry, titles can't be longer than %d characters.\r\n", MAX_TITLE_LENGTH);
|
||||
else {
|
||||
set_title(ch, argument);
|
||||
send_to_char(ch, "Okay, you're now %s %s.\r\n", GET_NAME(ch), GET_TITLE(ch));
|
||||
send_to_char(ch, "Okay, you're now %s%s%s.\r\n", GET_NAME(ch), *GET_TITLE(ch) ? " " : "", GET_TITLE(ch));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1010,6 +1010,8 @@ ACMD(do_file)
|
|||
|
||||
len = snprintf(buf, sizeof(buf), "Last %d lines of %s:\r\n", req_lines, fields[l].file);
|
||||
|
||||
if (req_lines == num_lines)
|
||||
len += snprintf(buf + len, sizeof(buf) - len, "Top of file.\r\n");
|
||||
get_line(req_file,line);
|
||||
while (!feof(req_file)) {
|
||||
cur_line++;
|
||||
|
|
|
|||
|
|
@ -2221,12 +2221,12 @@ ACMD(do_wiznet)
|
|||
}
|
||||
|
||||
for (d = descriptor_list; d; d = d->next) {
|
||||
if ((STATE(d) == CON_PLAYING) && (GET_LEVEL(d->character) >= level) &&
|
||||
if (IS_PLAYING(d) && (GET_LEVEL(d->character) >= level) &&
|
||||
(!PRF_FLAGGED(d->character, PRF_NOWIZ))
|
||||
&& (d != ch->desc || !(PRF_FLAGGED(d->character, PRF_NOREPEAT)))) {
|
||||
send_to_char(d->character, "%s", CCCYN(d->character, C_NRM));
|
||||
send_to_char(d->character, "%s", buf1);
|
||||
new_hist_messg(d, buf1);
|
||||
send_to_char(d->character, "%s", buf1);
|
||||
new_hist_messg(d, buf1);
|
||||
send_to_char(d->character, "%s", CCNRM(d->character, C_NRM));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2744,7 +2744,7 @@ void act(const char *str, int hide_invisible, struct char_data *ch,
|
|||
|
||||
/* this is a hack as well - DG_NO_TRIG is 256 -- Welcor */
|
||||
/* If the bit is set, unset dg_act_check, thus the ! below */
|
||||
if ((dg_act_check = !IS_SET(type, DG_NO_TRIG)))
|
||||
if (!(dg_act_check = !IS_SET(type, DG_NO_TRIG)))
|
||||
REMOVE_BIT(type, DG_NO_TRIG);
|
||||
|
||||
/* And this too.. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue