@LabelIndex 393945
@StringIndex 58601
class 0 roden_q0236 : citizen {
handler:
	EventHandler TALKED(talker) {
		if( _from_choice == 0 ) {
			if( myself::GetOneTimeQuestFlag(talker,236) == 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Seeds of Chaos (Done)");
			}
			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) == 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,"roden_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,"roden_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,"roden_q0236_q0236_11a.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,"roden_q0236_q0236_12.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,"roden_q0236_q0236_14.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,"roden_q0236_q0236_15.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 == 1 ) {
				if( gg::HaveMemo(talker,236) == 1 && gg::GetMemoState(talker,236) == 40 ) {
					myself::ShowPage(talker,"roden_q0236_q0236_10.htm");
				}
			}
			if( reply == 2 ) {
				if( gg::HaveMemo(talker,236) == 1 && gg::GetMemoState(talker,236) == 40 ) {
					myself::SetMemoState(talker,236,42);
					myself::ShowPage(talker,"roden_q0236_q0236_11.htm");
					myself::SetFlagJournal(talker,236,17);
					myself::ShowQuestMark(talker,236);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
				}
			}
			if( reply == 4 ) {
				if( gg::HaveMemo(talker,236) == 1 && gg::GetMemoState(talker,236) == 43 ) {
					myself::SetMemoState(talker,236,44);
					myself::ShowPage(talker,"roden_q0236_q0236_13.htm");
					myself::SetFlagJournal(talker,236,19);
					myself::ShowQuestMark(talker,236);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
				}
			}
			if( reply == 5 ) {
				myself::ShowPage(talker,"roden_q0236_q0236_16.htm");
			}
			if( reply == 6 ) {
				if( gg::HaveMemo(talker,236) == 1 && gg::GetMemoState(talker,236) == 45 && myself::GetOneTimeQuestFlag(talker,236) == 0 ) {
					myself::GiveItem1(talker,729,1);
					myself::DeleteItem1(talker,5011,gg::OwnItemCount(talker,5011));
					myself::RemoveMemo(talker,236);
					myself::SoundEffect(talker,"ItemSound.quest_finish");
					myself::ShowPage(talker,"roden_q0236_q0236_17.htm");
					myself::SetOneTimeQuestFlag(talker,236,1);
					gg::AddLog(2,talker,236);
				}
			}
		}
		super;
	}

}
