// TOWN SPECIAL ENCOUNTERS
//    Town 35: Tomb of Delrin-Bok

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


beginstate INIT_STATE;
	last_abil = get_current_tick();

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

	set_aggression(30002,60);
	set_aggression(30003,60);
	set_aggression(30004,60);

	set_aggression(3527,25);
	set_aggression(3528,25);
	set_aggression(3561,25);

	set_crime_tolerance(max_crime);


	if (gf(28,9) == 0) {
		erase_char(3517);
		erase_char(3529);
		}
	break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
	if (gf(35,25) > 0) {
		sf(35,25,0);
		if ((char_ok(3532) == FALSE) && (char_ok(3533) == FALSE)) {
			activate_hidden_group(10);
			print_str_color("Two snarling beasts appear on the stone platforms!",2);
			}
			else if ((char_ok(3523) == FALSE) && (char_ok(3524) == FALSE)) {
				activate_hidden_group(11);
				print_str_color("Two snarling beasts appear on the stone platforms!",2);
			
				}
				
		if (gf(35,15) >= 3) {
			print_str_color("The sudden teleportation leaves you feeling dizzy.",2);
			set_char_status(30000,38,3);
			}
		}

	if ((gf(35,5) > 0) && (char_ok(3517)) && (gf(35,27) == 0)) {
		erase_char(3517);
		spawn_creature(3511);
		set_boss_level(3511,1);
		set_char_status(3511,24,8);
		set_char_status(3511,20,8);
		set_new_abil(3511,12);
		}
	if ((gf(35,6) > 0) && (char_ok(3529))) 
		erase_char(3529);
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);

