blob: 74e2877d127d26b055b7d64e538d986b6f666f2d [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001
2 AddCmd( ({ "betritt", "betrete" }), "betritt");
3}
4
5string long()
6{
7 string door;
8
9 door = haustuer::long();
10
11 return QueryProp(P_LONG)+door;
12}
13
14static int betritt(string str)
15{
16 notify_fail("Was moechtest Du betreten?\n");
17
18 if (!str || !id(str))
19 return 0;
20
21 if (Query(H_DOORSTAT) & D_CLOSED) {
22 printf("%s von %s ist zu.\n", capitalize(name(WER,1)), capitalize(owner));
23 return 1;
24 }
25