@LabelIndex 381692
@StringIndex 56197
class 0 keier : citizen {
handler:
	EventHandler TALK_SELECTED(fhtml0,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,115) == 1 && gg::GetMemoState(talker,115) == 8 && myself::GetOneTimeQuestFlag(talker,115) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"The Other Side of Truth (In Progress)");
			}
			if( gg::HaveMemo(talker,115) == 1 && gg::GetMemoState(talker,115) == 9 && myself::GetOneTimeQuestFlag(talker,115) == 0 && gg::OwnItemCount(talker,8082) >= 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"The Other Side of Truth (In Progress)");
			}
			if( gg::HaveMemo(talker,115) == 1 && gg::GetMemoState(talker,115) == 9 && myself::GetOneTimeQuestFlag(talker,115) == 0 && gg::OwnItemCount(talker,8082) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"The Other Side of Truth (In Progress)");
			}
			if( gg::HaveMemo(talker,115) == 1 && gg::GetMemoState(talker,115) == 11 && myself::GetOneTimeQuestFlag(talker,115) == 0 && gg::OwnItemCount(talker,8082) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"The Other Side of Truth (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,115) == 1 && gg::GetMemoState(talker,115) == 8 && myself::GetOneTimeQuestFlag(talker,115) == 0 ) ) {
						myself::SetCurrentQuestID(115);
						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,"keier_q0115_01.htm");
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,115) == 1 && gg::GetMemoState(talker,115) == 9 && myself::GetOneTimeQuestFlag(talker,115) == 0 && gg::OwnItemCount(talker,8082) >= 1 ) ) {
						myself::SetCurrentQuestID(115);
						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,"keier_q0115_03.htm");
					}
					break;
				}
				case 2: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,115) == 1 && gg::GetMemoState(talker,115) == 9 && myself::GetOneTimeQuestFlag(talker,115) == 0 && gg::OwnItemCount(talker,8082) == 0 ) ) {
						myself::SetCurrentQuestID(115);
						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,8082,1);
							myself::ShowPage(talker,"keier_q0115_04.htm");
						}
					}
					break;
				}
				case 3: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,115) == 1 && gg::GetMemoState(talker,115) == 11 && myself::GetOneTimeQuestFlag(talker,115) == 0 && gg::OwnItemCount(talker,8082) == 0 ) ) {
						myself::SetCurrentQuestID(115);
						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,"keier_q0115_05.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,reply,talker) {
		if( ask == 115 ) {
			myself::SetCurrentQuestID(115);
			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( ask == 115 && myself::GetOneTimeQuestFlag(talker,115) == 0 ) {
			if( reply == 1 && gg::HaveMemo(talker,115) == 1 && gg::GetMemoState(talker,115) == 8 ) {
				if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
					talker.quest_last_reward_time = myself::GetCurrentTick();
					myself::GiveItem1(talker,8082,1);
					myself::SetMemoState(talker,115,9);
					myself::ShowPage(talker,"keier_q0115_02.htm");
					myself::SetFlagJournal(talker,115,9);
					myself::ShowQuestMark(talker,115);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
					myself::CreateOnePrivateEx(1032019,"suspicious_men",0,0,gg::FloatToInt(( myself.sm.x + 50 )),gg::FloatToInt(( myself.sm.y + 50 )),gg::FloatToInt(myself.sm.z),0,8,0,0);
				}
			}
		}
		super;
	}

}
