// .txt

beginzonescript;

variables;

short im_hostile = 0;
short max_crime = 5;
short last_abil;
short counter = 0;

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	set_name(12747,"Woods Spider");
	set_name(12748,"Woods Spider");
	set_name(12749,"Woods Spider");
	set_level(12747,5);
	set_level(12748,5);
	set_level(12749,5);

	set_name(12750,"Narelle");
	set_name(12751,"Vaclav");
	set_name(12752,"Hessesha");
	set_name(12757,"Castle Guard");
	set_name(12758,"Castle Guard");
	set_name(12759,"Castle Guard");
	set_name(12760,"Castle Guard");
	set_name(12761,"Castle Guard");
	set_name(12762,"Castle Guard");
	
	add_range_to_group(12744,12746,37);

	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;
		begin_talk_mode(349);
		}

	// if (gf(,) == 0) {
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12750,"We serve all tastes.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12750,"Care to see a cloak?");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12750,"Finest spidersilk.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12750,"This can protect you.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12751,"Don't rob me!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12751,"We have little food.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12751,"Have a reservation?");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12751,"Please have a seat.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12752,"I have much for sale.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12752,"See my wares.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12752,"Buying and selling.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12752,"Come, my pets.");

	//	}

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