// .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(12204,"Vanessa");
	set_level(12204,20);
	set_attack_bonus(12204,60);
	set_name(12205,"Goblin Servant");
	set_name(12206,"Goblin Servant");
	set_name(12207,"Goblin Servant");
	
	set_name(12208,"Dragan");
	set_name(12209,"Avernite Farmer");
	set_name(12210,"Avernite Farmer");
	set_name(12211,"Avernite Farmer");

	set_name(12212,"Armed Man");
	set_name(12213,"Armed Woman");
	set_name(12214,"Armed Nephil");

	
	add_range_to_group(12215,12219,43);
	set_aggression(30043,60);

	add_range_to_group(12224,12229,44);
	
	add_range_to_group(12230,12236,45);
	set_level(30045,6);
	set_name(12230,"Drunken Goblin");
	set_name(12231,"Drunken Goblin");
	
	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(12204,"Fang! Come here!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12204,"Anything to sell?");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12204,"Welcome! Welcome!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12204,"Take a look at this!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12204,"Quality goods!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12208,"Can't you talk?");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12208,"I like my privacy.");
	if ((get_ran(1,0,100) < 10) && (gf(127,1) == 0))
		give_char_text_bubble(12208,"Curse those bandits.");

	//	}

	//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;
	set_attitude(12212,10);
	set_attitude(12213,10);
	set_attitude(12214,10);
break;

beginstate 11;
	set_terrain_string_range("There is a strong, medicinal scent in the air down here.",1);
break;

beginstate 12;
break;

beginstate 13;
break;

//	print_str("");
//	set_terrain_string_range(".",1);
//	set_terrain_string_range("The sign says - .",1);
