POST_MAI.C
LIB3/D/HOME/CITY/POSTOFFI/POST_MAI.C · 914 B
From the archive nm4dos.zip
Download the archive « Back to the archive contents
inherit "/std/room";
#include "path.h"
void setup() {
set_short("Mailing room");
set_light(50);
set_zone("post office");
set_long("The mailing room is a large chamber full of wobbly "+
"desks and chairs, at which you can write messages or read "+
"your mail.\n");
add_item("chair", "You test out a chair, and yes, it does wobble alarmingly.\n");
add_item( ({"desk", "table"}),
"The desks all have small notes on them saying :-\n\n"+
" 'mail <name>' to mail somebody.\n 'read' to read your mail.\n");
add_exit("south", "post", "door");
} /* setup() */
void init() {
::init();
add_action("do_mail", "mail");
add_action("do_mail", "read", -1);
} /* init() */
int do_mail(string str) {
return (int)"/obj/handlers/mail_track"->mail(str);
} /* do_mail() */
int send_message(string str)
{
return (int)"/d/home/city/postoffice/post"->send_message(str);
}