@LabelIndex 395457
@StringIndex 58941
class 0 mother_nornil : citizen {
handler:
	EventHandler TALKED(i0,i1,quest_id,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,179) == 0 && gg::HaveMemo(talker,182) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Into the Large Cavern (In Progress)");
			}
			if( gg::HaveMemo(talker,179) == 1 || gg::HaveMemo(talker,182) == 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Into the Large Cavern (In Progress)");
			}
			if( _choiceN > 1 ) {
				myself::ShowChoicePage(talker,0);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 ) {
			switch(_code) {
				case 0: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,179) == 0 && gg::HaveMemo(talker,182) == 0 ) ) {
						myself::SetCurrentQuestID(179);
						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::GetOneTimeQuestFlag(talker,179) == 0 && myself::GetOneTimeQuestFlag(talker,182) == 0 ) {
							myself::ShowPage(talker,"mother_nornil001.htm");
						} else if( myself::GetOneTimeQuestFlag(talker,179) == 1 ) {
							myself::ShowPage(talker,"mother_nornil002.htm");
						} else if( myself::GetOneTimeQuestFlag(talker,182) == 1 ) {
							myself::ShowPage(talker,"mother_nornil003.htm");
						}
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || gg::HaveMemo(talker,179) == 1 || gg::HaveMemo(talker,182) == 1 ) {
						myself::SetCurrentQuestID(179);
						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_nornil004.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler TALK_SELECTED(fhtml0,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,179) == 1 && gg::GetMemoState(talker,179) == 1 && myself::GetOneTimeQuestFlag(talker,179) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Into the Large Cavern (In Progress)");
			}
			if( gg::HaveMemo(talker,182) == 1 && gg::GetMemoState(talker,182) == 1 && myself::GetOneTimeQuestFlag(talker,182) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"New Recruits (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,179) == 1 && gg::GetMemoState(talker,179) == 1 && myself::GetOneTimeQuestFlag(talker,179) == 0 ) ) {
						myself::SetCurrentQuestID(179);
						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_q0179_01.htm");
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,182) == 1 && gg::GetMemoState(talker,182) == 1 && myself::GetOneTimeQuestFlag(talker,182) == 0 ) ) {
						myself::SetCurrentQuestID(182);
						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_q0182_01.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,reply,talker) {
		if( ask == 179 ) {
			myself::SetCurrentQuestID(179);
			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 == 179 ) {
			if( reply == 1 ) {
				if( gg::HaveMemo(talker,179) == 1 && gg::GetMemoState(talker,179) == 1 && myself::GetOneTimeQuestFlag(talker,179) == 0 ) {
					myself::ShowPage(talker,"mother_nornil_q0179_02.htm");
				}
			}
			if( reply == 2 ) {
				if( gg::HaveMemo(talker,179) == 1 && gg::GetMemoState(talker,179) == 1 && myself::GetOneTimeQuestFlag(talker,179) == 0 ) {
					myself::ShowPage(talker,"mother_nornil_q0179_03.htm");
				}
			}
			if( reply == 3 ) {
				if( gg::HaveMemo(talker,179) == 1 && gg::GetMemoState(talker,179) == 1 && myself::GetOneTimeQuestFlag(talker,179) == 0 ) {
					myself::ShowPage(talker,"mother_nornil_q0179_04.htm");
				}
			}
			if( reply == 4 ) {
				if( gg::HaveMemo(talker,179) == 1 && gg::GetMemoState(talker,179) == 1 && myself::GetOneTimeQuestFlag(talker,179) == 0 ) {
					myself::ShowPage(talker,"mother_nornil_q0179_05.htm");
				}
			}
			if( reply == 5 ) {
				if( gg::HaveMemo(talker,179) == 1 && gg::GetMemoState(talker,179) == 1 && myself::GetOneTimeQuestFlag(talker,179) == 0 ) {
					myself::ShowPage(talker,"mother_nornil_q0179_06.htm");
				}
			}
			if( reply == 6 ) {
				if( gg::HaveMemo(talker,179) == 1 && gg::GetMemoState(talker,179) == 1 && myself::GetOneTimeQuestFlag(talker,179) == 0 ) {
					myself::ShowPage(talker,"mother_nornil_q0179_07.htm");
				}
			}
			if( reply == 7 ) {
				myself::InstantZone_Leave(talker);
				myself::InstantZone_Finish(5);
			}
			if( reply == 9 ) {
				if( gg::HaveMemo(talker,179) == 1 && gg::GetMemoState(talker,179) == 1 && myself::GetOneTimeQuestFlag(talker,179) == 0 ) {
					myself::GiveItem1(talker,10021,1);
					myself::GiveItem1(talker,10022,1);
					myself::RemoveMemo(talker,179);
					myself::SoundEffect(talker,"ItemSound.quest_finish");
					myself::ShowPage(talker,"mother_nornil_q0179_08.htm");
					gg::AddLog(2,talker,179);
					myself::SetOneTimeQuestFlag(talker,179,1);
				}
			}
			if( reply == 10 ) {
				if( gg::HaveMemo(talker,179) == 1 && gg::GetMemoState(talker,179) == 1 && myself::GetOneTimeQuestFlag(talker,179) == 0 ) {
					myself::GiveItem1(talker,10122,2);
					myself::GiveItem1(talker,10123,1);
					myself::GiveItem1(talker,10124,2);
					myself::RemoveMemo(talker,179);
					myself::SoundEffect(talker,"ItemSound.quest_finish");
					myself::ShowPage(talker,"mother_nornil_q0179_09.htm");
					gg::AddLog(2,talker,179);
					myself::SetOneTimeQuestFlag(talker,179,1);
				}
			}
		}
		if( ask == 182 ) {
			myself::SetCurrentQuestID(182);
			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 == 182 ) {
			if( reply == 1 ) {
				if( gg::HaveMemo(talker,182) == 1 && gg::GetMemoState(talker,182) == 1 && myself::GetOneTimeQuestFlag(talker,182) == 0 ) {
					myself::ShowPage(talker,"mother_nornil_q0182_02.htm");
				}
			}
			if( reply == 2 ) {
				if( gg::HaveMemo(talker,182) == 1 && gg::GetMemoState(talker,182) == 1 && myself::GetOneTimeQuestFlag(talker,182) == 0 ) {
					myself::ShowPage(talker,"mother_nornil_q0182_03.htm");
				}
			}
			if( reply == 3 ) {
				if( myself::GetOneTimeQuestFlag(talker,182) == 1 ) {
					myself::InstantZone_Leave(talker);
					myself::InstantZone_Finish(5);
				}
			}
			if( reply == 5 ) {
				if( gg::HaveMemo(talker,182) == 1 && gg::GetMemoState(talker,182) == 1 && myself::GetOneTimeQuestFlag(talker,182) == 0 ) {
					myself::GiveItem1(talker,10122,2);
					myself::RemoveMemo(talker,182);
					myself::SoundEffect(talker,"ItemSound.quest_finish");
					myself::ShowPage(talker,"mother_nornil_q0182_04.htm");
					gg::AddLog(2,talker,182);
					myself::SetOneTimeQuestFlag(talker,182,1);
				}
			}
			if( reply == 6 ) {
				if( gg::HaveMemo(talker,182) == 1 && gg::GetMemoState(talker,182) == 1 && myself::GetOneTimeQuestFlag(talker,182) == 0 ) {
					myself::GiveItem1(talker,10124,2);
					myself::RemoveMemo(talker,182);
					myself::SoundEffect(talker,"ItemSound.quest_finish");
					myself::ShowPage(talker,"mother_nornil_q0182_05.htm");
					gg::AddLog(2,talker,182);
					myself::SetOneTimeQuestFlag(talker,182,1);
				}
			}
		}
		super;
	}

}
