// .txt

beginzonescript;

variables;

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

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

//	set_name(,"");

	add_range_to_group(16632,16636,37);
	set_level(30037,14);
	add_range_to_group(16637,16641,38);
	set_level(30038,14);
	add_range_to_group(16642,16646,39);
	set_level(30039,14);
	
	add_range_to_group(16647,16652,40);
	set_level(30040,12);
	set_level(16651,14);

	add_range_to_group(16653,16656,41);
	set_aggression(30041,60);

	add_range_to_group(16657,16660,42);
	set_aggression(30042,60);

	set_level(16661,20);
	set_aggression(16661,40);
	change_max_health(16661,100);
	
	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
	sf(154,6,get_ran(1,0,2));
	sf(154,7,get_ran(1,0,2));
	sf(154,8,get_ran(1,0,2));
	sf(154,9,get_ran(1,0,2));
	sf(154,10,get_ran(1,0,2));
	
	//if ((get_crime_level() >= max_crime) && (im_hostile == 0)) {
	//	make_zone_hostile();
	//	im_hostile = 1;
	//	}

	// if (gf(,) == 0) {
	//if (get_ran(1,0,100) < 10)
	//	give_char_text_bubble(,"");
	//	}

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

beginstate 20;
	if (is_combat() == FALSE)
		print_str_color("You climb the stairs.",2);
	change_level(28,735,4);
	// direction - 0,1 - north 2,3 - west 4,5 - south 6,7 - east
break;

beginstate 21;
	if (is_combat() == FALSE)
		print_str_color("You climb the stairs.",2);
	change_level(28,732,0);
	// direction - 0,1 - north 2,3 - west 4,5 - south 6,7 - east
break;


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