// .txt

beginzonescript;

variables;

short im_hostile = 0;
short max_crime = 2;
short last_abil;
short counter = 0;

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

//	set_name(,"");

	add_range_to_group(16524,16528,25);
	set_aggression(30025,50);
	
	add_range_to_group(16529,16533,26);
	add_range_to_group(16534,16538,27);
	add_range_to_group(16539,16544,28);

	set_name(16543,"Shaman Dhelarrr");
	set_boss_level(16543,1);
	set_name(16544,"Chief Bhag'Vrrr");
	set_boss_level(16544,1);
	set_new_abil(16544,10);
	alter_stat(16544,28,5);
	alter_stat(16544,29,5);
	
	set_name(16554,"Avernite Refugee");
	set_name(16555,"Avernite Refugee");
	set_name(16556,"Avernite Refugee");
	set_name(16557,"Avernite Refugee");
	set_name(16558,"Avernite Refugee");
	set_courage(16554,0);
	set_courage(16555,0);
	set_courage(16556,0);
	set_courage(16557,0);
	set_courage(16558,0);
	
	set_name(16559,"Sage Laurel");

	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
		
	if ((get_crime_level() >= max_crime) && (im_hostile == 0)) {
		sf(152,15,1);
		make_zone_hostile();
		im_hostile = 1;
		}

	 if (gf(152,15) == 0) {
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(16554 + get_ran(1,0,4),"Maybe Silvar.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(16554 + get_ran(1,0,4),"Go to the Great Cave.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(16554 + get_ran(1,0,4),"The Portal is gone.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(16554 + get_ran(1,0,4),"We are doomed now.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(16559,"Accept it.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(16559,"Create beauty.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(16559,"Choose a good end.");
		}

	//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;
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);
