// TOWN SPECIAL ENCOUNTERS
//    Town 38: Totem Tunnels

beginzonescript;

variables;

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

body;

// 123456789 10

beginstate INIT_STATE;
	last_abil = get_current_tick();

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


	set_level(3812,18);
	set_level(3824,18);
	set_level(3847,18);
	set_level(3848,18);
	set_level(3832,18);
	set_level(3833,18);
	set_level(3840,18);
	set_level(3841,18);
	set_level(3846,18);
	set_level(3862,18);
	
	set_aggression(30003,60);
	set_aggression(30004,60);
	set_aggression(30005,60);
	set_aggression(30006,60);
	
	set_name(3830,"Cultist Vambar");
	set_boss_level(3830,1);

	set_name(3820,"Thudgrud");
	set_new_abil(3820,14);
	set_coloradj(3820,1);
	set_scaling(3820,100);
	
	set_aggression(30010,50);
	
	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
	if ((gf(38,21) > 0) && (set_ter == 0)) {
		set_ter = 1;
		set_terrain(0,18,43,0);
		set_terrain(0,22,43,0);
		set_terrain(0,26,43,0);
		}
break;

beginstate 10;
	if (gf(38,21) == 0) {
		sf(38,21,1);
		play_sound(20);
		set_attitude(30001,10);
		set_act_at_dist(30001,1);
		ok_dlog(38,1);
		}
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);

