magic_shop2.c

ds2.1.1/lib/domains/town/room/magic_shop2.c · 642 B

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

#include <lib.h>
inherit LIB_ROOM;

static void create() {
    room::create();
    SetClimate("indoors");
    SetAmbientLight(30);
    SetShort("The Magic Shop Storeroom");
    SetLong("This is the storeroom where magical items are kept."); 
    SetExits( ([
	"east" : "/domains/town/room/magic_shop",
      ]) );
    SetObviousExits("e");
    SetInventory( ([
	"/domains/town/obj/omni" : 1,
      ]) );
}
int CanReceive(object ob) {
    if( playerp(ob) && !creatorp(ob)  && !present("testchar badge",ob) ) {
	message("info","The storeroom is for authorized personnel only.",ob);
	return 0;
    }
    return 1;
}
void init(){
    ::init();
}

Site Stats

Snippets: 1791
Codebases: 571