inherit "/d/Seroth/std/room";
#include "defs.h"


void
create_seroth_room()
{
	set_short("Sypialnia.");
	set_long("Mala przestronna grota pokryta w calosci skorami ze zwierzyn wszelakich. Z pewnoscia "+
	         "mozesz sobie przenocowac tutaj.\n");
	add_exit(RPATH + "srodek", "polnocny-wschod");
}


void
init()
{
  ::init();
  add_action("nocuj", "nocuj");
}

int
nocuj(string str)
{
notify_fail("Nocuj tutaj?\n");
if ( str == "tutaj" )
{
  notify_fail("Nie jestes wilkolakiem!!\n");
  if (!MASTER_ENG->query_czlonek(TP)) return 0;
  setuid();
  seteuid(getuid());
  if (TP->set_default_start_location(RPATH + "sypialnia"))
   {
      write("Od teraz bedziesz sie tutaj budzil.\n");
      return 1;
   }
   notify_fail("Cos sie nieudalo!\n");
   return 0;
}
return 0;
}
