src/oasis.c
int can_edit_zone(struct char_data *ch, zone_rnum rnum)
{
  /* no access if called with bad arguments */
  if (!ch->desc || IS_NPC(ch) || rnum == NOWHERE)
    return FALSE;

  /* always access if ch is high enough level */
  if (GET_LEVEL(ch) >= LVL_GRGOD)
    return (TRUE);
  
  /* always access if a player have helped build the zone in the first place */
  if (is_name(GET_NAME(ch), zone_table[rnum].builders))
    return (FALSE);
  
  /* no access if you haven't been assigned a zone */
  if (GET_OLC_ZONE(ch) == NOWHERE)
    return FALSE;

  /* no access if you're not at least LVL_BUILDER */
  if (GET_LEVEL(ch) < LVL_BUILDER)
    return FALSE;

  /* always access if you're assigned to this zone */
  if (real_zone(GET_OLC_ZONE(ch)) == rnum)
    return TRUE;

  return (FALSE);
}
/******************************************************************************/
/**                                                                          **/
/** Function       : can_edit_zone()                                         **/
/**                                                                          **/
/** Description    : Checks to see if a builder can modify the specified     **/
/**                  zone.                                                   **/
/**                                                                          **/
/** Arguments      :                                                         **/
/**   ch                                                                     **/
/**     The character requesting access to modify this zone.                 **/
/**   rnum                                                                   **/
/**     The real number of the zone attempted to be modified.                **/
/**                                                                          **/
/** Returns        : Returns TRUE if the builder has access, otherwise       **/
/**                  FALSE.                                                  **/
/**                                                                          **/
/******************************************************************************/


Description    : Checks to see if a builder can modify the specified
zone.

Arguments      :
ch
The character requesting access to modify this zone.
rnum
The real number of the zone attempted to be modified.

Returns        : Returns TRUE if the builder has access, otherwise
FALSE.
Description : Checks to see if a builder can modify the specified zone . Arguments : ch The character requesting access to modify this zone . rnum The real number of the zone attempted to be modified . Returns : Returns TRUE if the builder has access otherwise FALSE .
int can_edit_zone(struct char_data *ch, zone_rnum rnum)
{
  if (!ch->desc || IS_NPC(ch) || rnum == NOWHERE)
    return FALSE;
  if (GET_LEVEL(ch) >= LVL_GRGOD)
    return (TRUE);
  if (is_name(GET_NAME(ch), zone_table[rnum].builders))
    return (FALSE);
  if (GET_OLC_ZONE(ch) == NOWHERE)
    return FALSE;
  if (GET_LEVEL(ch) < LVL_BUILDER)
    return FALSE;
  if (real_zone(GET_OLC_ZONE(ch)) == rnum)
    return TRUE;
  return (FALSE);
}
int can_edit_zone ( struct char_data * ch , zone_rnum rnum ) { if ( ! ch -> desc || IS_NPC ( ch ) || rnum == NOWHERE ) return FALSE ; if ( GET_LEVEL ( ch ) >= LVL_GRGOD ) return ( TRUE ) ; if ( is_name ( GET_NAME ( ch ) , zone_table [ rnum ] . builders ) ) return ( FALSE ) ; if ( GET_OLC_ZONE ( ch ) == NOWHERE ) return FALSE ; if ( GET_LEVEL ( ch ) < LVL_BUILDER ) return FALSE ; if ( real_zone ( GET_OLC_ZONE ( ch ) ) == rnum ) return TRUE ; return ( FALSE ) ; }
Function       : can_edit_zone()
Function : can_edit_zone ()
/* no access if called with bad arguments */ /* always access if ch is high enough level */ /* always access if a player have helped build the zone in the first place */ /* no access if you haven't been assigned a zone */ /* no access if you're not at least LVL_BUILDER */ /* always access if you're assigned to this zone */