@LabelIndex 395228
@StringIndex 58894
class 0 present_statue : citizen {
handler:
	EventHandler TALK_SELECTED(fhtml0,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,178) == 1 && gg::GetMemoState(talker,178) == 4 && myself::GetOneTimeQuestFlag(talker,178) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Iconic Trinity (In Progress)");
			}
			if( gg::HaveMemo(talker,178) == 1 && gg::GetMemoState(talker,178) == 5 && myself::GetOneTimeQuestFlag(talker,178) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Iconic Trinity (In Progress)");
			}
			if( gg::HaveMemo(talker,178) == 1 && gg::GetMemoState(talker,178) == 6 && myself::GetOneTimeQuestFlag(talker,178) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Iconic Trinity (In Progress)");
			}
			if( ( gg::HaveMemo(talker,178) == 1 && ( gg::GetMemoState(talker,178) == 7 || gg::GetMemoState(talker,178) == 8 ) ) && myself::GetOneTimeQuestFlag(talker,178) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Iconic Trinity (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,178) == 1 && gg::GetMemoState(talker,178) == 4 && myself::GetOneTimeQuestFlag(talker,178) == 0 ) ) {
						myself::SetCurrentQuestID(178);
						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,"present_statue_q0178_01.htm");
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,178) == 1 && gg::GetMemoState(talker,178) == 5 && myself::GetOneTimeQuestFlag(talker,178) == 0 ) ) {
						myself::SetCurrentQuestID(178);
						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,"present_statue_q0178_03.htm");
						myself::SetMemoStateEx(talker,178,1,0);
					}
					break;
				}
				case 2: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,178) == 1 && gg::GetMemoState(talker,178) == 6 && myself::GetOneTimeQuestFlag(talker,178) == 0 ) ) {
						myself::SetCurrentQuestID(178);
						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,"present_statue_q0178_09.htm");
					}
					break;
				}
				case 3: {
					if( _from_choice == 0 || ( ( gg::HaveMemo(talker,178) == 1 && ( gg::GetMemoState(talker,178) == 7 || gg::GetMemoState(talker,178) == 8 ) ) && myself::GetOneTimeQuestFlag(talker,178) == 0 ) ) {
						myself::SetCurrentQuestID(178);
						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,"present_statue_q0178_15.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,fhtml0,i0,reply,talker) {
		if( ask == 178 ) {
			myself::SetCurrentQuestID(178);
			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 == 178 ) {
			if( reply == 1 ) {
				if( gg::HaveMemo(talker,178) == 1 && gg::GetMemoState(talker,178) == 4 && myself::GetOneTimeQuestFlag(talker,178) == 0 ) {
					myself::SetMemoState(talker,178,5);
					myself::ShowPage(talker,"present_statue_q0178_02.htm");
				}
			}
			if( reply == 2 ) {
				if( gg::HaveMemo(talker,178) == 1 && gg::GetMemoState(talker,178) == 5 && myself::GetOneTimeQuestFlag(talker,178) == 0 ) {
					myself::ShowPage(talker,"present_statue_q0178_03.htm");
					myself::SetMemoStateEx(talker,178,1,0);
				}
			}
			if( reply == 3 ) {
				if( gg::HaveMemo(talker,178) == 1 && gg::GetMemoState(talker,178) == 5 && myself::GetOneTimeQuestFlag(talker,178) == 0 ) {
					i0 = gg::GetMemoStateEx(talker,178,1);
					myself::SetMemoStateEx(talker,178,1,( i0 + 1 ));
					myself::ShowPage(talker,"present_statue_q0178_04.htm");
				}
			}
			if( reply == 4 ) {
				if( gg::HaveMemo(talker,178) == 1 && gg::GetMemoState(talker,178) == 5 && myself::GetOneTimeQuestFlag(talker,178) == 0 ) {
					i0 = gg::GetMemoStateEx(talker,178,1);
					myself::SetMemoStateEx(talker,178,1,( i0 + 10 ));
					myself::ShowPage(talker,"present_statue_q0178_05.htm");
				}
			}
			if( reply == 5 ) {
				if( gg::HaveMemo(talker,178) == 1 && gg::GetMemoState(talker,178) == 5 && myself::GetOneTimeQuestFlag(talker,178) == 0 ) {
					i0 = gg::GetMemoStateEx(talker,178,1);
					myself::SetMemoStateEx(talker,178,1,( i0 + 100 ));
					myself::ShowPage(talker,"present_statue_q0178_06.htm");
				}
			}
			if( reply == 6 ) {
				if( gg::HaveMemo(talker,178) == 1 && gg::GetMemoState(talker,178) == 5 && myself::GetOneTimeQuestFlag(talker,178) == 0 ) {
					if( gg::GetMemoStateEx(talker,178,1) == 111 ) {
						myself::SetMemoState(talker,178,6);
						myself::SetMemoStateEx(talker,178,1,0);
						myself::ShowPage(talker,"present_statue_q0178_07.htm");
					} else if( gg::GetMemoStateEx(talker,178,1) != 111 ) {
						myself::ShowPage(talker,"present_statue_q0178_08.htm");
					}
				}
			}
			if( reply == 7 ) {
				myself::ShowPage(talker,"present_statue_q0178_09.htm");
			}
			if( reply == 10 ) {
				myself::ShowPage(talker,"present_statue_q0178_10.htm");
			}
			if( reply == 11 ) {
				myself::FHTML_SetFileName(fhtml0,"present_statue_q0178_11.htm");
				myself::FHTML_SetStr(fhtml0,"name1",talker.name);
				myself::ShowFHTML(talker,fhtml0);
			}
			if( reply == 12 ) {
				myself::FHTML_SetFileName(fhtml0,"present_statue_q0178_12.htm");
				myself::FHTML_SetStr(fhtml0,"name1",talker.name);
				myself::ShowFHTML(talker,fhtml0);
			}
			if( reply == 13 ) {
				myself::FHTML_SetFileName(fhtml0,"present_statue_q0178_13.htm");
				myself::FHTML_SetStr(fhtml0,"name1",talker.name);
				myself::ShowFHTML(talker,fhtml0);
			}
			if( reply == 14 ) {
				if( gg::HaveMemo(talker,178) == 1 && gg::GetMemoState(talker,178) == 6 && myself::GetOneTimeQuestFlag(talker,178) == 0 ) {
					myself::SetMemoState(talker,178,7);
					myself::FHTML_SetFileName(fhtml0,"present_statue_q0178_14.htm");
					myself::FHTML_SetStr(fhtml0,"name1",talker.name);
					myself::ShowFHTML(talker,fhtml0);
					myself::SetFlagJournal(talker,178,3);
					myself::ShowQuestMark(talker,178);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
				}
			}
		}
		super;
	}

}
