here is my dig so far.. I still not finished.. but I am wondering how I
would take the first agument.. ioe. dig south 1204
how would I let south be an arg instead of the actual dir number.. just
like a switch(*buf) case s: case south: 3; or something? anyways.. thanks
in advance for assistance.. and btw, I'll post the final copy when its
done.. here is wha I have sof ar
ACMD(do_dig)
{
struct room_data *to_room, *from_room = ch->in_room;
two_arguments(argument, buf, buf2);
if(!*arg) {
send_to_char("Usage: dig <dir> <room>\r\n", ch);
return;
}
to_room = *buf;
if(GET_OLC_ZONE(ch) != (*arg/100)) {
send_to_char("You don't have permission to edit this zone.\r\n", ch);
return;
}
world[ch->in_room].dir_option[dir]->to_room = v_to_room;
world[ch->in_room].dir_option[rev_dir(dir)]->to_room = v_from_room;
}
/---------\ /--------/
/ /XXXXXXX\ \ / ////// /
/ ///XXXXX\\\ \ / ////// /
/ /////XXX\\\\\ \/ ////// / mud.penguin.net 4000
/ ////// \\\\\\\ ////// / Brian Williams
/ ////// /\ \\\\\XXX///// / bmw@efn.org
/ ////// / \ \\\XXXXX/// /
/ ////// / \ \XXXXXXX/ / /\ /_ |_| /\ |/
/--------/ \---------/ /--\ / | | /--\ |\
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
+-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST