inherit "/d/Imperium/std/room";
#include "defs.h"
create_imperium_room()
{
   set_short("Sypialnia Najemnikow");
   set_long("Sypialnia Najemnikow. Mozesz tu nocowac.\n");
  add_exit(MERC_LOK + "pokprzyjec.c", "wschod", 0, 0);
  add_exit(MERC_LOK + "trener.c", "zachod", 0, 0);
}
void
init()
{
  ::init();
  add_action("nocuj", "nocuj");
}
int
nocuj(string str)
{
notify_fail("Nocuj tutaj?\n");
if ( str == "tutaj" )
{
  notify_fail("Nie jestes Najemnikiem!\n");
  if (!NAJEMNICY->query_czlonek(TP)) return 0;
  setuid();
  seteuid(getuid());
  if (TP->set_default_start_location(MERC_LOK + "sypialnia"))
   {
      write("Od teraz bedziesz sie tutaj budzil.\n");
      return 1;
   }
   notify_fail("Cos sie nieudalo!\n");
   return 0;
}
return 0;
}
