@LabelIndex 26548
@StringIndex 0
class 0 ai_agit01_bloody_lord_nurka1 : default_npc {
parameter:
	float	Attack_DecayRatio = 6.600000;
	float	UseSkill_DecayRatio = 66000.000000;
	float	Attack_BoostValue = 500.000000;
	float	UseSkill_BoostValue = 100000.000000;

handler:
	EventHandler NO_DESIRE() {
		myself::AddDoNothingDesire(40,20);
	}

	EventHandler CREATED() {
		myself::InstantTeleportInMyTerritory(51952,111060,-1970,200);
	}

	EventHandler ATTACKED(attacker,damage,skill_name_id,c0) {
		if( attacker.level > ( myself.sm.level + 8 ) && gg::GetAbnormalLevel(attacker,myself::Skill_GetAbnormalType(357564417)) == -1 ) {
			myself::AddUseSkillDesire(attacker,357564417,0,1,1000000);
			myself::RemoveAttackDesire(attacker.id);
		}
		if( ( attacker.is_pc != 0 || myself::IsInCategory(12,attacker.class_id) ) && gg::Rand(100) < 10 ) {
			if( myself::Skill_GetConsumeMP(264896513) < myself.sm.mp && myself::Skill_GetConsumeHP(264896513) < myself.sm.hp && myself::Skill_InReuseDelay(264896513) == 0 ) {
				myself::AddUseSkillDesire(attacker,264896513,0,0,1000000);
			}
		}
		if( attacker.is_pc != 0 || myself::IsInCategory(12,attacker.class_id) ) {
			myself::AddAttackDesire(attacker,0,( ( ( damage / myself.sm.max_hp ) / 0.050000 ) * 10000 ));
		}
	}

	EventHandler CLAN_ATTACKED(attacker,damage) {
		if( ( attacker.is_pc != 0 || myself::IsInCategory(12,attacker.class_id) ) && gg::Rand(100) < 2 ) {
			if( myself::Skill_GetConsumeMP(264896513) < myself.sm.mp && myself::Skill_GetConsumeHP(264896513) < myself.sm.hp && myself::Skill_InReuseDelay(264896513) == 0 ) {
				myself::AddUseSkillDesire(attacker,264896513,0,0,1000000);
			}
		}
		if( attacker.is_pc != 0 || myself::IsInCategory(12,attacker.class_id) ) {
			myself::AddAttackDesire(attacker,0,( ( ( damage / myself.sm.max_hp ) / 0.050000 ) * 5000 ));
		}
	}

	EventHandler SEE_SPELL(speller,skill_name_id) {
		if( myself::Skill_GetEffectPoint(skill_name_id) > 0 && gg::Rand(100) < 15 ) {
			if( myself::Skill_GetConsumeMP(264896513) < myself.sm.mp && myself::Skill_GetConsumeHP(264896513) < myself.sm.hp && myself::Skill_InReuseDelay(264896513) == 0 ) {
				myself::AddUseSkillDesire(speller,264896513,0,0,1000000);
			}
		}
	}

}
