@LabelIndex 137100
@StringIndex 0
class 0 ai_silentbasin_trguard_a : default_npc {
parameter:
	int	IsAggressive = 1;
	int	AttackRange = 2;
	int	MovingAttack = 0;
	int	Skill01_MainAttack = 1;
	int	Skill01_ID = 272433162;

handler:
	EventHandler CREATED() {
		myself::AddTimerEx(2519001,( ( 5 * 60 ) * 1000 ));
	}

	EventHandler SEE_CREATURE(creature) {
		if( creature.summon_type == 1 || creature.summon_type == 2 ) {
			myself::AddAttackDesire(creature.master,0,20000);
			myself::AddUseSkillDesire(creature.master,Skill01_ID,0,0,50000000);
		} else {
			myself::AddAttackDesire(creature,0,20000);
			myself::AddUseSkillDesire(creature,Skill01_ID,0,0,50000000);
		}
	}

	EventHandler CLAN_ATTACKED(attacker) {
		if( attacker.summon_type == 1 || attacker.summon_type == 2 ) {
			myself::AddAttackDesire(attacker.master,0,20000);
			myself::AddUseSkillDesire(attacker.master,Skill01_ID,0,0,50000000);
		} else {
			myself::AddAttackDesire(attacker,0,20000);
			myself::AddUseSkillDesire(attacker,Skill01_ID,0,0,50000000);
		}
	}

	EventHandler ATTACKED(attacker) {
		if( attacker.summon_type == 1 || attacker.summon_type == 2 ) {
			myself::AddAttackDesire(attacker.master,0,20000);
			myself::AddUseSkillDesire(attacker.master,Skill01_ID,0,0,50000000);
		} else {
			myself::AddAttackDesire(attacker,0,20000);
			myself::AddUseSkillDesire(attacker,Skill01_ID,0,0,50000000);
		}
	}

	EventHandler PARTY_ATTACKED(attacker,private,damage,f0) {
		if( attacker.summon_type == 1 || attacker.summon_type == 2 ) {
			myself::AddAttackDesire(attacker.master,0,20000);
			myself::AddUseSkillDesire(attacker.master,Skill01_ID,0,0,50000000);
		} else {
			myself::AddAttackDesire(attacker,0,20000);
			myself::AddUseSkillDesire(attacker,Skill01_ID,0,0,50000000);
		}
	}

	EventHandler SCRIPT_EVENT(script_event_arg1,script_event_arg2) {
		if( script_event_arg1 == 10101010 ) {
			if( script_event_arg2 == 5 ) {
				myself::SetVisible(0);
				myself::Suicide();
			}
			if( script_event_arg2 == 1 ) {
				myself::AddTimerEx(2519001,( 60 * 1000 ));
			}
		}
	}

	EventHandler TIMER_FIRED_EX(timer_id) {
		if( timer_id == 2519001 ) {
			myself::SetVisible(0);
			myself::Suicide();
		}
	}

}
