// .txt

beginzonescript;

variables;

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

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

//	set_name(,"");

	add_range_to_group(13932,13935,1);
	add_range_to_group(13936,13939,2);
	add_range_to_group(13940,13944,3);

	set_level(13948,9);
	
	sf(129,9,2);
	
	set_name(13962,"Salamander");
	set_boss_level(13962,1);
	set_level(13962,9);
	set_aggression(13962,80);
	
	add_range_to_group(13963,13967,4);
	set_name(30004,"Young Salamander");
	set_level(30004,7);
	set_aggression(30004,80);

	add_range_to_group(13968,13970,5);
	set_name(13968,"Wilkie");
	set_boss_level(30005,1);
	set_level(30005,15);
	if (has_spec_item(60) > 0)
		erase_char(30005);
		
	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
	if ((has_spec_item(60) == 0) && (gf(129,8) > 0))
		begin_talk_mode(5);
		
	if ((get_crime_level() >= max_crime) && (im_hostile == 0)) {
		make_zone_hostile();
		im_hostile = 1;
		}

	 if (has_spec_item(60) == 0) {
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(13968,"Hello, soldier.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(13968,"It's your lucky day.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(13968,"A real opportunity!");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(13968,"Have something for you!");
		}

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