// .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(7242,7248,31);
		set_name(30031,"Horde Warrior");
	set_name(7248,"Horde Mage");

	add_range_to_group(7249,7254,32);
	set_name(30032,"Horde Warlizard");
	
	set_name(7255,"Horde Lizardmaster");
	set_boss_level(7255,1);

	add_range_to_group(7256,7261,33);
		set_name(30033,"Horde Warrior");
	set_name(7256,"Horde Sentry");
	set_name(7257,"Horde Sentry");
	add_range_to_group(7262,7267,34);
		set_name(30034,"Horde Warrior");
	set_name(7262,"Horde Sentry");
	set_name(7263,"Horde Sentry");
	
	set_name(7268,"Scourger Kereass");
	set_boss_level(7268,1);

	set_name(7269,"Huge Basilisk");
	set_coloradj(7269,2);
	set_name(7270,"Huge Basilisk");
	set_coloradj(7270,2);

	set_name(7271,"Horde Scout");
	set_name(7272,"Horde Scout");
	set_name(7273,"Horde Scout");
	set_name(7274,"Horde Scout");

	set_name(7274,"Horde Scout");

	set_name(7275,"Kerek'Oess");
	set_boss_level(7275,2);

	set_name(7280,"Horde Mage");
	set_name(7281,"Horde Shaman");
	
	set_crime_tolerance(max_crime);

	if (get_ran(1,0,100) < 25)
		sf(67,8,0);
		
	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();
	//	}
break;

beginstate 10;
	if (gf(67,8) == 0) {
		sf(67,8,1);
		activate_hidden_group(31);
		
		set_name(7236,"Horde Infiltrator");
		set_name(7237,"Horde Infiltrator");
		set_name(7238,"Horde Infiltrator");
		set_level(7236,22);
		set_level(7237,22);
		set_level(7238,22);

		set_name(7239,"Horde Flinger");
		set_name(7240,"Horde Flinger");
		set_name(7241,"Horde Flinger");
		}
break;

beginstate 11;
break;

beginstate 12;
break;

beginstate 13;
break;


beginstate 20;
	if (is_combat() == FALSE)
		print_str_color("You climb the stairs.",2);
	change_level(756,266,4);
	// direction - 0,1 - north 2,3 - west 4,5 - south 6,7 - east
break;

beginstate 21;
	if (is_combat() == FALSE)
		print_str_color("You climb the stairs.",2);
	change_level(752,269,0);
	// direction - 0,1 - north 2,3 - west 4,5 - south 6,7 - east
break;
//	print_str("");
//	set_terrain_string_range(".",1);
//	set_terrain_string_range("The sign says - .",1);
