// .txt

beginzonescript;

variables;

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

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();
	
	set_aggression(10044,30);
	set_aggression(10045,30);
	set_aggression(10046,30);
	set_aggression(10047,30);
	
	set_name(10048,"Cotra Soldier");
	set_name(10049,"Cotra Soldier");
	set_name(10050,"Cotra Soldier");
	if (gf(94,1) > 0) {
		erase_char(10048);
		erase_char(10049);
		erase_char(10050);
		}
		else {
			erase_char(10051);
			erase_char(10052);
			erase_char(10053);
			erase_char(10054);
			erase_char(10055);
			}
		
	set_name(10061,"Altered Shambler");
	set_boss_level(10061,1);
	
	set_level(10066,16);
	set_aggression(10066,20);
	
	add_range_to_group(10067,10071,1);
	set_name(30001,"Ogre Hunter");
	set_name(10071,"Grumus");
	set_level(10071,23);
	change_max_health(10071,200);
	set_aggression(30001,50);
	
	set_name(10074,"Orbus");
	set_level(10074,23);

	set_name(11556,"Pirate Ghost");
	set_name(11557,"Pirate Ghost");
	set_name(11558,"Pirate Ghost");
	
	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
		
	if ((get_crime_level() >= max_crime) && (im_hostile == 0)) {
	sf(94,11,1);
		make_zone_hostile();
		im_hostile = 1;
		}

	// if (gf(,) == 0) {
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(10074,"Mutter. Mutter.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(10074,"Closer every day.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(10074,"Don't waste my time.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(10074,"Always out there.");
	//	}

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

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