// .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(13608,13613,1);
	set_aggression(30001,60);
	set_level(30001,12);

	set_level(13614,12);
	set_level(13615,12);
	set_level(13616,12);
	set_level(13617,12);

	set_name(13618,"Crystal Parasite");
	set_level(13618,13);
	set_name(13620,"Crystal Parasite");
	set_level(13620,13);
	set_name(13622,"Crystal Parasite");
	set_level(13622,13);
	set_name(13624,"Crystal Parasite");
	set_level(13624,13);
	set_name(13626,"Crystal Parasite");
	set_level(13626,13);
	set_name(13628,"Crystal Parasite");
	set_level(13628,13);
	set_name(13630,"Crystal Parasite");
	set_level(13630,13);
	set_name(13632,"Crystal Parasite");
	set_level(13632,13);

	set_aggression(13618,40);
	set_aggression(13620,40);
	set_aggression(13622,40);
	set_aggression(13624,40);
	set_aggression(13626,40);
	set_aggression(13628,40);
	set_aggression(13630,40);
	set_aggression(13632,40);

	add_range_to_group(13634,13637,2);
	set_aggression(30002,60);
	set_level(30002,12);

	add_range_to_group(13638,13643,3);
	set_aggression(30003,50);
	set_level(30003,7);
	add_range_to_group(13644,13649,4);
	set_aggression(30004,50);
	set_level(30004,7);
	
	add_range_to_group(13660,13664,5);
	
	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
	if (char_ok(13650)) {
			force_char_status(13650,22,10);
		force_char_status(13650,6,10);
		alert_char(13650);
		}
		
	//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 ((counter == 0) && (char_ok(13660)) && (get_attitude(13660) < 10)) {
		counter = 1;
		set_attitude(30005,10);
		print_str_color("Tamas's band panics! They attack you.",3);
		}
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);
