@LabelIndex 317869
@StringIndex 44044
class 0 ark_guardians_corpse : citizen {
handler:
	EventHandler TALK_SELECTED(fhtml0,i0,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,348) == 1 && gg::GetMemoState(talker,348) < 8 && ( ( gg::GetMemoStateEx(talker,348,1) % 100 ) / 10 ) == 1 && gg::OwnItemCount(talker,4291) == 0 && gg::OwnItemCount(talker,4398) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"An Arrogant Search (In Progress)");
			}
			if( gg::HaveMemo(talker,348) == 1 && gg::GetMemoState(talker,348) < 8 && ( ( gg::GetMemoStateEx(talker,348,1) % 100 ) / 10 ) == 2 && gg::OwnItemCount(talker,4291) == 0 && gg::OwnItemCount(talker,4398) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"An Arrogant Search (In Progress)");
			}
			if( gg::HaveMemo(talker,348) == 1 && ( gg::OwnItemCount(talker,4291) > 0 || gg::OwnItemCount(talker,4398) > 0 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"An Arrogant Search (In Progress)");
			}
			if( _choiceN > 1 ) {
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 ) {
			switch(_code) {
				case 0: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,348) == 1 && gg::GetMemoState(talker,348) < 8 && ( ( gg::GetMemoStateEx(talker,348,1) % 100 ) / 10 ) == 1 && gg::OwnItemCount(talker,4291) == 0 && gg::OwnItemCount(talker,4398) == 0 ) ) {
						myself::SetCurrentQuestID(348);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						myself::ShowPage(talker,"ark_guardians_corpse_q0348_01.htm");
						i0 = gg::GetMemoStateEx(talker,348,1);
						myself::DeleteRadar(talker,-2908,44128,-2712,1);
						if( ( i0 % 10 ) != 0 ) {
							myself::SetFlagJournal(talker,348,18);
							myself::ShowQuestMark(talker,348);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
						myself::ShowQuestMark(talker,348);
						myself::SoundEffect(talker,"ItemSound.quest_middle");
						myself::CreateOnePrivateEx(1027184,"angel_killer",0,0,gg::FloatToInt(myself.sm.x),gg::FloatToInt(myself.sm.y),gg::FloatToInt(myself.sm.z),0,0,0,0);
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,348) == 1 && gg::GetMemoState(talker,348) < 8 && ( ( gg::GetMemoStateEx(talker,348,1) % 100 ) / 10 ) == 2 && gg::OwnItemCount(talker,4291) == 0 && gg::OwnItemCount(talker,4398) == 0 ) ) {
						myself::SetCurrentQuestID(348);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::GiveItem1(talker,4291,1);
							myself::ShowRadar(talker,-418,44174,-3568,1);
							myself::ShowPage(talker,"ark_guardians_corpse_q0348_02.htm");
						}
					}
					break;
				}
				case 2: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,348) == 1 && ( gg::OwnItemCount(talker,4291) > 0 || gg::OwnItemCount(talker,4398) > 0 ) ) ) {
						myself::SetCurrentQuestID(348);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						myself::ShowPage(talker,"ark_guardians_corpse_q0348_03.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

}
