// .txt

beginzonescript;

variables;

short im_hostile = 0;
short max_crime = 2;
short last_abil;
short counter = 0;

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	set_aggression(14588,60);
	set_aggression(14589,60);
	set_aggression(14590,60);
	
	set_name(14598,"Korga");
	//set_boss_level(14598,1);
	
//	add_range_to_group(,,groupn);

	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
		
	if ((get_crime_level() >= max_crime) && (im_hostile == 0)) {
		make_zone_hostile();
		im_hostile = 1;
		sf(135,3,1);
		}

	 if (gf(135,3) == 0) {
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14598,"Grrrr.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14598,"Little soldier.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14598,"You be good.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14599,"Don't open that door.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14599,"You are welcome.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14599,"I might hire you.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14599,"I mean no harm.");
		}

	//if (((is_combat()) && (tick_difference(last_abil,get_current_tick()) > 0)) || ((is_group()) && (tick_difference(last_abil,get_current_tick()) > 5))) {
	//	last_abil = get_current_tick();
	//	}
break;

beginstate 10;
	set_terrain_string_range("The sign says - KEEP OUT.",1);
break;

beginstate 11;
	set_terrain_string_range("The faded, barely readable sign says - FORT HALEDON.",1);
break;

beginstate 12;
	set_terrain_string_range("A sign on this door says - KEEP OUT.",1);
break;

beginstate 13;
break;

//	print_str("");
//	set_terrain_string_range(".",1);
//	set_terrain_string_range("The sign says - .",1);
