@LabelIndex 228465
@StringIndex 27767
class 0 evil_of_shilen9 : warrior_basic {
handler:
	EventHandler MY_DYING(always_list,code_info,i9,last_attacker,lparty,member,npc0,random1_list,target) {
		always_list = gg::AllocCodeInfoList();
		random1_list = gg::AllocCodeInfoList();
		target = last_attacker;
		if( gg::HaveMemo(target,193) == 1 && gg::GetMemoState(target,193) == 3 && target.dbid == myself.sm.param2 ) {
			always_list::SetInfo(0,target);
		}
		while( gg::IsNull(code_info = always_list::Next()) == 0 ) {
			switch(code_info.code) {
				case 0: {
					myself::SetCurrentQuestID(197);
					target = code_info::RandomSelectOne();
					if( gg::IsNull(target) == 0 && myself::DistFromMe(target) <= 1500 ) {
						if( target.is_pc == 1 ) {
							myself::Say(gg::MakeFString(19306,"","","","",""));
							myself::SetMemoState(target,197,4);
							myself::SoundEffect(target,"ItemSound.quest_middle");
							myself::GiveItem1(target,14357,1);
							myself::VoiceEffect(target,"tutorial_voice_003",2000);
						}
						npc0 = gg::GetNPCFromID(myself.sm.param3);
						if( gg::IsNull(npc0) == 0 ) {
							if( npc0.i_quest0 == 1 ) {
								npc0.i_quest0 = 0;
							}
						}
					}
					break;
				}
			}
		}
		code_info = random1_list::RandomSelectOne();
		if( gg::IsNull(code_info) == 0 ) {
			switch (code_info.code) {
			}
		}
		super;
	}

	EventHandler TIMER_FIRED_EX(c0,npc0,talker,timer_id) {
		myself::SetCurrentQuestID(197);
		if( timer_id == 19701 ) {
			c0 = gg::GetCreatureFromIndex(myself.sm.param1);
			if( myself::IsNullCreature(c0) == 0 ) {
				if( c0 ) {
					if( c0.is_pc == 1 ) {
						myself::Say(gg::MakeFString(19304,c0.name,"","","",""));
						myself::VoiceEffect(talker,"tutorial_voice_003",2000);
					}
				}
			}
		} else if( timer_id == 19702 ) {
			npc0 = gg::GetNPCFromID(myself.sm.param3);
			if( gg::IsNull(npc0) == 0 ) {
				if( npc0.i_quest0 == 1 ) {
					npc0.i_quest0 = 0;
					myself::Say(gg::MakeFString(19305,"","","","",""));
				}
			}
			myself::Despawn();
		}
		super;
	}

	EventHandler CREATED() {
		myself::SetCurrentQuestID(197);
		myself::AddTimerEx(19701,500);
		myself::AddTimerEx(19702,( 1000 * 300 ));
		super;
	}

}
