// .txt

beginzonescript;

variables;

short im_hostile = 0;
short max_crime = 200;
short last_abil;
short counter = 0;
short summ = 0;

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	set_name(15359,"Avernite Soldier");
	set_name(15360,"Avernite Soldier");
	set_name(15361,"Avernite Soldier");

	add_range_to_group(15344,15348,32);

	set_level(15349,6);
	set_level(15350,6);
	set_level(15351,6);
	set_level(15352,6);
	set_level(15353,6);
	set_aggression(15349,60);
	set_aggression(15350,60);
	set_aggression(15351,60);
	set_aggression(15352,60);
	set_aggression(15353,60);
	

	set_name(15362,"Dancing Bones");
	set_name(15366,"Dancing Bones");
	set_name(15367,"Dancing Bones");

	set_name(15374,"Barrow Wight");

	set_name(15379,"Horg Toothsnap");
	set_boss_level(15379,1);
	set_new_abil(15379,20);
	
	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
	if ((summ == 0) && (gf(142,6) == 0) && (gf(141,1) > 0)) {
		activate_hidden_group(31);
		add_range_to_group(15339,15343,31);
		}
		
	//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(,"");
	//	}

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