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/hall4",
        "south" : "/domains/Praxis/hall2",
        "east" : "/domains/Praxis/inn105",
        "west" : "/domains/Praxis/inn106"
      ]) );
    //set_pre_exit_functions( ({ "east", "west" }), ({"inn_105", "inn_106"}) );
}

int room_105() {
    if(present((string)"/domains/Praxis/hotel"->query_key_id(105),this_player()))
        return 1;
    write( "You cannot go in there!");
    return 0;
}

int room_106() {
    if(present((string)"/domains/Praxis/hotel"->query_key_id(106),this_player()))
        return 1;
    write( "You cannot go in there!");
    return 0;
}















