// TOWN SPECIAL ENCOUNTERS
//    Town 122: Ziggurat Roof

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

	make_field(0,43,23,2);
	make_field(0,44,23,2);
	make_field(0,42,21,2);
	make_field(0,42,25,2);

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

	set_boss_level(12210,2);
	if (gf(16,11) > 0)
		set_name(12210,"Peltalis");
		else {
			change_max_health(12210,400);
			set_char_unkillable(12210,1);
			}
	set_new_abil(12210,20);
	set_resistance(12210,0,60);
	set_resistance(12210,1,60);
	set_resistance(12210,6,60);
	set_resistance(12210,2,100);
	
	set_boss_level(30001,1);
	
	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
	set_attack_bonus(12210,30);
	if ((gf(16,11) == 0) && (char_ok(12210))) {
		if (get_health(12210) < get_max_health(12210) / 2) {
			erase_char(12210);
			ok_dlog(20,2);
			}
		}
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);

