// .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(5509,5515,1);
	set_name(5509,"Horde Flinger");
	set_name(5510,"Horde Flinger");
	set_name(5511,"Horde Bridge Guard");
	set_name(5512,"Horde Bridge Guard");
	set_name(5513,"Horde Bridge Guard");
	set_name(5514,"Horde Bridge Guard");

	set_aggression(5516,50);
	set_aggression(5523,50);
	set_name(5516,"Tri-Budded Shambler");
	set_name(5523,"Tri-Budded Shambler");
	
	set_name(5530,"Darathna");
	set_level(5530,28);
	set_boss_level(5530,2);
		place_particle_num(5530,20,12,5);		
		place_particle_num(5530,20,13,5);		
	set_resistance(5530,1,100);
	set_new_abil(5530,9);
	set_attack_bonus(5530,12);

	set_aggression(5530,75);
	set_aggression(5531,75);
	set_aggression(5532,75);
	set_aggression(5533,75);
	set_aggression(5534,75);
	set_aggression(5535,75);
	set_aggression(5536,75);

	add_range_to_group(5541,5544,1);
	set_aggression(30001,30);
	add_range_to_group(5545,5548,2);
	set_aggression(30002,30);
	
	add_range_to_group(5549,5553,3);
	set_name(30003,"Goblin Scavenger");
	set_level(30003,25);
	alter_stat(30003,19,6);

	set_level(5508,20);
	
	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();
	//	}
break;

beginstate 10;
	sf(51,0,1);
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(604,247,6);
	// 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(599,247,2);
	// direction - 0,1 - north 2,3 - west 4,5 - south 6,7 - east
break;

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

beginstate 23;
	if (is_combat() == FALSE)
		print_str_color("You climb the stairs.",2);
	change_level(579,247,4);
	// 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);
