// .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(,"");

	add_range_to_group(767,773,7);

	set_name(767,"Horde Sentry");
	set_name(768,"Horde Sentry");
	set_name(769,"Horde Defender");
	set_name(770,"Horde Defender");
	set_name(771,"Horde Defender");
	set_name(772,"Horde Runebearer");
	set_name(773,"Horde Runebearer");

	set_name(774,"Spitting Goo Mass");
	set_name(775,"Spitting Goo Mass");
	set_name(776,"Spitting Goo Mass");
	set_name(777,"Spitting Goo Mass");

	add_range_to_group(778,782,8);
	set_name(30008,"Inferno Bat");
	set_level(30008,26);
	set_aggression(30008,40);
	
	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(,"");
	//	}

	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();
		
		counter = counter + 1;
		if (counter == 10) {
			counter = 0;
			if (gf(7,5) == 0)
				sf(7,5,1);
				else sf(7,5,0);
			}
		}
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);
