@LabelIndex 376880
@StringIndex 55356
class 0 ossian : citizen {
handler:
	EventHandler TALK_SELECTED(fhtml0,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,246) == 1 && myself::GetOneTimeQuestFlag(talker,246) == 0 && gg::GetMemoState(talker,246) == ( ( 1 * 10 ) + 1 ) && talker.subjob_id != 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Path of the Noblesse, Precious Soul - 3 (In Progress)");
			}
			if( gg::HaveMemo(talker,246) == 1 && myself::GetOneTimeQuestFlag(talker,246) == 0 && gg::GetMemoState(talker,246) == ( ( 1 * 10 ) + 1 ) && talker.subjob_id == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Path of the Noblesse, Precious Soul - 3 (In Progress)");
			}
			if( gg::HaveMemo(talker,246) == 1 && gg::GetMemoState(talker,246) <= ( ( 2 * 10 ) + 2 ) && gg::GetMemoState(talker,246) >= ( ( 2 * 10 ) + 1 ) && talker.subjob_id != 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Path of the Noblesse, Precious Soul - 3 (In Progress)");
			}
			if( talker.subjob_id == 0 && gg::HaveMemo(talker,246) == 1 && gg::GetMemoState(talker,246) <= ( ( 2 * 10 ) + 2 ) && gg::GetMemoState(talker,246) >= ( ( 2 * 10 ) + 1 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Path of the Noblesse, Precious Soul - 3 (In Progress)");
			}
			if( gg::HaveMemo(talker,246) == 1 && gg::GetMemoState(talker,246) <= ( ( 3 * 10 ) + 2 ) && gg::GetMemoState(talker,246) >= ( ( 3 * 10 ) + 1 ) && talker.subjob_id != 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"Path of the Noblesse, Precious Soul - 3 (In Progress)");
			}
			if( gg::HaveMemo(talker,246) == 1 && gg::GetMemoState(talker,246) <= ( ( 3 * 10 ) + 2 ) && gg::GetMemoState(talker,246) >= ( ( 3 * 10 ) + 1 ) && talker.subjob_id == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 5;
				myself::AddChoice(5,"Path of the Noblesse, Precious Soul - 3 (In Progress)");
			}
			if( gg::HaveMemo(talker,246) == 1 && gg::GetMemoState(talker,246) == ( ( 4 * 10 ) + 1 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 6;
				myself::AddChoice(6,"Path of the Noblesse, Precious Soul - 3 (In Progress)");
			}
			if( talker.subjob_id == 0 && gg::HaveMemo(talker,246) == 1 && gg::GetMemoState(talker,246) == ( ( 4 * 10 ) + 1 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 7;
				myself::AddChoice(7,"Path of the Noblesse, Precious Soul - 3 (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,246) == 1 && myself::GetOneTimeQuestFlag(talker,246) == 0 && gg::GetMemoState(talker,246) == ( ( 1 * 10 ) + 1 ) && talker.subjob_id != 0 ) ) {
						myself::SetCurrentQuestID(246);
						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,246,1);
						myself::ShowPage(talker,"ossian_q0246_0101.htm");
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,246) == 1 && myself::GetOneTimeQuestFlag(talker,246) == 0 && gg::GetMemoState(talker,246) == ( ( 1 * 10 ) + 1 ) && talker.subjob_id == 0 ) ) {
						myself::SetCurrentQuestID(246);
						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,246) == 1 && gg::GetMemoState(talker,246) <= ( ( 2 * 10 ) + 2 ) && gg::GetMemoState(talker,246) >= ( ( 2 * 10 ) + 1 ) && talker.subjob_id != 0 ) ) {
						myself::SetCurrentQuestID(246);
						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( gg::GetMemoState(talker,246) == ( ( 2 * 10 ) + 2 ) && gg::OwnItemCount(talker,7591) >= 1 && gg::OwnItemCount(talker,7592) >= 1 ) {
							myself::SetHTMLCookie(talker,246,2);
							myself::ShowPage(talker,"ossian_q0246_0202.htm");
						} else {
							myself::ShowPage(talker,"ossian_q0246_0203.htm");
						}
					}
					break;
				}
				case 3: {
					if( _from_choice == 0 || ( talker.subjob_id == 0 && gg::HaveMemo(talker,246) == 1 && gg::GetMemoState(talker,246) <= ( ( 2 * 10 ) + 2 ) && gg::GetMemoState(talker,246) >= ( ( 2 * 10 ) + 1 ) ) ) {
						myself::SetCurrentQuestID(246);
						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,246) == 1 && gg::GetMemoState(talker,246) <= ( ( 3 * 10 ) + 2 ) && gg::GetMemoState(talker,246) >= ( ( 3 * 10 ) + 1 ) && talker.subjob_id != 0 ) ) {
						myself::SetCurrentQuestID(246);
						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( gg::GetMemoState(talker,246) == ( ( 3 * 10 ) + 2 ) && gg::OwnItemCount(talker,7593) >= 1 ) {
							myself::SetHTMLCookie(talker,246,3);
							myself::ShowPage(talker,"ossian_q0246_0303.htm");
						} else {
							myself::ShowPage(talker,"ossian_q0246_0304.htm");
						}
					}
					break;
				}
				case 5: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,246) == 1 && gg::GetMemoState(talker,246) <= ( ( 3 * 10 ) + 2 ) && gg::GetMemoState(talker,246) >= ( ( 3 * 10 ) + 1 ) && talker.subjob_id == 0 ) ) {
						myself::SetCurrentQuestID(246);
						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 6: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,246) == 1 && gg::GetMemoState(talker,246) == ( ( 4 * 10 ) + 1 ) ) ) {
						myself::SetCurrentQuestID(246);
						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,"ossian_q0246_0403.htm");
					}
					break;
				}
				case 7: {
					if( _from_choice == 0 || ( talker.subjob_id == 0 && gg::HaveMemo(talker,246) == 1 && gg::GetMemoState(talker,246) == ( ( 4 * 10 ) + 1 ) ) ) {
						myself::SetCurrentQuestID(246);
						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;
				}
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,i0,quest_id,reply,talker) {
		if( ask == 246 ) {
			myself::SetCurrentQuestID(246);
			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 == 246 ) {
			i0 = myself::GetHTMLCookie(talker,246,( 2 - 1 ));
			if( i0 != -1 ) {
				if( reply == 1 && gg::HaveMemo(talker,246) == 1 && talker.subjob_id != 0 ) {
					if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
						talker.quest_last_reward_time = myself::GetCurrentTick();
						myself::ShowPage(talker,"ossian_q0246_0201.htm");
						myself::SetMemoState(talker,246,( ( 2 * 10 ) + 1 ));
						myself::SetFlagJournal(talker,246,2);
						myself::ShowQuestMark(talker,246);
						myself::SoundEffect(talker,"ItemSound.quest_middle");
					}
				}
			}
		}
		if( ask == 246 ) {
			myself::SetCurrentQuestID(246);
			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 == 246 ) {
			i0 = myself::GetHTMLCookie(talker,246,( 3 - 1 ));
			if( i0 != -1 ) {
				if( reply == 1 && gg::HaveMemo(talker,246) == 1 ) {
					if( gg::OwnItemCount(talker,7591) >= 1 && gg::OwnItemCount(talker,7592) >= 1 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7591,1);
							myself::DeleteItem1(talker,7592,1);
							myself::ShowPage(talker,"ossian_q0246_0301.htm");
							myself::SetMemoState(talker,246,( ( 3 * 10 ) + 1 ));
							myself::SetFlagJournal(talker,246,4);
							myself::ShowQuestMark(talker,246);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
					} else {
						myself::ShowPage(talker,"ossian_q0246_0302.htm");
					}
				}
			}
		}
		if( ask == 246 ) {
			myself::SetCurrentQuestID(246);
			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 == 246 ) {
			i0 = myself::GetHTMLCookie(talker,246,( 4 - 1 ));
			if( i0 != -1 ) {
				if( reply == 1 && gg::HaveMemo(talker,246) == 1 && talker.subjob_id != 0 ) {
					if( gg::OwnItemCount(talker,7593) >= 1 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7593,1);
							myself::GiveItem1(talker,7594,1);
							myself::ShowPage(talker,"ossian_q0246_0401.htm");
							myself::SetMemoState(talker,246,( ( 4 * 10 ) + 1 ));
							myself::SetFlagJournal(talker,246,6);
							myself::ShowQuestMark(talker,246);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
					} else {
						myself::ShowPage(talker,"ossian_q0246_0402.htm");
					}
				}
			}
		}
		super;
	}

}
