chest.c
ds2.4.1/lib/realms/template/area/obj/chest.c · 993 B
From the archive ds2.4.1.zip
Download the archive « Back to the archive contents
#include <lib.h>
inherit LIB_STORAGE;
void create() {
::create();
SetKeyName("chest");
SetId(({"chest","wooden chest"}));
SetShort("a wooden chest");
SetLong("This is a sturdy wooden chest used to store valuable items.\n"+
"It is an example of an opaque container.");
SetInventory(([
"/domains/town/armor/collar" : 1,
"/domains/default/armor/badge" : 1,
"/domains/default/armor/wizard_hat" : 1,
"/domains/default/obj/manual" : 1,
"/secure/obj/machine" : 1,
"/domains/default/armor/robe" : 1,
"/domains/default/obj/meter" : 1,
"/secure/obj/control" : 1,
"/secure/obj/memo" : 1,
"/secure/obj/staff" : 1,
"/domains/default/obj/pinger" : 1,
"/secure/obj/medtric" : 1,
"/secure/obj/glasses" : 1,
]));
SetMass(2000);
SetBaseCost(50);
SetMaxCarry(10000);
SetPreventPut("You cannot put this in there!");
SetCanClose(1);
SetClosed(1);
}
mixed CanGet(object ob) { return "The chest does not budge.";}
void init(){
::init();
}