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

//	add_range_to_group(,,groupn);

	set_crime_tolerance(max_crime);

	add_range_to_group(12096,12102,37);
	set_aggression(30037,50);
	set_level(30037,9);

	add_range_to_group(12103,12107,38);
	set_name(30038,"Rogue Lizard");
	set_level(30038,14);

	add_range_to_group(12112,12118,39);
	set_name(30039,"Rogue Lizard");
	set_level(30039,14);
	
	set_level(12119,28);
	change_max_health(12119,200);
	set_aggression(12119,30);

	add_range_to_group(12120,12123,40);
	set_name(30040,"Frozen Spirit");
	set_level(30040,15);
	set_aggression(30040,35);

	add_range_to_group(12125,12129,41);
	set_level(30041,16);
	set_name(12125,"Rach");

	set_level(12143,16);
	set_level(12144,16);
	set_level(12149,16);
	set_level(12150,16);

	set_name(12148,"Shaman Khleg");
	change_max_health(12148,200);
	
	add_range_to_group(12151,12155,42);
	set_aggression(30042,75);

	set_name(12155,"Chief Thok-Ak");
	set_level(12155,18);
	set_boss_level(12155,2);
	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(12124,"Hmmm. Quartz.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12124,"Nice formation.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12124,"Tink! Tink!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12124,"A soldier.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12125,"We not slaves!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12125,"Go away!");
	//	}

	//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 (char_ok(12130))
		alert_char(12130);
	if (char_ok(12131))
		alert_char(12131);
	if (char_ok(12132))
		alert_char(12132);
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(54,553,6);
	// 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);
