// .txt

beginzonescript;

variables;

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

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	set_name(14049,"Yardley");
	set_name(14050,"Reginaldo");
	set_name(14051,"Adelard");
	set_name(14052,"Herwin");
	if (gf(110,2) > 0)
		erase_char(14052);
	set_name(14053,"Mother Alice");
	set_name(14056,"Mercenary Guard");
	set_name(14057,"Mercenary Guard");
	set_name(14058,"Empire Tourist");
	set_name(14059,"Empire Tourist");
	set_name(14060,"Empire Tourist");
	set_name(14061,"Empire Tourist");

	add_range_to_group(14040,14043,7);
	add_range_to_group(14044,14046,8);

	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;
		sf(130,11,1);
		}

	 if (gf(130,11) == 0) {
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14049,"Please be patient.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14049,"Yes, sir.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14049,"Yes, ma'am.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14049,"I apologize.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14049,"Let me help you.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14050,"Go away.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14050,"I need my privacy.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14050,"You killed my salamander.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14050,"Don't anger wizards.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14051,"Troubles upon troubles.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14051,"Hedwig won't forgive me.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14051,"We must escape.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14051,"Why did I come here?");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14052,"Such beauty.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14052,"How could I leave?");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14052,"Is my destiny here?");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14052,"My poor father.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14053,"It is precarious.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14053,"Not enough funds.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14053,"Must maintain my claims.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14058 + get_ran(1,0,3),"When is the lottery?");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14058 + get_ran(1,0,3),"I got a bad draw.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14058 + get_ran(1,0,3),"We have to wait.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14058 + get_ran(1,0,3),"More wine!");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14058 + get_ran(1,0,3),"The insolence!");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14058 + get_ran(1,0,3),"Redmark must save us!");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14058 + get_ran(1,0,3),"More bread!");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14058 + get_ran(1,0,3),"I want a refund.");
		}

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