// .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(2928,2931,25);
	set_name(30025,"Slith Farmer");
	
	set_name(2932,"Circle Cleaner");
	set_name(2933,"Circle Cleaner");
	set_aggression(2932,50);
	set_aggression(2933,50);
	
	add_range_to_group(2934,2939,26);
	set_aggression(30026,50);
	set_name(2936,"Blistering Bones");
	set_boss_level(2936,1);
	set_coloradj(2936,256);
	
	set_name(2940,"Sage Tobias");
	if (gf(27,5) > 0)
		erase_char(2940);
	
	add_range_to_group(2941,2946,27);
	set_name(30027,"Infernal Acolyte");
	set_name(2941,"Horde Ritual Master");
	set_level(2941,30);
	set_boss_level(2941,1);
	set_name(2946,"Chained Infernal");
	set_aggression(30027,50);
	
	add_range_to_group(2947,2952,28);
	set_name(30028,"Infernal Acolyte");
	set_name(2947,"Horde Ritual Master");
	set_level(2947,30);
	set_boss_level(2947,1);
	set_name(2952,"Chained Infernal");
	set_aggression(30028,50);
	
	add_range_to_group(2953,2958,29);
	set_level(30029,24);
	set_name(30029,"Infernal Acolyte");
	set_name(2953,"Horde Ritual Master");
	set_level(2953,30);
	set_boss_level(2953,1);
	set_name(2958,"Chained Infernal");
	set_aggression(30029,50);
	
	set_name(2959,"High Mage Dassra");
	set_level(2959,32);
	set_boss_level(2959,1);
	set_new_abil(2959,20);
	set_attack_bonus(2959,20);
	set_name(2960,"Servitor Orb");
	set_level(2960,18);
	set_boss_level(2960,1);
	set_resistance(2960,1,100);
	set_resistance(2960,2,100);
	set_name(2961,"Servitor Orb");
	set_level(2961,18);
	set_boss_level(2961,1);
	set_resistance(2961,6,100);

	add_range_to_group(2962,2965,30);

	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
		
	//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(2940,"You are real.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(2940,"The bones.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(2940,"The whispering.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(2940,"Do you hear it?");
//	}

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