@LabelIndex 152481
@StringIndex 19333
class 0 mist_terror : warrior_aggressive {
handler:
	EventHandler MY_DYING(always_list,code_info,i9,last_attacker,lparty,member,random1_list,target) {
		always_list = gg::AllocCodeInfoList();
		random1_list = gg::AllocCodeInfoList();
		target = last_attacker;
		if( gg::HaveMemo(target,162) == 1 && gg::OwnItemCount(target,1159) < 3 ) {
			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(162);
					target = code_info::RandomSelectOne();
					if( gg::IsNull(target) == 0 && myself::DistFromMe(target) <= 1500 ) {
						if( gg::Rand(100) < 23 && gg::OwnItemCount(target,1159) < 3 ) {
							myself::GiveItem1(target,1159,1);
							if( gg::OwnItemCount(target,1159) >= 2 ) {
								myself::SoundEffect(target,"ItemSound.quest_middle");
								if( gg::OwnItemCount(target,1158) >= 10 ) {
									myself::SetFlagJournal(target,162,2);
									myself::ShowQuestMark(target,162);
								}
							} else {
								myself::SoundEffect(target,"ItemSound.quest_itemget");
							}
						}
					}
					break;
				}
			}
		}
		super;
	}

}
