blob: cb2fdd312ac16436c30d61eb2c0acde0c0124701 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001/* Neue std/post
2 (C) 1993 by Loco
3*/
4#pragma strong_types
5#pragma save_types
6#pragma range_check
7#pragma no_clone
MG Mud User88f12472016-06-24 23:31:02 +02008
9inherit "/std/room";
10
11#include "/mail/post.h"
12#include <properties.h>
13#include <rooms.h>
14
15void create() {
16 int i;
17 (::create());
18 SetProp(P_INT_SHORT,"Postamt");
19 SetProp(P_INT_LONG,"\
20Dies ist ein Testpostamt.\n\
21Von hier aus kannst Du Briefe an Deine Mitspieler schicken und Briefe von\n\
22ihnen lesen. Wenn Du das willst, tippe 'post' oder 'mail',\n\
23bzw. 'mail <spieler>'.\n");
24 SetProp( P_LIGHT, 1 );
25 AddCmd("post","do_mail");
26 AddCmd("mail","do_mail");
27 SetProp(P_INDOORS,1);
28 for (i=0;i<NRCABINS;++i) AddItem(MAILCABIN,REFRESH_REMOVE);
29 AddItem(COUNTER,REFRESH_REMOVE);
30}
31
32int do_mail(string str) {
33 object mailer;
34 if (this_interactive()!=this_player()) return 0;
35 mailer=clone_object(MAILER);
36 mailer->SetOfficeName(short());
37 mailer->do_mail(str);
38 return 1;
39}
40
41