42 lines
1.4 KiB
C
42 lines
1.4 KiB
C
inherit "/lib/std/room";
|
|
|
|
void create() {
|
|
::create();
|
|
SetProperties( ([ "light" : 1, "no castle" : 1 ]) );
|
|
SetShort( "the Nightmare Inn" );
|
|
SetLong( "The hallway is very quiet, you can barely hear the whisper "
|
|
"of your feet against the rich carpet. Large wooden doors for each room "
|
|
"stand both to your left and right, trimmed with gold. Small lanterns "
|
|
"hang every 5 feet or so, giving off a gentle glow, lighting the way." );
|
|
SetItems( ([ "hallway" : "The hallway is very quiet.",
|
|
"carpet" : "It is a deep burgundy colour.",
|
|
({ "lanterns", "lanter" }) :
|
|
"The lanterns are gold with glass panes.",
|
|
"doors" : "The doors are large oaken barriers.",
|
|
]) );
|
|
SetExits( ([ "north" : "/domains/Praxis/hall3",
|
|
"south" : "/domains/Praxis/hall",
|
|
"east" : "/domains/Praxis/inn103",
|
|
"west" : "/domains/Praxis/inn104"
|
|
]) );
|
|
//set_pre_exit_functions( ({ "east" , "west" }), ({ "room_103", "room_104" }) );
|
|
}
|
|
|
|
int room_103() {
|
|
if(present("/domains/Praxis/hotel"->query_key_id(103),this_player()))
|
|
return 1;
|
|
write( "You cannot go in there!");
|
|
return 0;
|
|
}
|
|
|
|
int room_104() {
|
|
if(present("/domains/Praxis/hotel"->query_key_id(104),this_player()))
|
|
return 1;
|
|
write( "You cannot go in there!");
|
|
return 0;
|
|
}
|
|
|
|
void init(){
|
|
::init();
|
|
}
|