// .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(8223,"Marauder Bladesman");
	set_name(8224,"Marauder Bladesman");
	change_max_health(8223,80);
	change_max_health(8224,80);
	
	add_range_to_group(8208,8213,37);
	set_name(30037,"Docile Chitrach");

	set_crime_tolerance(max_crime);
	if (gf(76,2) > 0) 
		set_terrain(0,437,356,0);

	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;
	if ((char_ok(8213)) && (get_attitude(8213) < 10) && (has_spec_item(13) == 0)) {
		set_name(30037,"Vicious Chitrach");
		set_attitude(30037,10);
		begin_talk_mode(4);
		}
break;

beginstate 11;
	if (gf(76,2) == 0) {
		sf(76,2,1);
		activate_hidden_group(37);
		set_name(8218,"Marauder Archer");
		set_name(8219,"Marauder Archer");
		set_name(8220,"Marauder Archer");
		set_terrain(0,437,356,0);
		
		alert_char(8223);
		alert_char(8224);
		alert_char(8225);
		}
break;

beginstate 12;
break;

beginstate 13;
break;


beginstate 20;
	if (is_combat() == FALSE)
		print_str_color("You climb the stairs.",2);
	change_level(442,373,4);
	// 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(439,372,0);
	// 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);
