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