@LabelIndex 387775
@StringIndex 57351
class 0 balu_kaimu_stone : citizen {
handler:
	EventHandler TALK_SELECTED(fhtml0,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,125) == 1 && gg::GetMemoState(talker,125) == 7 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"The Name of Evil 1 (In Progress)");
			}
			if( gg::HaveMemo(talker,125) == 1 && gg::GetMemoState(talker,125) < 7 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"The Name of Evil 1 (In Progress)");
			}
			if( gg::HaveMemo(talker,125) == 1 && gg::GetMemoState(talker,125) > 9 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"The Name of Evil 1 (In Progress)");
			}
			if( gg::HaveMemo(talker,125) == 1 && gg::GetMemoState(talker,125) == 8 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"The Name of Evil 1 (In Progress)");
			}
			if( gg::HaveMemo(talker,125) == 1 && gg::GetMemoState(talker,125) == 9 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"The Name of Evil 1 (In Progress)");
			}
			if( gg::HaveMemo(talker,126) == 1 && gg::GetMemoState(talker,126) == 5 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 5;
				myself::AddChoice(5,"The Name of Evil 2 (In Progress)");
			}
			if( gg::HaveMemo(talker,126) == 1 && gg::GetMemoState(talker,126) < 5 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 6;
				myself::AddChoice(6,"The Name of Evil 2 (In Progress)");
			}
			if( gg::HaveMemo(talker,126) == 1 && gg::GetMemoState(talker,126) == 7 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 7;
				myself::AddChoice(7,"The Name of Evil 2 (In Progress)");
			}
			if( gg::HaveMemo(talker,126) == 1 && gg::GetMemoState(talker,126) == 8 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 8;
				myself::AddChoice(8,"The Name of Evil 2 (In Progress)");
			}
			if( gg::HaveMemo(talker,126) == 1 && gg::GetMemoState(talker,126) >= 9 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 9;
				myself::AddChoice(9,"The Name of Evil 2 (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,125) == 1 && gg::GetMemoState(talker,125) == 7 ) ) {
						myself::SetCurrentQuestID(125);
						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,"balu_kaimu_stone_q0125_01.htm");
						myself::AddUseSkillDesire(myself.sm,333512705,1,0,1000000);
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,125) == 1 && gg::GetMemoState(talker,125) < 7 ) ) {
						myself::SetCurrentQuestID(125);
						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,"balu_kaimu_stone_q0125_02.htm");
					}
					break;
				}
				case 2: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,125) == 1 && gg::GetMemoState(talker,125) > 9 ) ) {
						myself::SetCurrentQuestID(125);
						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,"balu_kaimu_stone_q0125_03.htm");
					}
					break;
				}
				case 3: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,125) == 1 && gg::GetMemoState(talker,125) == 8 ) ) {
						myself::SetCurrentQuestID(125);
						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,"balu_kaimu_stone_q0125_11.htm");
					}
					break;
				}
				case 4: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,125) == 1 && gg::GetMemoState(talker,125) == 9 ) ) {
						myself::SetCurrentQuestID(125);
						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,"balu_kaimu_stone_q0125_20.htm");
					}
					break;
				}
				case 5: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,126) == 1 && gg::GetMemoState(talker,126) == 5 ) ) {
						myself::SetCurrentQuestID(126);
						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,"balu_kaimu_stone_q0126_01.htm");
						myself::AddUseSkillDesire(myself.sm,333512705,1,0,1000000);
					}
					break;
				}
				case 6: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,126) == 1 && gg::GetMemoState(talker,126) < 5 ) ) {
						myself::SetCurrentQuestID(126);
						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,"balu_kaimu_stone_q0126_02.htm");
					}
					break;
				}
				case 7: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,126) == 1 && gg::GetMemoState(talker,126) == 7 ) ) {
						myself::SetCurrentQuestID(126);
						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,"balu_kaimu_stone_q0126_05.htm");
					}
					break;
				}
				case 8: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,126) == 1 && gg::GetMemoState(talker,126) == 8 ) ) {
						myself::SetCurrentQuestID(126);
						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,"balu_kaimu_stone_q0126_08.htm");
					}
					break;
				}
				case 9: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,126) == 1 && gg::GetMemoState(talker,126) >= 9 ) ) {
						myself::SetCurrentQuestID(126);
						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,"balu_kaimu_stone_q0126_12.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,i0,reply,talker) {
		if( ask == 125 ) {
			myself::SetCurrentQuestID(125);
			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 == 125 ) {
			if( reply == 27 && gg::GetMemoState(talker,125) == 7 ) {
				myself::SetMemoStateEx(talker,125,1,0);
				myself::ShowPage(talker,"balu_kaimu_stone_q0125_04.htm");
			}
			if( reply == 1 && gg::GetMemoState(talker,125) == 7 ) {
				i0 = gg::GetMemoStateEx(talker,125,1);
				myself::SetMemoStateEx(talker,125,1,( i0 + 1 ));
				myself::ShowPage(talker,"balu_kaimu_stone_q0125_05.htm");
			}
			if( reply == 2 && gg::GetMemoState(talker,125) == 7 ) {
				i0 = gg::GetMemoStateEx(talker,125,1);
				myself::SetMemoStateEx(talker,125,1,( i0 + 10 ));
				myself::ShowPage(talker,"balu_kaimu_stone_q0125_06.htm");
			}
			if( reply == 3 && gg::GetMemoState(talker,125) == 7 ) {
				i0 = gg::GetMemoStateEx(talker,125,1);
				myself::SetMemoStateEx(talker,125,1,( i0 + 100 ));
				myself::ShowPage(talker,"balu_kaimu_stone_q0125_07.htm");
			}
			if( reply == 4 && gg::GetMemoState(talker,125) == 7 ) {
				if( gg::GetMemoStateEx(talker,125,1) != 111 ) {
					myself::ShowPage(talker,"balu_kaimu_stone_q0125_08.htm");
				} else {
					myself::SetMemoState(talker,125,8);
					myself::SetMemoStateEx(talker,125,1,0);
					myself::ShowPage(talker,"balu_kaimu_stone_q0125_09.htm");
				}
			}
			if( reply == 28 && gg::GetMemoState(talker,125) == 8 ) {
				myself::ShowPage(talker,"balu_kaimu_stone_q0125_10.htm");
			}
			if( reply == 29 && gg::GetMemoState(talker,125) == 8 ) {
				myself::ShowPage(talker,"balu_kaimu_stone_q0125_12.htm");
			}
			if( reply == 30 ) {
				myself::ShowPage(talker,"balu_kaimu_stone_q0125_13.htm");
			}
			if( reply == 31 ) {
				myself::ShowPage(talker,"balu_kaimu_stone_q0125_14.htm");
			}
			if( reply == 32 ) {
				myself::ShowPage(talker,"balu_kaimu_stone_q0125_15.htm");
			}
			if( reply == 33 ) {
				myself::ShowPage(talker,"balu_kaimu_stone_q0125_18.htm");
			}
			if( reply == 34 && gg::GetMemoState(talker,125) == 8 ) {
				myself::SetMemoState(talker,125,9);
				myself::ShowPage(talker,"balu_kaimu_stone_q0125_19.htm");
				myself::SetFlagJournal(talker,125,7);
				myself::ShowQuestMark(talker,125);
				myself::SoundEffect(talker,"ItemSound.quest_middle");
			}
		}
		if( ask == 126 ) {
			myself::SetCurrentQuestID(126);
			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 == 126 ) {
			if( reply == 12 && gg::HaveMemo(talker,126) == 1 && gg::GetMemoState(talker,126) == 5 ) {
				myself::ShowPage(talker,"balu_kaimu_stone_q0126_03.htm");
			}
			if( reply == 13 && gg::HaveMemo(talker,126) == 1 && gg::GetMemoState(talker,126) == 5 ) {
				myself::SetMemoState(talker,126,7);
				myself::ShowPage(talker,"balu_kaimu_stone_q0126_04.htm");
				myself::SetFlagJournal(talker,126,6);
				myself::ShowQuestMark(talker,126);
				myself::SoundEffect(talker,"ItemSound.quest_middle");
			}
			if( reply == 400 && gg::HaveMemo(talker,126) == 1 && gg::GetMemoState(talker,126) == 7 ) {
				myself::ShowPage(talker,"balu_kaimu_stone_q0126_06.htm");
			}
			if( reply == 14 && gg::HaveMemo(talker,126) == 1 && gg::GetMemoState(talker,126) == 7 ) {
				myself::SetMemoState(talker,126,8);
				myself::SetFlagJournal(talker,126,7);
				myself::ShowQuestMark(talker,126);
				myself::SoundEffect(talker,"ItemSound.quest_middle");
				myself::ShowPage(talker,"balu_kaimu_stone_q0126_07.htm");
			}
			if( reply == 15 ) {
				myself::ShowPage(talker,"balu_kaimu_stone_q0126_09.htm");
				myself::SoundEffect(talker,"EtcSound.elcroki_song_2nd");
			}
			if( reply == 16 ) {
				myself::ShowPage(talker,"balu_kaimu_stone_q0126_10.htm");
			}
			if( reply == 17 && gg::HaveMemo(talker,126) == 1 && gg::GetMemoState(talker,126) == 8 ) {
				myself::SetMemoState(talker,126,9);
				myself::ShowPage(talker,"balu_kaimu_stone_q0126_11.htm");
				myself::SetFlagJournal(talker,126,8);
				myself::ShowQuestMark(talker,126);
				myself::SoundEffect(talker,"ItemSound.quest_middle");
			}
			if( reply == 18 ) {
				myself::ShowPage(talker,"balu_kaimu_stone_q0126_13.htm");
				myself::SoundEffect(talker,"EtcSound.elcroki_song_2nd");
			}
		}
		super;
	}

}
