// TOWN SPECIAL ENCOUNTERS
//    Town 102: Tower of Elderan

beginzonescript;

variables;

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

body;

//12

beginstate INIT_STATE;
	last_abil = get_current_tick();

	set_name(10205,"Frenzied Assassin");
	set_name(10206,"Frenzied Assassin");
	
	set_name(10207,"Cultist of Garzahd");
	set_level(10207,20);
	
	set_name(10211,"Cultist of Garzahd");
	set_level(10211,20);
	
	set_name(10204,"Delver Castinan");
	set_boss_level(10204,1);
	set_name(10208,"Scout Morrigan");
	set_boss_level(10208,1);

//	add_range_to_group(,,groupn);


	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
	clear_fields(26,35);
	clear_fields(26,36);
	clear_fields(26,37);
	clear_fields(27,35);
	clear_fields(27,36);
	clear_fields(27,37);
	
	if ((gf(102,21) == 0) && (party_within_dist(39,34,5))) {
		play_sound(21);
		sf(102,21,1);
		sf(102,20,0);
		ok_dlog(36,1);
		}
		
	if (difficulty() > 0)
		set_new_abil(10204,12);
		else set_new_abil(10204,0);
	if (difficulty() > 1)
		set_new_abil(10208,16);
		else set_new_abil(10208,0);
break;

beginstate 10;
break;

beginstate 11;
break;

beginstate 12;
break;

beginstate 13;
break;

beginstate 14;
break;

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

