The Following is a piece of code I wrote one day when I was
bored. It allows to have a mailroom where all note related
activities to go on.

In merc.h put this(XXXX means the vnum of the room):
#define ROOM_VNUM_MAILROOM XXXX 

in note.c under void do_unread put:
if(ch->in_room != get_room_index(ROOM_VNUM_MAILROOM))
{
send_to_char("You need to be in the MailRoom to check for new messages\n\r", ch);
return;
}

then under the following commands, do_note/do_change
do_wedding/do_idea/do_news put this:

if(ch->in_room != get_room_index(ROOM_VNUM_MAILROOM))
{
send_to_char("You need to be in the MailRoom to check or write new messages\n\r",ch);
return;
}

make sure this goes before the parse_note check in each function

EXTRAS: Make sure to remove the do_unread(ch,""); in comm.c
and build a room for the MAILROOM

THat is all if you have any improvements email salem@limpbizkit.com

