mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-23 18:50:13 +01:00
Added sanity checks to zedit new. (Can no longer make zones that include negative vnums, also get the proper message when you have 3 of the 4 arguments.)
You can now put objects in and remove objects from closed containers as an imm with nohassle. You can now walk through closed doors as an imm with nohassle on. You can now open locked containers and doors without unlocking them as an immortal with nohassle. You can now examine the contents of closed containers as an imm with nohassle. Made zedit new add the .qst file to the index file. Fixed various qedit related bugs. (thanks Mirad and Jamdog) Removed deprecated "murder" code. When pkill is on players can now order charmed mobs to attack other players. Fixed 'toggle automap'. Added a sacrifice command instead of their being autosac only. Also replaced Zizazat's name with more generic "The Gods" as it had obviously been ported from CWG previously. Fixed Warning relating to Automap.
This commit is contained in:
parent
d568dd3d42
commit
22ca85c4a5
16 changed files with 54 additions and 48 deletions
17
src/zedit.c
17
src/zedit.c
|
|
@ -39,7 +39,8 @@ ACMD(do_oasis_zedit)
|
|||
{
|
||||
int number = NOWHERE, save = 0, real_num;
|
||||
struct descriptor_data *d;
|
||||
char *buf3;
|
||||
char *stop;
|
||||
char sbot[MAX_STRING_LENGTH];
|
||||
char buf1[MAX_STRING_LENGTH];
|
||||
char buf2[MAX_STRING_LENGTH];
|
||||
|
||||
|
|
@ -48,7 +49,7 @@ ACMD(do_oasis_zedit)
|
|||
return;
|
||||
|
||||
/* Parse any arguments. */
|
||||
buf3 = two_arguments(argument, buf1, buf2);
|
||||
stop = one_argument(two_arguments(argument, buf1, buf2), sbot);
|
||||
|
||||
/* If no argument was given, use the zone the builder is standing in. */
|
||||
if (!*buf1)
|
||||
|
|
@ -73,16 +74,16 @@ ACMD(do_oasis_zedit)
|
|||
return;
|
||||
}
|
||||
} else if (GET_LEVEL(ch) >= LVL_IMPL) {
|
||||
if (str_cmp("new", buf1) || !buf3 || !*buf3)
|
||||
if (str_cmp("new", buf1) || !stop || !*stop)
|
||||
send_to_char(ch, "Format: zedit new <zone number> <bottom-room> "
|
||||
"<upper-room>\r\n");
|
||||
else {
|
||||
char sbot[MAX_INPUT_LENGTH], stop[MAX_INPUT_LENGTH];
|
||||
if (atoi(stop) < 0 || atoi(sbot) < 0) {
|
||||
send_to_char(ch, "Zones cannot contain negative vnums.\r\n");
|
||||
return;
|
||||
}
|
||||
room_vnum bottom, top;
|
||||
|
||||
skip_spaces(&buf3);
|
||||
two_arguments(buf3, sbot, stop);
|
||||
|
||||
number = atoidx(buf2);
|
||||
if (number < 0)
|
||||
number = NOWHERE;
|
||||
|
|
@ -102,7 +103,7 @@ ACMD(do_oasis_zedit)
|
|||
}
|
||||
}
|
||||
|
||||
/* If a numeric argumentwas given, retrieve it. */
|
||||
/* If a numeric argument was given, retrieve it. */
|
||||
if (number == NOWHERE)
|
||||
number = atoidx(buf1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue