mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-22 17:06:10 +01:00
MAJOR UPDATE: Admin Levels split from Mortal Levels
This commit is contained in:
parent
2b30509371
commit
dcba9d6441
77 changed files with 2882 additions and 2067 deletions
16
src/oedit.c
16
src/oedit.c
|
|
@ -113,7 +113,7 @@ ACMD(do_oasis_oedit)
|
|||
|
||||
/* Give the descriptor an OLC structure. */
|
||||
if (d->olc) {
|
||||
mudlog(BRF, LVL_IMMORT, TRUE,
|
||||
mudlog(BRF, ADMLVL_IMMORT, TRUE,
|
||||
"SYSERR: do_oasis: Player already had olc structure.");
|
||||
free(d->olc);
|
||||
}
|
||||
|
|
@ -144,7 +144,7 @@ ACMD(do_oasis_oedit)
|
|||
if (save) {
|
||||
send_to_char(ch, "Saving all objects in zone %d.\r\n",
|
||||
zone_table[OLC_ZNUM(d)].number);
|
||||
mudlog(CMP, MAX(LVL_BUILDER, GET_INVIS_LEV(ch)), TRUE,
|
||||
mudlog(CMP, MAX(ADMLVL_BUILDER, GET_INVIS_LEV(ch)), TRUE,
|
||||
"OLC: %s saves object info for zone %d.", GET_NAME(ch),
|
||||
zone_table[OLC_ZNUM(d)].number);
|
||||
|
||||
|
|
@ -173,7 +173,7 @@ ACMD(do_oasis_oedit)
|
|||
SET_BIT_AR(PLR_FLAGS(ch), PLR_WRITING);
|
||||
|
||||
/* Log the OLC message. */
|
||||
mudlog(CMP, LVL_IMMORT, TRUE, "OLC: %s starts editing zone %d allowed zone %d",
|
||||
mudlog(CMP, ADMLVL_IMMORT, TRUE, "OLC: %s starts editing zone %d allowed zone %d",
|
||||
GET_NAME(ch), zone_table[OLC_ZNUM(d)].number, GET_OLC_ZONE(ch));
|
||||
}
|
||||
|
||||
|
|
@ -448,7 +448,7 @@ static void oedit_disp_val1_menu(struct descriptor_data *d)
|
|||
oedit_disp_menu(d);
|
||||
break;
|
||||
default:
|
||||
mudlog(BRF, LVL_BUILDER, TRUE, "SYSERR: OLC: Reached default case in oedit_disp_val1_menu()!");
|
||||
mudlog(BRF, ADMLVL_BUILDER, TRUE, "SYSERR: OLC: Reached default case in oedit_disp_val1_menu()!");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -695,7 +695,7 @@ void oedit_parse(struct descriptor_data *d, char *arg)
|
|||
case 'y':
|
||||
case 'Y':
|
||||
oedit_save_internally(d);
|
||||
mudlog(CMP, MAX(LVL_BUILDER, GET_INVIS_LEV(d->character)), TRUE,
|
||||
mudlog(CMP, MAX(ADMLVL_BUILDER, GET_INVIS_LEV(d->character)), TRUE,
|
||||
"OLC: %s edits obj %d", GET_NAME(d->character), OLC_NUM(d));
|
||||
if (CONFIG_OLC_SAVE) {
|
||||
oedit_save_to_disk(real_zone_by_thing(OLC_NUM(d)));
|
||||
|
|
@ -924,7 +924,7 @@ void oedit_parse(struct descriptor_data *d, char *arg)
|
|||
break;
|
||||
|
||||
case OEDIT_LEVEL:
|
||||
GET_OBJ_LEVEL(OLC_OBJ(d)) = LIMIT(atoi(arg), 0, LVL_IMPL);
|
||||
GET_OBJ_LEVEL(OLC_OBJ(d)) = LIMIT(atoi(arg), 0, CONFIG_MAX_LEVEL);
|
||||
break;
|
||||
|
||||
case OEDIT_PERM:
|
||||
|
|
@ -1091,7 +1091,7 @@ void oedit_parse(struct descriptor_data *d, char *arg)
|
|||
int counter;
|
||||
|
||||
/* add in check here if already applied.. deny builders another */
|
||||
if (GET_LEVEL(d->character) < LVL_IMPL) {
|
||||
if (!IS_ADMIN(d->character, ADMLVL_IMPL)) {
|
||||
for (counter = 0; counter < MAX_OBJ_AFFECT; counter++) {
|
||||
if (OLC_OBJ(d)->affected[counter].location == number) {
|
||||
write_to_output(d, "Object already has that apply.");
|
||||
|
|
@ -1197,7 +1197,7 @@ void oedit_parse(struct descriptor_data *d, char *arg)
|
|||
write_to_output(d, "Please answer 'Y' or 'N': ");
|
||||
return;
|
||||
default:
|
||||
mudlog(BRF, LVL_BUILDER, TRUE, "SYSERR: OLC: Reached default case in oedit_parse()!");
|
||||
mudlog(BRF, ADMLVL_BUILDER, TRUE, "SYSERR: OLC: Reached default case in oedit_parse()!");
|
||||
write_to_output(d, "Oops...\r\n");
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue