@LabelIndex 114811
@StringIndex 0
class 0 inzone_raid_53_normal_private : default_npc {
parameter:
	int	skill_explosion = 302383110;
	int	basic_hate = 100;

handler:
	EventHandler CREATED() {
		myself::SetMaxHateListSize(10);
		myself.c_ai0 = gg::GetNullCreature();
		myself.c_ai3 = gg::GetNullCreature();
	}

	EventHandler MOVE_TO_FINISHED(x,y,z) {
		if( myself::DistFromMe(myself.c_ai3) <= 100 ) {
			myself::AddUseSkillDesire(myself.sm,skill_explosion,1,0,999999999999999999);
		} else {
			myself::AddMoveToDesire(gg::FloatToInt(myself.c_ai3.x),gg::FloatToInt(myself.c_ai3.y),0,100000000);
		}
	}

	EventHandler USE_SKILL_FINISHED(skill_name_id,success) {
		if( skill_name_id == 302383110 && success == 1 ) {
			myself::RemoveAllDesire();
			myself::Suicide();
		}
	}

	EventHandler SCRIPT_EVENT(script_event_arg1,script_event_arg2,c0,i0) {
		if( script_event_arg1 == 4 ) {
			myself::Despawn();
		}
		if( script_event_arg1 == 7 ) {
			myself.c_ai3 = gg::GetCreatureFromIndex(script_event_arg2);
			myself::AddMoveToDesire(gg::FloatToInt(myself.c_ai3.x),gg::FloatToInt(myself.c_ai3.y),0,100000000);
		}
		if( script_event_arg1 == 8 ) {
			myself.c_ai0 = gg::GetCreatureFromIndex(script_event_arg2);
			if( myself::IsNullCreature(myself.c_ai0) == 0 ) {
				gg::SendScriptEvent(myself.c_ai0,6,gg::GetIndexFromCreature(myself.sm));
			}
		}
	}

	EventHandler PARTY_DIED(private) {
		if( private == myself.boss ) {
			myself::Despawn();
		}
	}

}
