// .txt

beginzonescript;

variables;

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

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	add_range_to_group(13284,13286,49);
	set_name(30049,"Tunnel Hunter");
	set_coloradj(30049,16);
	//change_max_health(30049,100);
	//set_resistance(30049,7,70);
	set_new_abil(30049,8);

	add_range_to_group(13284,13286,50);
	set_name(30050,"Tunnel Hunter");
	set_coloradj(30050,512);
	//change_max_health(30050,100);
	//set_resistance(30050,7,70);
	set_new_abil(30050,15);
	
	set_level(13293,15);
	set_level(13294,15);
	set_level(13295,15);
	set_level(13296,15);
	set_aggression(13293,50);
	set_aggression(13294,50);
	set_aggression(13295,50);
	set_aggression(13296,50);
	
	add_range_to_group(13297,13304,51);

	add_range_to_group(13312,13317,52);
	set_name(13317,"Shaman Sarkev");
	set_boss_level(13317,1);
	
//	set_name(,"");
//	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;
	//	}

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

beginstate 20;
	if (is_combat() == FALSE)
		print_str_color("You climb the stairs.",2);
	change_level(736,528,6);
	// direction - 0,1 - north 2,3 - west 4,5 - south 6,7 - east
break;

beginstate 21;
	if (is_combat() == FALSE)
		print_str_color("You climb the stairs.",2);
	change_level(712,518,2);
	// direction - 0,1 - north 2,3 - west 4,5 - south 6,7 - east
break;

beginstate 22;
	if (is_combat() == FALSE)
		print_str_color("You climb the stairs.",2);
	change_level(728,526,0);
	// direction - 0,1 - north 2,3 - west 4,5 - south 6,7 - east
break;

beginstate 23;
	if (is_combat() == FALSE)
		print_str_color("You climb the stairs.",2);
	change_level(740,519,4);
	// direction - 0,1 - north 2,3 - west 4,5 - south 6,7 - east
break;

beginstate 24;
	if (is_combat() == FALSE)
		print_str_color("You climb the stairs.",2);
	change_level(723,527,1);
	// direction - 0,1 - north 2,3 - west 4,5 - south 6,7 - east
break;

beginstate 25;
	if (is_combat() == FALSE)
		print_str_color("You climb the stairs.",2);
	change_level(723,522,4);
	// direction - 0,1 - north 2,3 - west 4,5 - south 6,7 - east
break;

beginstate 26;
	if (is_combat() == FALSE)
		print_str_color("You climb the stairs.",2);
	change_level(742,517,0);
	// direction - 0,1 - north 2,3 - west 4,5 - south 6,7 - east
break;

beginstate 27;
	if (is_combat() == FALSE)
		print_str_color("You climb the stairs.",2);
	change_level(714,520,4);
	// direction - 0,1 - north 2,3 - west 4,5 - south 6,7 - east
break;





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