// .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(12639,"Case");
	set_name(12640,"Neko");
	add_range_to_group(12639,12640,49);

	add_range_to_group(12641,12643,50);
	set_name(30050,"Woods Spider");
	set_aggression(30050,30);

	add_range_to_group(12644,12647,51);
	set_name(30051,"Woods Spider");
	set_aggression(30051,30);

	add_range_to_group(12648,12651,52);
	set_name(30052,"Woods Spider");
	set_aggression(30052,30);

	add_range_to_group(12653,12655,53);
	set_name(30053,"Woods Spider");
	set_aggression(30053,30);
	set_name(12655,"Aranea");
	set_coloradj(12655,4);
	change_max_health(12655,40);
	
	set_aggression(12652,30);
	change_max_health(12652,30);
	
	
	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(12639,"You here to help?");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12639,"Too many pests.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12639,"I need workers!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12640,"Have some tea.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12640,"Nice to have company.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12640,"Lonely out here.");
	//	}

	//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;

beginstate 20;
	if (is_combat() == FALSE)
		print_str_color("You walk up the slope.",2);
	change_level(345,546,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);
