@LabelIndex 382484
@StringIndex 56340
class 0 weather_controller1 : weather_controller {
handler:
	EventHandler TALK_SELECTED(fhtml0,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 8 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Pavel's Last Research (In Progress)");
			}
			if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 9 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Pavel's Last Research (In Progress)");
			}
			if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 10 && gg::GetMemoStateEx(talker,120,1) != 10101 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Pavel's Last Research (In Progress)");
			}
			if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 10 && gg::GetMemoStateEx(talker,120,1) == 10101 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Pavel's Last Research (In Progress)");
			}
			if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 11 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"Pavel's Last Research (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,120) == 1 && gg::GetMemoState(talker,120) == 8 ) ) {
						myself::SetCurrentQuestID(120);
						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,"weather_controller1_q0120_01.htm");
						myself::SoundEffect(talker,"AmbSound.cd_crystal_loop");
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 9 ) ) {
						myself::SetCurrentQuestID(120);
						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,"weather_controller1_q0120_06.htm");
					}
					break;
				}
				case 2: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 10 && gg::GetMemoStateEx(talker,120,1) != 10101 ) ) {
						myself::SetCurrentQuestID(120);
						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,"weather_controller1_q0120_09.htm");
					}
					break;
				}
				case 3: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 10 && gg::GetMemoStateEx(talker,120,1) == 10101 ) ) {
						myself::SetCurrentQuestID(120);
						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,"weather_controller1_q0120_13.htm");
					}
					break;
				}
				case 4: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 11 ) ) {
						myself::SetCurrentQuestID(120);
						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,"weather_controller1_q0120_13a.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,i0,i1,i2,reply,talker) {
		if( ask == 120 ) {
			myself::SetCurrentQuestID(120);
			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 == 120 ) {
			if( reply == 90 ) {
				if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 8 ) {
					myself::SetMemoStateEx(talker,120,1,0);
					myself::ShowPage(talker,"weather_controller1_q0120_02.htm");
				}
			}
			if( reply == 1 ) {
				if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 8 ) {
					myself::SetMemoStateEx(talker,120,1,1);
					myself::ShowPage(talker,"weather_controller1_q0120_03.htm");
				}
			}
			if( reply == 2 ) {
				if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 8 ) {
					i0 = gg::GetMemoStateEx(talker,120,1);
					i0 = ( i0 % 10 );
					myself::SetMemoStateEx(talker,120,1,( 10 + i0 ));
					myself::ShowPage(talker,"weather_controller1_q0120_04.htm");
				}
			}
			if( reply == 3 ) {
				if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 8 && gg::GetMemoStateEx(talker,120,1) != 11 ) {
					myself::ShowPage(talker,"weather_controller1_q0120_05.htm");
				}
				if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 8 && gg::GetMemoStateEx(talker,120,1) == 11 ) {
					myself::SetMemoState(talker,120,9);
					myself::SetMemoStateEx(talker,120,1,0);
					myself::ShowPage(talker,"weather_controller1_q0120_06.htm");
					myself::SetFlagJournal(talker,120,11);
					myself::ShowQuestMark(talker,120);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
				}
			}
			if( reply == 4 ) {
				myself::ShowPage(talker,"weather_controller1_q0120_07.htm");
			}
			if( reply == 5 ) {
				if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 9 ) {
					myself::SetMemoState(talker,120,10);
					myself::SoundEffect(talker,"AmbSound.dt_percussion_01");
					myself::ShowPage(talker,"weather_controller1_q0120_08.htm");
				}
			}
			if( reply == 6 ) {
				if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 10 && gg::GetMemoStateEx(talker,120,1) != 10101 ) {
					myself::ShowPage(talker,"weather_controller1_q0120_09.htm");
				}
				if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 10 && gg::GetMemoStateEx(talker,120,1) == 10101 ) {
					myself::ShowPage(talker,"weather_controller1_q0120_13.htm");
				}
			}
			if( reply == 7 ) {
				if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 10 ) {
					i0 = gg::GetMemoStateEx(talker,120,1);
					i0 = ( i0 / 10 );
					myself::SetMemoStateEx(talker,120,1,( ( i0 * 10 ) + 1 ));
					myself::ShowPage(talker,"weather_controller1_q0120_10.htm");
				}
			}
			if( reply == 8 ) {
				if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 10 ) {
					i0 = gg::GetMemoStateEx(talker,120,1);
					i1 = ( i0 / 1000 );
					i2 = ( i0 % 100 );
					myself::SetMemoStateEx(talker,120,1,( ( ( i1 * 1000 ) + 100 ) + i2 ));
					myself::ShowPage(talker,"weather_controller1_q0120_11.htm");
				}
			}
			if( reply == 9 ) {
				if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 10 ) {
					i0 = gg::GetMemoStateEx(talker,120,1);
					i1 = ( i0 % 10000 );
					myself::SetMemoStateEx(talker,120,1,( 10000 + i1 ));
					myself::ShowPage(talker,"weather_controller1_q0120_12.htm");
				}
			}
			if( reply == 10 ) {
				if( gg::HaveMemo(talker,120) == 1 && gg::GetMemoState(talker,120) == 10 && gg::GetMemoStateEx(talker,120,1) == 10101 ) {
					myself::SetMemoState(talker,120,11);
					myself::ShowPage(talker,"weather_controller1_q0120_13a.htm");
					myself::SetFlagJournal(talker,120,12);
					myself::ShowQuestMark(talker,120);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
				}
			}
		}
		super;
	}

}
