blob: 6b8278edbf98a365894ee4a14e912b40fceda68e [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001inherit "std/thing";
2#include <properties.h>
3#include <language.h>
4
5void create()
6{
7 // Laeden erwarten Short und Value in der Blueprint.
8 SetProp(P_SHORT, "Ein Lolli");
9 SetProp(P_VALUE, 5);
10
11 if (!clonep(this_object())) return;
12 ::create();
13 SetProp(P_SHORT, "Ein Lolli");
14 SetProp(P_NAME, "Lolli");
15 SetProp(P_GENDER, MALE);
16 SetProp(P_LONG, "Ein leckerer Lolli, Du kannst ihn schlecken.\n");
17 AddId("lolli");
18 SetProp(P_WEIGHT, 10);
19 AddCmd( ({"schleck","schlecke","leck","lecke"}), "schleck" );
20}
21
22int schleck(string str)
23{
24 notify_fail("Was moechtest Du schlecken?\n");
25 if (!str || !id(str)) return 0;
26 write("Du schleckst an Deinem Lolli. Er schmeckt ausgezeichnet.\n");
27 say(this_player()->name()+" schleckt an "+this_player()->QueryPossPronoun(this_object(), WEM)+" Lolli.\n");
28 return 1;
29}