// .txt

beginzonescript;

variables;

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

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	set_name(13396,"Avernite Refugee");
	set_name(13397,"Avernite Refugee");
	set_name(13398,"Avernite Refugee");
	set_name(13399,"Avernite Refugee");
	set_name(13400,"Avernite Refugee");
	set_name(13401,"Deirdre");

	add_range_to_group(13392,13395,37);

	add_range_to_group(13402,13406,38);
	set_name(13403,"Grimy Brigand");
	set_name(13404,"Grimy Brigand");
	set_name(13405,"Grimy Brigand");
	set_level(30038,16);
	
	set_name(13406,"Shess'Threh");
	set_boss_level(13406,1);
	set_courage(13406,100);
	set_resistance(13406,7,90);
	
	if (gf(124,4) > 2)
		erase_char(30038);
		
	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;
		}

	// if (gf(,) == 0) {
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(13401,"I have bows.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(13401,"Quality javelins.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(13401,"Perfect for hunting!");
	//	}

	//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;
break;

beginstate 11;
break;

beginstate 12;
break;

beginstate 13;
break;

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