// .txt

beginzonescript;

variables;

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

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

//	set_name(,"");

	add_range_to_group(6804,6807,25);

	add_range_to_group(6808,6811,26);
	set_name(30026,"Hellish Watchhound");
	set_aggression(30026,40);

	set_name(6819,"Taramir");
	set_level(6819,20);
	set_boss_level(6819,1);

	set_aggression(6821,60);
	set_aggression(6823,60);
	set_aggression(6824,60);
	set_aggression(6825,60);

	set_resistance(6820,0,99);
	set_resistance(6820,1,99);
	set_resistance(6820,2,99);
	set_resistance(6820,6,99);

	set_name(6831,"Sentinel Revenant");
	set_name(6832,"Runed Revenant");
	set_resistance(6831,6,99);
	set_resistance(6832,0,99);
	set_resistance(6832,1,99);
	set_resistance(6832,2,99);
	set_resistance(6832,6,99);
	
	set_new_abil(6831,2);
	set_new_abil(6832,2);
	change_max_health(6831,100);
	change_max_health(6832,100);
	
	add_range_to_group(6825,6830,27);
	set_aggression(30027,60);

	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
	if ((undead == 0) && (gf(63,5) > 1) && (gf(63,6) == 0)) {
		undead = 1;
		set_terrain(1,510,297,0);
		set_terrain(1,510,298,0);
		}
	
	if (char_ok(6831) == FALSE) {
		set_name(6832,"Sentinel Revenant");
		set_resistance(6832,0,25);
		set_resistance(6832,1,50);
		set_resistance(6832,2,50);
		}
	if (char_ok(6832) == FALSE) {
		set_resistance(6820,0,25);
		set_resistance(6820,1,50);
		set_resistance(6820,2,50);
		}
		
	//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);
