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

//	set_name(,"");

	add_range_to_group(11988,11992,25);
	set_aggression(30025,60);

	set_aggression(11998,50);
	set_aggression(11999,50);
	set_aggression(12000,50);

	set_aggression(12001,60);
	set_aggression(12002,60);
	set_aggression(12003,60);
	set_aggression(12004,60);
	
	set_aggression(12005,60);
	set_aggression(12006,60);
	set_aggression(12007,60);
	set_aggression(12008,60);
	
	set_aggression(12009,60);
	set_aggression(12010,60);
	set_aggression(12011,60);
	set_aggression(12012,60);
	
	set_aggression(12013,60);
	set_aggression(12014,60);
	set_aggression(12015,60);
	set_aggression(12016,60);

		set_level(12017,20);
		set_name(12017,"Old Soldier");
		set_level(12018,20);
		set_name(12018,"Old Soldier");
		set_level(12019,20);
		set_name(12019,"Old Soldier");
		set_level(12020,20);
		set_name(12020,"Old Soldier");

		set_name(12027,"Beastmaster Hrath");
	change_max_health(12027,200);

	add_range_to_group(12027,12030,26);
	set_aggression(30026,60);

	add_range_to_group(12032,12036,27);
	set_aggression(30027,60);

		set_level(12037,20);
		set_name(12037,"Ruby Skeleton");
		set_level(12038,20);
		set_name(12038,"Ruby Skeleton");
		set_level(12039,20);
		set_name(12039,"Ruby Skeleton");
		set_level(12040,20);
		set_name(12040,"Ruby Skeleton");
	set_coloradj(12037,256);
	set_coloradj(12038,256);
	set_coloradj(12039,256);
	set_coloradj(12040,256);

	add_range_to_group(12043,12046,28);
	
	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();
		
		counter = counter + 1;
		if (counter == 5) {
			if (gf(111,7) == 0)
				sf(111,7,1);
				else sf(111,7,0);
			counter = 0;
			}
		}
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);
