// .txt

beginzonescript;

variables;

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

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	add_range_to_group(14688,14690,7);
	set_name(30007,"Tunnel Hunter");
	set_coloradj(30007,16);
	//change_max_health(30007,100);
	//set_resistance(30007,7,70);
	set_new_abil(30007,15);
	alter_stat(30007,19,8);
	alter_stat(30007,28,8);

	add_range_to_group(14691,14693,8);
	set_name(30008,"Tunnel Hunter");
	set_coloradj(30008,32);
	//change_max_health(30008,100);
	//set_resistance(30008,7,70);
	set_new_abil(30008,14);

	set_name(14715,"Budding Shambler");
	set_level(14715,22);
	set_boss_level(14715,2);
	set_aggression(14715,30);
	
	add_range_to_group(14720,14724,9);
	set_name(14720,"Honeycomb Bandit");
	set_name(14721,"Honeycomb Bandit");
	set_name(14722,"Honeycomb Bandit");
	set_name(14723,"Honeycomb Bandit");

	add_range_to_group(14725,14729,10);
	
	set_name(14730,"Vartan");
	set_level(14730,20);
	set_boss_level(14730,1);
	
	add_range_to_group(14742,14746,11);
	set_name(14742,"Fang Clan Archer");
	set_name(14743,"Fang Clan Archer");
	set_name(14744,"Fang Clan Warrior");
	set_name(14745,"Fang Clan Warrior");
	set_name(14746,"Chief Ghelarr");
	set_boss_level(14746,1);
	change_max_health(14746,100);
	set_attack_bonus(14746,10);

	add_range_to_group(14747,14754,12);
	set_name(14747,"Honeycomb Defender");
	set_name(14748,"Honeycomb Defender");
	set_name(14749,"Honeycomb Defender");
	set_name(14750,"Honeycomb Defender");
	set_name(14751,"Honeycomb Archer");
	set_name(14752,"Honeycomb Archer");
	set_name(14754,"Fang Clan Shaman");
	set_boss_level(14753,1);
	set_boss_level(14754,1);
	
	set_name(14755,"Chieftain Shafe");
	set_level(14755,20);
	set_boss_level(14755,2);
	alter_stat(14755,19,5);
	alter_stat(14755,28,5);
	alter_stat(14755,29,5);
	set_new_abil(14755,20);

	set_name(14756,"Fang Clan Assassin");
	set_level(14756,20);
	set_boss_level(14756,1);
	set_new_abil(14756,11);
	alter_stat(14756,28,12);
	set_name(14757,"Fang Clan Assassin");
	set_level(14757,20);
	set_boss_level(14757,1);
	set_new_abil(14757,11);
	alter_stat(14757,28,12);
	set_name(14758,"Bandit Sharpshooter");
	set_level(14758,20);
	set_boss_level(14758,1);
	alter_stat(14758,30,12);
	set_name(14759,"Bandit Sharpshooter");
	set_level(14759,20);
	set_boss_level(14759,1);
	alter_stat(14759,30,12);

	set_aggression(14760,50);
	set_aggression(14761,50);
	set_aggression(14762,50);
	set_aggression(14763,50);
	
	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
	if ((char_ok(14730)) && (get_attitude(14730) >= 10))
		sf(136,3,1);
	if ((set_att == 0) && (gf(136,3) > 0)) {
		set_attitude(30010,10);

		set_attitude(14731,10);
		set_attitude(14732,10);
		set_attitude(14733,10);
		set_attitude(14734,10);
		set_attitude(14735,10);
		set_attitude(14736,10);
		set_attitude(14737,10);
		set_attitude(14738,10);
		set_attitude(14739,10);
		set_attitude(14740,10);
		set_attitude(14741,10);

		set_att = 1;
		}
		
	//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);
