// TOWN SPECIAL ENCOUNTERS
//    Town 125: Third Guardpost

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();

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

	sf(125,11,0);
	sf(125,12,0);
	sf(125,13,0);
	sf(125,14,0);

	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
	if (gf(125,11) == 1) {
		sf(125,11,2);
		activate_hidden_group(1);
		set_name(30001,"Goblin Construct");
		set_summon_level(30001,1);
		place_particle_num(30001,1,1,8);
		}
	if (gf(125,12) == 1) {
		sf(125,12,2);
		activate_hidden_group(2);
		set_name(30002,"Bat Construct");
		set_summon_level(30002,1);
		place_particle_num(30002,1,1,8);
		set_level(30002,30);
		set_boss_level(30002,1);
		if (difficulty() > 1)
			force_char_status(30002,24,6);
		}
	if (gf(125,13) == 1) {
		sf(125,13,2);
		activate_hidden_group(3);
		set_name(30003,"Crawler Construct");
		set_summon_level(30003,1);
		place_particle_num(30003,1,1,8);
		set_level(30003,30);
		set_boss_level(30003,2);
		if (difficulty() > 1)
			force_char_status(30003,24,12);
		}
	if (gf(125,14) == 1) {
		sf(125,14,2);
		activate_hidden_group(4);
		set_name(30004,"Infernal Construct");
		set_summon_level(30004,1);
		place_particle_num(30004,1,1,8);
		set_level(30004,30);
		set_boss_level(30004,2);
		if (difficulty() > 1)
			force_char_status(30004,24,12);
		}
		
		
	set_attack_bonus(30001,30 + (20 * difficulty()));
	set_attack_bonus(30002,30 + (20 * difficulty()));
	set_attack_bonus(30003,30 + (20 * difficulty()));
	set_attack_bonus(30004,30 + (20 * difficulty()));
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);

