// .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(17496,17500,49);

	add_range_to_group(17501,17506,50);
	set_aggression(30050,50);

	add_range_to_group(17507,17511,51);
	set_aggression(30051,50);

	set_name(17512,"Fang Clan Sentry");
	set_level(17512,8);
	change_max_health(17512,30);
	set_name(17513,"Fang Clan Sentry");
	set_level(17513,8);
	change_max_health(17513,30);
	set_name(17514,"Fang Clan Archer");
	set_name(17515,"Fang Clan Archer");
	set_name(17516,"Fang Clan Warrior");
	set_name(17517,"Fang Clan Warrior");
	set_name(17518,"Shaman Trr'Orr");
	set_level(17518,9);
	change_max_health(17518,30);
	
	set_name(17519,"Grieg");
	
	set_crime_tolerance(max_crime);

	if (gf(162,2) > 0) {
		set_terrain(1,556,728,0);
		set_terrain(1,557,728,0);
		}
	if (gf(162,3) > 0) {
		set_terrain(1,553,746,0);
		set_terrain(1,553,747,0);
		}
	if (gf(162,4) > 0) {
		set_terrain(1,520,742,0);
		set_terrain(1,521,742,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(17519,"This is my land.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(17519,"I'll never go.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(17519,"You'll never get me out.");
	//	}

	//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;
	alert_char(17512);
	alert_char(17513);
break;

beginstate 11;
	set_terrain_string_range("You find the web-wrapped remains of a smuggler.",1);
break;

beginstate 12;
	if (gf(162,2) == 0) {
		sf(162,2,1);
		print_str_color("You feel an icy cold draft. You shudder.",3);
		activate_hidden_group(49);
		set_terrain(1,556,728,0);
		set_terrain(1,557,728,0);

		add_range_to_group(17525,17530,53);
		set_name(30053,"Icy Bones");
		set_level(30053,8);
		set_coloradj(30053,1024);
		}
break;

beginstate 13;
	if (gf(162,3) == 0) {
		sf(162,3,1);
		print_str_color("You feel an icy cold draft. You shudder.",3);
		activate_hidden_group(50);
		set_terrain(1,553,746,0);
		set_terrain(1,553,747,0);

		add_range_to_group(17531,17536,54);
		set_name(30054,"Frozen Zombie");
		set_level(30054,8);
		set_coloradj(30054,1024);
		}
break;

beginstate 14;
	if (gf(162,4) == 0) {
		sf(162,4,1);
		print_str_color("You feel an icy cold draft. You shudder.",3);
		activate_hidden_group(51);
		set_terrain(1,520,742,0);
		set_terrain(1,521,742,0);

		add_range_to_group(17537,17542,55);
		set_name(30055,"Ice Ghoul");
		set_level(30055,9);
		set_coloradj(30055,1024);
		}
break;

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