// .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(7785,"Abyss Farmer");
	set_name(7786,"Abyss Farmer");
	set_name(7787,"Abyss Farmer");
	set_name(7788,"Abyss Farmer");
	set_name(7789,"Abyss Farmer");
	set_name(7790,"Abyss Farmer");

	set_name(7791,"Goodman Rem");

//	add_range_to_group(,,groupn);

	set_aggression(7781,60);
	set_aggression(7782,60);
	set_aggression(7783,60);
	set_aggression(7784,60);
	
	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(7785 + get_ran(1,0,5),"An outsider.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(7785 + get_ran(1,0,5),"I've nothing to say.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(7785 + get_ran(1,0,5),"Move on.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(7785 + get_ran(1,0,5),"We need no charity.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(7791,"I will speak.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(7791,"I can trade.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(7791,"Greetings, soldier.");
//	}

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