@LabelIndex 220753
@StringIndex 24861
class 0 baranka_messenger : party_leader_patrol {
handler:
	EventHandler MY_DYING(always_list,c1,code_info,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(107);
					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,107) == 1 ) {
							if( gg::OwnItemCount(c1,1553) && gg::OwnItemCount(c1,1557) == 0 ) {
								myself::GiveItem1(c1,1557,1);
								myself::SetFlagJournal(c1,107,3);
								myself::ShowQuestMark(c1,107);
								myself::SoundEffect(c1,"ItemSound.quest_itemget");
							}
							if( gg::OwnItemCount(c1,1554) && gg::OwnItemCount(c1,1556) == 0 ) {
								myself::GiveItem1(c1,1556,1);
								myself::SetFlagJournal(c1,107,5);
								myself::ShowQuestMark(c1,107);
								myself::SoundEffect(c1,"ItemSound.quest_itemget");
							}
							if( gg::OwnItemCount(c1,1555) && gg::OwnItemCount(c1,1558) == 0 ) {
								myself::GiveItem1(c1,1558,1);
								myself::SetFlagJournal(c1,107,7);
								myself::ShowQuestMark(c1,107);
								myself::SoundEffect(c1,"ItemSound.quest_itemget");
							}
						}
					}
					break;
				}
			}
		}
		code_info = random1_list::RandomSelectOne();
		if( gg::IsNull(code_info) == 0 ) {
			switch (code_info.code) {
			}
		}
		super;
	}

}
