@LabelIndex 394155
@StringIndex 58637
class 0 mother_nornil_q0236 : citizen {
handler:
	EventHandler TALKED(talker) {
		if( _from_choice == 0 ) {
			if( myself::GetOneTimeQuestFlag(talker,236) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Seeds of Chaos (In Progress)");
			}
			if( myself::GetOneTimeQuestFlag(talker,236) == 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Seeds of Chaos (In Progress)");
			}
			if( _choiceN > 1 ) {
				myself::ShowChoicePage(talker,0);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 ) {
			switch(_code) {
				case 0: {
					if( _from_choice == 0 || myself::GetOneTimeQuestFlag(talker,236) == 0 ) {
						myself::SetCurrentQuestID(236);
						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,"mother_nornil_q0236001.htm");
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || myself::GetOneTimeQuestFlag(talker,236) == 1 ) {
						myself::SetCurrentQuestID(236);
						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,"mother_nornil_q0236002.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler TALK_SELECTED(fhtml0,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,236) == 1 && gg::GetMemoState(talker,236) == 40 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Seeds of Chaos (In Progress)");
			}
			if( gg::HaveMemo(talker,236) == 1 && gg::GetMemoState(talker,236) == 42 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Seeds of Chaos (In Progress)");
			}
			if( gg::HaveMemo(talker,236) == 1 && gg::GetMemoState(talker,236) == 43 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Seeds of Chaos (In Progress)");
			}
			if( gg::HaveMemo(talker,236) == 1 && gg::GetMemoState(talker,236) == 44 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Seeds of Chaos (In Progress)");
			}
			if( gg::HaveMemo(talker,236) == 1 && gg::GetMemoState(talker,236) == 45 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"Seeds of Chaos (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,236) == 1 && gg::GetMemoState(talker,236) == 40 ) ) {
						myself::SetCurrentQuestID(236);
						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,"mother_nornil_q0236_q0236_01.htm");
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,236) == 1 && gg::GetMemoState(talker,236) == 42 ) ) {
						myself::SetCurrentQuestID(236);
						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,"mother_nornil_q0236_q0236_02.htm");
					}
					break;
				}
				case 2: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,236) == 1 && gg::GetMemoState(talker,236) == 43 ) ) {
						myself::SetCurrentQuestID(236);
						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,"mother_nornil_q0236_q0236_05.htm");
					}
					break;
				}
				case 3: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,236) == 1 && gg::GetMemoState(talker,236) == 44 ) ) {
						myself::SetCurrentQuestID(236);
						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,"mother_nornil_q0236_q0236_06.htm");
					}
					break;
				}
				case 4: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,236) == 1 && gg::GetMemoState(talker,236) == 45 ) ) {
						myself::SetCurrentQuestID(236);
						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,"mother_nornil_q0236_q0236_09.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,reply,talker) {
		if( ask == 236 ) {
			myself::SetCurrentQuestID(236);
			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 == 236 ) {
			if( reply == 4 ) {
				if( gg::HaveMemo(talker,236) == 1 && gg::GetMemoState(talker,236) == 42 ) {
					myself::SetMemoState(talker,236,43);
					myself::ShowPage(talker,"mother_nornil_q0236_q0236_04.htm");
					myself::SetFlagJournal(talker,236,18);
					myself::ShowQuestMark(talker,236);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
				}
			}
			if( reply == 5 ) {
				myself::ShowPage(talker,"mother_nornil_q0236_q0236_07.htm");
			}
			if( reply == 6 ) {
				if( gg::HaveMemo(talker,236) == 1 && gg::GetMemoState(talker,236) == 44 ) {
					myself::SetMemoState(talker,236,45);
					myself::ShowPage(talker,"mother_nornil_q0236_q0236_08.htm");
					myself::SetFlagJournal(talker,236,20);
					myself::ShowQuestMark(talker,236);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
				}
			}
			if( reply == 100 ) {
				if( myself::GetOneTimeQuestFlag(talker,236) == 1 ) {
					myself::ShowPage(talker,"mother_nornil_q0236003.htm");
					myself::InstantZone_Leave(talker);
					myself::InstantZone_Finish(5);
				}
			}
		}
		super;
	}

}
