Zesstra | 25387d9 | 2017-02-03 20:20:56 +0100 | [diff] [blame^] | 1 | /* Neue std/post |
| 2 | (C) 1993 by Loco |
| 3 | */ |
| 4 | |
| 5 | inherit "/std/room"; |
| 6 | |
| 7 | #include "/mail/post.h" |
| 8 | #include <properties.h> |
| 9 | #include <rooms.h> |
| 10 | |
| 11 | void create() { |
| 12 | int i; |
| 13 | (::create()); |
| 14 | SetProp(P_INT_SHORT,"Postamt"); |
| 15 | SetProp(P_INT_LONG,"\ |
| 16 | Dies ist ein Testpostamt.\n\ |
| 17 | Von hier aus kannst Du Briefe an Deine Mitspieler schicken und Briefe von\n\ |
| 18 | ihnen lesen. Wenn Du das willst, tippe 'post' oder 'mail',\n\ |
| 19 | bzw. '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 | |
| 31 | int 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 | |