/*
 * Gildia Tropicieli z Averlandu
 */

inherit "/d/Imperium/std/room";
#include "ranger.h"
#include <formulas.h>
#include <macros.h>
#include <ss_types.h>
int statuj();

void
create_imperium_room()
{
 add_prop(ROOM_I_LIGHT, 2);

 add_prop(ROOM_I_INSIDE, 1);

 set_short("Glowna sala w niewielkiem forcie");
 set_long("@@opis");
 
 add_exit(PATH+"pokprzyjec.c","wschod",0,1);
 add_exit(PATH+"trening.c","zachod",0,1);
 add_exit(PATH+"kuznia.c","polnoc",0,1);
 
 
}

string opis()
{
  return "Glowna sala fortu.\n";
}

int
startuj( string str )
{

if ( str == "tutaj" )
    {
if (!TP->query_prop("ranger"))
        {
        write("Wypierdalaj nie nalezysz do gildii!\n");
        return 1;
	}
	if (TP->set_default_start_location(PATH+"gildia1"))
	    {
	        write("Oki.\n");
	        return 1;
	        }
	        write("Uuuu cos jest pojebane!\n");
	        return 1;
		
										
		}
	    write("Startuj tutaj?\n");
	    return 1;
    }
												    
															    
void
init()
{
        ::init();
add_action("startuj","startuj");
add_action("statuj", "statuj");
			    
}
																    


int
statuj()
{
    string str;
    object to;
    to = this_player();
    
    write(to->query_stat(SS_STR) + " " + to->query_stat(SS_DEX)
                      + " " + to->query_stat(SS_CON)+ " " +  to->query_stat(SS_INT)
                      + " " + to->query_stat(SS_WIS)+ " " +  to->query_stat(SS_DIS)
                      + " " + to->query_stat(SS_RACE)+ " " +  to->query_stat(SS_GUILD)
                      + " " + to->query_stat(SS_OTHER));
    return 1;
}
