@LabelIndex 377413
@StringIndex 55445
class 0 ogmar : citizen {
handler:
	EventHandler TALK_SELECTED(fhtml0,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,241) == 1 && gg::GetMemoState(talker,241) == ( ( 10 * 10 ) + 1 ) && talker.subjob_id != 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Path of the Noblesse, Precious Soul - 1 (In Progress)");
			}
			if( talker.subjob_id == 0 && gg::HaveMemo(talker,241) == 1 && gg::GetMemoState(talker,241) == ( ( 10 * 10 ) + 1 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Path of the Noblesse, Precious Soul - 1 (In Progress)");
			}
			if( gg::HaveMemo(talker,241) == 1 && gg::GetMemoState(talker,241) == ( ( 11 * 10 ) + 1 ) && talker.subjob_id != 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Path of the Noblesse, Precious Soul - 1 (In Progress)");
			}
			if( talker.subjob_id == 0 && gg::HaveMemo(talker,241) == 1 && gg::GetMemoState(talker,241) == ( ( 11 * 10 ) + 1 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Path of the Noblesse, Precious Soul - 1 (In Progress)");
			}
			if( gg::HaveMemo(talker,242) == 1 && talker.subjob_id == 0 && myself::GetOneTimeQuestFlag(talker,242) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"Path of the Noblesse, Precious Soul - 2 (In Progress)");
			}
			if( gg::HaveMemo(talker,242) == 1 && talker.subjob_id != 0 && gg::GetMemoState(talker,242) == 2 && myself::GetOneTimeQuestFlag(talker,242) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 5;
				myself::AddChoice(5,"Path of the Noblesse, Precious Soul - 2 (In Progress)");
			}
			if( gg::HaveMemo(talker,242) == 1 && talker.subjob_id != 0 && gg::GetMemoState(talker,242) >= 3 && myself::GetOneTimeQuestFlag(talker,242) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 6;
				myself::AddChoice(6,"Path of the Noblesse, Precious Soul - 2 (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,241) == 1 && gg::GetMemoState(talker,241) == ( ( 10 * 10 ) + 1 ) && talker.subjob_id != 0 ) ) {
						myself::SetCurrentQuestID(241);
						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::SetHTMLCookie(talker,241,10);
						myself::ShowPage(talker,"ogmar_q0241_1001.htm");
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( talker.subjob_id == 0 && gg::HaveMemo(talker,241) == 1 && gg::GetMemoState(talker,241) == ( ( 10 * 10 ) + 1 ) ) ) {
						myself::SetCurrentQuestID(241);
						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,"quest_not_subclass001.htm");
					}
					break;
				}
				case 2: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,241) == 1 && gg::GetMemoState(talker,241) == ( ( 11 * 10 ) + 1 ) && talker.subjob_id != 0 ) ) {
						myself::SetCurrentQuestID(241);
						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,"ogmar_q0241_1102.htm");
					}
					break;
				}
				case 3: {
					if( _from_choice == 0 || ( talker.subjob_id == 0 && gg::HaveMemo(talker,241) == 1 && gg::GetMemoState(talker,241) == ( ( 11 * 10 ) + 1 ) ) ) {
						myself::SetCurrentQuestID(241);
						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,"quest_not_subclass001.htm");
					}
					break;
				}
				case 4: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,242) == 1 && talker.subjob_id == 0 && myself::GetOneTimeQuestFlag(talker,242) == 0 ) ) {
						myself::SetCurrentQuestID(242);
						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,"quest_not_subclass001.htm");
					}
					break;
				}
				case 5: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,242) == 1 && talker.subjob_id != 0 && gg::GetMemoState(talker,242) == 2 && myself::GetOneTimeQuestFlag(talker,242) == 0 ) ) {
						myself::SetCurrentQuestID(242);
						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,"ogmar_q0242_01.htm");
					}
					break;
				}
				case 6: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,242) == 1 && talker.subjob_id != 0 && gg::GetMemoState(talker,242) >= 3 && myself::GetOneTimeQuestFlag(talker,242) == 0 ) ) {
						myself::SetCurrentQuestID(242);
						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,"ogmar_q0242_03.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,i0,quest_id,reply,talker) {
		if( ask == 241 ) {
			myself::SetCurrentQuestID(241);
			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 == 241 ) {
			i0 = myself::GetHTMLCookie(talker,241,( 11 - 1 ));
			if( i0 != -1 ) {
				if( reply == 1 && gg::HaveMemo(talker,241) == 1 ) {
					if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
						talker.quest_last_reward_time = myself::GetCurrentTick();
						myself::ShowPage(talker,"ogmar_q0241_1101.htm");
						myself::SetMemoState(talker,241,( ( 11 * 10 ) + 1 ));
						myself::SetFlagJournal(talker,241,13);
						myself::ShowQuestMark(talker,241);
						myself::SoundEffect(talker,"ItemSound.quest_middle");
					}
				}
			}
		}
		if( ask == 242 ) {
			myself::SetCurrentQuestID(242);
			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 == 242 ) {
			if( reply == 1 && gg::GetMemoState(talker,242) == 2 ) {
				myself::SetMemoState(talker,242,3);
				myself::ShowPage(talker,"ogmar_q0242_02.htm");
				myself::SetFlagJournal(talker,242,3);
				myself::ShowQuestMark(talker,242);
				myself::SoundEffect(talker,"ItemSound.quest_middle");
			}
		}
		super;
	}

}
