// TOWN SPECIAL ENCOUNTERS
//    Town 30: Shrine of Crystals

beginzonescript;

variables;

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

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	sf(30,6,0);
	
//	set_name(,);
//	add_range_to_group(,,groupn);

	set_personality_name(600,"Lorta-Bok");
	set_personality_name(601,"Wilvron-Bok");
	set_personality_name(602,"Eos-Bok");
	set_personality_name(603,"Aichael-Bok");
	set_personality_name(604,"Vyvnas-Bok");
	set_personality_name(605,"Jekknol-Bok");
	set_personality_name(606,"Caffren-Bok");
	set_personality_name(607,"Ruis");
	set_personality_name(608,"Crysa-Te");
	set_personality_name(609,"Mentos");

	set_crime_tolerance(max_crime);
		if (revive_party()) {
			print_str_color("Entering a friendly town heals your wounds",2);
			print_str_color("  and restores your spell energy.",2);
			}

	break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;

	if ((set_ter == 0) && (gf(30,11) > 0)) {
		set_ter = 1;
		set_terrain(0,28,35,264);
		set_terrain(0,28,36,264);
		set_terrain(0,28,37,264);
		}
		
	if (gf(30,20) > 0) {
		sf(30,20,0);
		run_special(20);
		}
	if (gf(30,21) > 0) {
		sf(30,21,0);
		run_special(21);
		}
	if (gf(30,22) > 0) {
		sf(30,22,0);
		run_special(22);
		}
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);

