@LabelIndex 223613
@StringIndex 25440
class 0 ark_guardian_elberoth : warrior_passive {
handler:
	EventHandler MY_DYING(always_list,c1,code_info,i0,i9,last_attacker,lparty,member,random1_list,target) {
		always_list = gg::AllocCodeInfoList();
		random1_list = gg::AllocCodeInfoList();
		target = last_attacker;
		always_list::SetInfo(0,target);
		while( gg::IsNull(code_info = always_list::Next()) == 0 ) {
			switch(code_info.code) {
				case 0: {
					myself::SetCurrentQuestID(348);
					target = code_info::RandomSelectOne();
					if( gg::IsNull(target) == 0 && myself::DistFromMe(target) <= 1500 ) {
						c1 = myself::GetLastAttacker();
						if( c1.master ) {
							c1 = c1.master;
						}
						if( gg::HaveMemo(c1,348) && gg::GetMemoStateEx(c1,348,0) < 8 && ( ( gg::GetMemoStateEx(c1,348,1) % 1000 ) / 100 ) == 1 && gg::OwnItemCount(c1,4292) == 0 && gg::OwnItemCount(c1,4397) == 0 ) {
							i0 = gg::GetMemoStateEx(c1,348,1);
							i0 = ( i0 + 100 );
							myself::SetMemoStateEx(c1,348,1,i0);
							if( ( i0 % 10 ) != 0 ) {
								myself::SetFlagJournal(c1,348,11);
								myself::ShowQuestMark(c1,348);
							}
							myself::GiveItem1(c1,4292,1);
							myself::SoundEffect(c1,"ItemSound.quest_itemget");
							myself::Say(gg::MakeFString(34832,"","","","",""));
						}
					}
					break;
				}
			}
		}
		code_info = random1_list::RandomSelectOne();
		if( gg::IsNull(code_info) == 0 ) {
			switch (code_info.code) {
			}
		}
		super;
	}

	EventHandler ATTACKED(attacker,damage) {
		myself::SetCurrentQuestID(348);
		switch(myself.i_quest0) {
			case 0: {
				myself::Say(gg::MakeFString(34833,"","","","",""));
				myself.i_quest0 = 1;
				break;
			}
			case 1: {
				break;
			}
		}
		super;
	}

	EventHandler TIMER_FIRED_EX(c0,timer_id) {
		myself::SetCurrentQuestID(348);
		if( timer_id == 34802 ) {
			myself::Despawn();
		}
		super;
	}

	EventHandler CREATED(i0) {
		myself::SetCurrentQuestID(348);
		myself::AddTimerEx(34804,( 1000 * 600 ));
		myself::Say(gg::MakeFString(34837,"","","","",""));
		super;
	}

}
