@LabelIndex 227426
@StringIndex 27381
class 0 q_black_leopard : warrior_passive {
handler:
	EventHandler MY_DYING(always_list,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,416) == 1 && gg::GetMemoState(target,416) >= 102 && gg::GetMemoState(target,416) <= 107 ) {
			random1_list::SetInfo(0,target);
		}
		if( gg::HaveMemo(target,416) == 1 && gg::GetMemoState(target,416) >= 102 && gg::GetMemoState(target,416) <= 107 ) {
			random1_list::SetInfo(0,target);
		}
		if( gg::IsNull(lparty) == 0 ) {
			for(i9 = 0; i9 < lparty.member_count; i9++) {
				target = myself::GetMemberOfParty(lparty,i9);
				if( gg::HaveMemo(target,416) == 1 && gg::GetMemoState(target,416) >= 102 && gg::GetMemoState(target,416) <= 107 ) {
					random1_list::SetInfo(0,target);
				}
			}
		}
		while( gg::IsNull(code_info = always_list::Next()) == 0 ) {
			switch (code_info.code) {
			}
		}
		code_info = random1_list::RandomSelectOne();
		if( gg::IsNull(code_info) == 0 ) {
			switch(code_info.code) {
				case 0: {
					myself::SetCurrentQuestID(416);
					target = code_info::RandomSelectOne();
					if( gg::IsNull(target) == 0 && myself::DistFromMe(target) <= 1500 ) {
						i1 = gg::Rand(100);
						i0 = gg::GetMemoState(target,416);
						if( i0 == 102 ) {
							myself::SetMemoState(target,416,103);
						} else if( i0 == 103 ) {
							myself::SetMemoState(target,416,104);
							myself::SetFlagJournal(target,416,15);
							myself::ShowQuestMark(target,416);
							myself::SoundEffect(target,"ItemSound.quest_middle");
							if( target.is_pc == 1 && gg::Rand(100) < 66 ) {
								myself::Say(gg::MakeFString(41651,target.name,"","","",""));
							}
						} else if( i0 == 105 ) {
							myself::SetFlagJournal(target,416,17);
							myself::ShowQuestMark(target,416);
							myself::SoundEffect(target,"ItemSound.quest_middle");
							myself::SetMemoState(target,416,106);
							if( target.is_pc == 1 && gg::Rand(100) < 66 ) {
								myself::Say(gg::MakeFString(41652,target.name,"","","",""));
							}
						} else if( i0 == 107 ) {
							myself::SetFlagJournal(target,416,19);
							myself::ShowQuestMark(target,416);
							myself::SoundEffect(target,"ItemSound.quest_middle");
							myself::SetMemoState(target,416,108);
						}
					}
					break;
				}
			}
		}
		super;
	}

}
