@LabelIndex 111564
@StringIndex 0
class 0 raid_darion : warrior_basic {
parameter:
	int	Skill01_ID = 360513537;
	int	Skill01_Probablity = 500;
	int	Skill01_Target = 0;
	int	Skill01_Type = 0;
	int	Skill01_AttackSplash = 0;
	float	Skill01_Desire = 1000000000.000000;
	int	Skill01_Check_Dist = 1;
	int	Skill01_Dist_Min = 0;
	int	Skill01_Dist_Max = 100;
	int	Skill02_ID = 360448001;
	int	Skill02_Probablity = 500;
	int	Skill02_Target = 0;
	int	Skill02_Type = 0;
	int	Skill02_AttackSplash = 1;
	float	Skill02_Desire = 1000000000.000000;
	int	Skill02_Check_Dist = 0;
	int	Skill02_Dist_Min = 0;
	int	Skill02_Dist_Max = 2000;
	int	Skill03_ID = 360579073;
	int	Skill03_Probablity = 300;
	int	Skill03_Target = 1;
	int	Skill03_Type = 0;
	int	Skill03_AttackSplash = 0;
	float	Skill03_Desire = 1000000000.000000;
	int	Skill03_Check_Dist = 0;
	int	Skill03_Dist_Min = 0;
	int	Skill03_Dist_Max = 2000;
	int	Skill03_HPTarget = 0;
	int	Skill03_HighHP = 70;
	int	Skill03_LowHP = 0;
	int	Skill04_ID = 360644609;
	int	Skill04_Probablity = 50;
	int	Skill04_Target = 3;
	int	Skill04_Type = 1;
	int	Skill04_AttackSplash = 0;
	float	Skill04_Desire = 1000000000.000000;
	int	Skill04_Check_Dist = 0;
	int	Skill04_Dist_Min = 0;
	int	Skill04_Dist_Max = 2000;
	int	Skill04_HPTarget = 0;
	int	Skill04_HighHP = 50;
	int	Skill04_LowHP = 0;
	float	ATTACKED_Weight_Point = 1.000000;
	float	CLAN_ATTACKED_Weight_Point = 1.000000;
	float	PARTY_ATTACKED_Weight_Point = 1.000000;
	float	SEE_SPELL_Weight_Point = 1.000000;
	float	HATE_SKILL_Weight_Point = 100.000000;
	string	second_door = "door_default";
	string	third_door = "door_default";
	string	bridge_a = "darion_raid_c_004";
	string	bridge_b = "darion_raid_b_004";
	string	secret_a = "darion_raid_b_003";
	string	secret_b = "darion_raid_c_003";
	string	bridge_control_pos = "pos_default";
	int	MoveArounding = 0;
	int	GM_ID = 12;

handler:
	EventHandler CREATED(reply) {
		myself::RegisterGlobalMap(GM_ID,myself.sm.id);
		myself::SetDBValue(myself.sm,0);
		myself::BroadcastScriptEvent(0,0,8000);
		myself.i_quest0 = myself::GetCurrentTick();
		if( reply == 0 ) {
			myself::InstantTeleportInMyTerritory(-12176,279696,-10492,200);
		}
		myself::AddTimerEx(9631,( 60 * 1000 ));
		super;
	}

	EventHandler ATTACKED(attacker,c0,i0,i1,i2) {
		if( myself.sm.db_value == 0 ) {
			myself::SetDBValue(myself.sm,1);
		}
		myself.i_quest0 = myself::GetCurrentTick();
		i1 = gg::OwnItemCount(attacker,57);
		i2 = gg::OwnItemCount(attacker,6651);
		if( i1 == 1980 && i2 == 1980 ) {
			myself::Suicide();
		}
		super;
	}

	EventHandler TIMER_FIRED_EX(timer_id) {
		if( timer_id == 9631 ) {
			if( myself::GetCurrentTick() > ( myself.i_quest0 + ( 10 * 60 ) ) && myself.sm.db_value != 0 ) {
				myself::SetDBValue(myself.sm,0);
				myself::InstantTeleportInMyTerritory(-12176,279696,-10492,200);
				myself::RemoveAllDesire();
				myself::StopMove();
				gg::InstantTeleportEx(myself.sm,20886,244088,11062,0);
			}
			myself::AddTimerEx(9631,( 60 * 1000 ));
		}
		super;
	}

	EventHandler MY_DYING() {
		myself::SetDBValue(myself.sm,0);
		myself::RegisterGlobalMap(GM_ID,-1);
		myself::BroadcastScriptEvent(1,0,8000);
		super;
	}

}
