class 1 party_private_priest : party_private
{
parameter:
	int	Buff = 1031169;

handler:
	EventHandler CREATED()
	{
		myself::AddTimerEx(5001,20000);
		super;
	}

	EventHandler SEE_CREATURE(creature)
	{
		if( creature.is_pc != 1 && myself::IsInCategory(11,creature.npc_class_id) == 0 && creature == myself.boss )
		{
			if( myself::GetAbnormalLevel(creature,myself::Skill_GetAbnormalType(Buff)) <= 0 && myself.p_state != 3 )
			{
				if( myself::Skill_GetConsumeMP(Buff) < myself.sm.mp && myself::Skill_GetConsumeHP(Buff) < myself.sm.hp && myself::Skill_InReuseDelay(Buff) == 0 )
				{
					myself::AddUseSkillDesire(creature,Buff,1,1,1000000);
				}
			}
		}
		super;
	}

	EventHandler TIMER_FIRED_EX(timer_id)
	{
		if( timer_id == 5001 )
		{
			myself::LookNeighbor(300);
			myself::AddTimerEx(5001,20000);
		}
		super;
	}

}
