Re: [Question][Newbie] Dig

From: Jeremy Overbay (jeremy@tileandbath.com)
Date: 04/23/01


> D'oh! The problem was I was checking the zone numbers inside the if
> statement to make a new room, not to link existing rooms, problem fixed!
>

another way you could have done this...is to assign zone permissions and
have dig check for them. that way if a builder has access to only 1
zone...theoretically...they couldn't link to another right?

here is what I use:

if ((GET_LEVEL(ch) < LVL_IMPL) && (iroom/100 != GET_OLC_ZONE(ch))) {
    send_to_char("You do not have permission to edit this zone.\r\n",
ch);
    return;
  }

it seems to work pretty well. although it hasn't recieved extensive testing
as of yet.

l8r
j.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST