@LabelIndex 239476
@StringIndex 28914
class 0 pa36_keym_kinsus : ai_keym_firearea {
handler:
	EventHandler MY_DYING(always_list,c0,c1,code_info,i0,i1,i9,last_attacker,lparty,member,random1_list,target) {
		always_list = gg::AllocCodeInfoList();
		random1_list = gg::AllocCodeInfoList();
		target = last_attacker;
		if( gg::HaveMemo(target,128) == 1 && gg::GetMemoState(target,128) == 5 && myself::GetOneTimeQuestFlag(target,128) == 0 ) {
			always_list::SetInfo(0,target);
		}
		while( gg::IsNull(code_info = always_list::Next()) == 0 ) {
			switch(code_info.code) {
				case 0: {
					myself::SetCurrentQuestID(128);
					target = code_info::RandomSelectOne();
					if( gg::IsNull(target) == 0 && myself::DistFromMe(target) <= 1500 ) {
						myself::GiveItem1(target,13134,1);
						myself::GiveItem1(target,13039,1);
						myself::DeleteItem1(target,13133,gg::OwnItemCount(target,13133));
						myself::SetMemoState(target,128,6);
						myself::SetFlagJournal(target,128,6);
						myself::ShowQuestMark(target,128);
						myself::SoundEffect(target,"ItemSound.quest_middle");
					}
					break;
				}
			}
		}
		code_info = random1_list::RandomSelectOne();
		if( gg::IsNull(code_info) == 0 ) {
			switch (code_info.code) {
			}
		}
		super;
	}

}
