// TOWN SPECIAL ENCOUNTERS
//    Town 27: Coffin Caves

beginzonescript;

variables;

short im_hostile = 0;
short max_crime = 200;
short last_abil;
short counter = 0;
short set_ter = 0;

body;

// 1 2 3 4 5 6 7

beginstate INIT_STATE;
	last_abil = get_current_tick();

//	set_name(,);
//	add_range_to_group(,,groupn);

	set_personality_name(540,"Roda-Bok");
	set_personality_name(541,"Liedra-Bok");
	set_personality_name(542,"Korhis-Bok");

	set_level(30001,10);
	set_level(30002,10);
	set_level(2709,14);
	
	set_aggression(30001,60);
	set_aggression(30002,60);
	set_aggression(30003,60);

	set_aggression(30004,60);
	set_aggression(30005,60);
	set_aggression(30006,60);
	set_aggression(30007,60);

	set_level(30005,9);
	set_level(30006,9);
	set_level(30007,9);
	set_level(2720,11);
	set_level(2722,11);
	set_level(2726,11);
	
	set_name(2730,"Faded Vahnavoi");
	set_level(2730,11);
	set_boss_level(2730,1);
	
	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
	if ((set_ter == 0) && (gf(27,12) > 0)) {
		set_ter = 1;
		set_terrain(0,47,28,229);
		set_terrain(0,47,34,229);
		}

	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(2700,"Hmmmm ...");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(2700,"ZZZZZ");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(2700,"???");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(2701,"Mmmmmm ...");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(2701,"YYYYY");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(2701,"?????");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(2727,"Hate.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(2727,"!!!!!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(2727,"XXXXX");
		

break;

beginstate 10;
break;

beginstate 11;
break;

beginstate 12;
break;

beginstate 13;
break;

beginstate 14;
break;

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

