Ein Kanister als Lcontainer
![]()
inherit "lcontainer"; #include <properties.h> #include <lcontainer.h> void create() { if (!clonep()) return; ::create(); AddId(({"kanister","benzinkanister"}),({"kanister","benzinkanister"})); SetProp(P_NAME, "Benzinkanister"); SetProp(P_PLURAL, "Benzinkanister"); SetProp(P_LONG, "Der Kanister ist schmutzig und aus Kunststoff."); SetProp(P_WEIGHT, 200); SetProp(P_LCNT_MAXCAPA, 5000); SetProp(P_VALUE, 100); // P_TRANSPARENT,0 ist Standard SetProp(P_MAX_WEIGHT, 0); // Oeffnung zu klein SetProp(P_GENDER, MALE); } |
| Start » Magierhandbuch » Dokumentation » Programmierbeispiele » Kanister | |
|
| |