mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-30 08:57:20 +02:00
acaudit migration to audit command
This commit is contained in:
parent
3344074ea2
commit
1aa14abdb4
5 changed files with 21 additions and 8 deletions
|
|
@ -6186,9 +6186,20 @@ static const char *slot_name_from_index(int idx) {
|
|||
}
|
||||
|
||||
/* Wizard command: scan armor prototypes, validate per-piece fields (compact, paged, 25 lines) */
|
||||
ACMD(do_acaudit)
|
||||
ACMD(do_audit)
|
||||
{
|
||||
int found = 0, warned = 0;
|
||||
char arg[MAX_INPUT_LENGTH];
|
||||
|
||||
one_argument(argument, arg);
|
||||
if (!*arg) {
|
||||
send_to_char(ch, "Audit what?\r\n");
|
||||
return;
|
||||
}
|
||||
if (!is_abbrev(arg, "ac")) {
|
||||
send_to_char(ch, "Usage: audit ac\r\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if (IS_NPC(ch) || GET_LEVEL(ch) < LVL_IMMORT) {
|
||||
send_to_char(ch, "You lack the authority to use this.\r\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue