@LabelIndex 403514
@StringIndex 60459
class 0 officer_tepios : ai_officer_tepios {
handler:
	EventHandler TALK_SELECTED(fhtml0,i0,i1,i2,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,10268) == 1 && gg::GetMemoState(talker,10268) == 1 && gg::OwnItemCount(talker,13811) >= 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"To the Seed of Immortality (in progress)");
			}
			if( gg::HaveMemo(talker,10268) == 0 && myself::GetOneTimeQuestFlag(talker,10268) == 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"To the Seed of Immortality (complete)");
			}
			if( gg::HaveMemo(talker,694) == 0 && talker.level >= 75 && talker.level < 83 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Break Through the Hall of Suffering");
			}
			if( gg::HaveMemo(talker,694) == 0 && talker.level < 75 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Break Through the Hall of Suffering");
			}
			if( gg::HaveMemo(talker,694) == 0 && talker.level >= 83 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"Break Through the Hall of Suffering");
			}
			if( gg::HaveMemo(talker,694) == 1 && gg::GetMemoState(talker,694) == 2 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 5;
				myself::AddChoice(5,"Break Through the Hall of Suffering (in progress)");
			}
			if( gg::HaveMemo(talker,695) == 0 && talker.level >= 75 && talker.level < 83 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 6;
				myself::AddChoice(6,"Defend the Hall of Suffering");
			}
			if( gg::HaveMemo(talker,695) == 0 && talker.level < 75 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 7;
				myself::AddChoice(7,"Defend the Hall of Suffering");
			}
			if( gg::HaveMemo(talker,695) == 0 && talker.level >= 83 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 8;
				myself::AddChoice(8,"Defend the Hall of Suffering");
			}
			if( gg::HaveMemo(talker,695) == 1 && gg::GetMemoState(talker,695) == 2 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 9;
				myself::AddChoice(9,"Defend the Hall of Suffering (in progress)");
			}
			if( gg::HaveMemo(talker,696) == 0 && talker.level >= 80 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 10;
				myself::AddChoice(10,"Conquer the Hall of Erosion");
			}
			if( gg::HaveMemo(talker,696) == 0 && talker.level < 80 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 11;
				myself::AddChoice(11,"Conquer the Hall of Erosion");
			}
			if( gg::HaveMemo(talker,696) == 1 && gg::GetMemoState(talker,696) == 2 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 12;
				myself::AddChoice(12,"Conquer the Hall of Erosion (in progress)");
			}
			if( gg::HaveMemo(talker,696) == 1 && gg::GetMemoState(talker,696) == 4 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 13;
				myself::AddChoice(13,"Conquer the Hall of Erosion (in progress)");
			}
			if( gg::HaveMemo(talker,697) == 0 && talker.level >= 80 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 14;
				myself::AddChoice(14,"Defend the Hall of Erosion");
			}
			if( gg::HaveMemo(talker,697) == 0 && talker.level < 80 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 15;
				myself::AddChoice(15,"Defend the Hall of Erosion");
			}
			if( gg::HaveMemo(talker,697) == 1 && gg::GetMemoState(talker,697) == 2 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 16;
				myself::AddChoice(16,"Defend the Hall of Erosion (in progress)");
			}
			if( gg::HaveMemo(talker,697) == 1 && gg::GetMemoState(talker,697) == 4 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 17;
				myself::AddChoice(17,"Defend the Hall of Erosion (in progress)");
			}
			if( gg::HaveMemo(talker,698) == 0 && talker.level >= 80 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 18;
				myself::AddChoice(18,"Block the Lord's Escape");
			}
			if( gg::HaveMemo(talker,698) == 0 && talker.level < 80 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 19;
				myself::AddChoice(19,"Block the Lord's Escape");
			}
			if( gg::HaveMemo(talker,698) == 1 && gg::GetMemoState(talker,698) == 2 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 20;
				myself::AddChoice(20,"Block the Lord's Escape (in progress)");
			}
			if( gg::HaveMemo(talker,698) == 1 && gg::GetMemoState(talker,698) == 4 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 21;
				myself::AddChoice(21,"Block the Lord's Escape (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,10268) == 1 && gg::GetMemoState(talker,10268) == 1 && gg::OwnItemCount(talker,13811) >= 1 ) ) {
						myself::SetCurrentQuestID(10268);
						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::IncrementParam(talker,0,100640);
						myself::IncrementParam(talker,1,10098);
						myself::GiveItem1(talker,57,16671);
						myself::DeleteItem1(talker,13811,gg::OwnItemCount(talker,13811));
						myself::SetOneTimeQuestFlag(talker,10268,1);
						myself::RemoveMemo(talker,10268);
						myself::SoundEffect(talker,"ItemSound.quest_finish");
						gg::AddLog(2,talker,10268);
						gg::AddLog(3,talker,10268);
						myself::ShowPage(talker,"officer_tepios_q10268_01.htm");
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,10268) == 0 && myself::GetOneTimeQuestFlag(talker,10268) == 1 ) ) {
						myself::SetCurrentQuestID(10268);
						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,"officer_tepios_q10268_02.htm");
					}
					break;
				}
				case 2: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,694) == 0 && talker.level >= 75 && talker.level < 83 ) ) {
						myself::SetCurrentQuestID(694);
						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::GetMemoCount(talker) < 26 ) {
							myself::ShowQuestPage(talker,"officer_tepios_q0694_01.htm",694);
						} else {
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 3: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,694) == 0 && talker.level < 75 ) ) {
						myself::SetCurrentQuestID(694);
						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::ShowQuestPage(talker,"officer_tepios_q0694_02.htm",694);
					}
					break;
				}
				case 4: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,694) == 0 && talker.level >= 83 ) ) {
						myself::SetCurrentQuestID(694);
						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,"officer_tepios_q0694_02a.htm");
						if( gg::OwnItemCount(talker,13691) == 0 ) {
							myself::GiveItem1(talker,13691,1);
						}
					}
					break;
				}
				case 5: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,694) == 1 && gg::GetMemoState(talker,694) == 2 ) ) {
						myself::SetCurrentQuestID(694);
						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::ShowQuestPage(talker,"officer_tepios_q0694_07.htm",694);
					}
					break;
				}
				case 6: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,695) == 0 && talker.level >= 75 && talker.level < 83 ) ) {
						myself::SetCurrentQuestID(695);
						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::GetMemoCount(talker) < 26 ) {
							myself::ShowQuestPage(talker,"officer_tepios_q0695_01.htm",695);
						} else {
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 7: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,695) == 0 && talker.level < 75 ) ) {
						myself::SetCurrentQuestID(695);
						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::ShowQuestPage(talker,"officer_tepios_q0695_02.htm",695);
					}
					break;
				}
				case 8: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,695) == 0 && talker.level >= 83 ) ) {
						myself::SetCurrentQuestID(695);
						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,"officer_tepios_q0695_02a.htm");
					}
					break;
				}
				case 9: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,695) == 1 && gg::GetMemoState(talker,695) == 2 ) ) {
						myself::SetCurrentQuestID(695);
						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::ShowQuestPage(talker,"officer_tepios_q0695_06.htm",695);
					}
					break;
				}
				case 10: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,696) == 0 && talker.level >= 80 ) ) {
						myself::SetCurrentQuestID(696);
						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::GetMemoCount(talker) < 26 ) {
							myself::ShowQuestPage(talker,"officer_tepios_q0696_01.htm",696);
						} else {
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 11: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,696) == 0 && talker.level < 80 ) ) {
						myself::SetCurrentQuestID(696);
						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::ShowQuestPage(talker,"officer_tepios_q0696_02.htm",696);
					}
					break;
				}
				case 12: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,696) == 1 && gg::GetMemoState(talker,696) == 2 ) ) {
						myself::SetCurrentQuestID(696);
						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::ShowQuestPage(talker,"officer_tepios_q0696_06.htm",696);
					}
					break;
				}
				case 13: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,696) == 1 && gg::GetMemoState(talker,696) == 4 ) ) {
						myself::SetCurrentQuestID(696);
						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( gg::OwnItemCount(talker,13692) == 0 ) {
							myself::GiveItem1(talker,13692,1);
						}
						myself::RemoveMemo(talker,696);
						myself::SoundEffect(talker,"ItemSound.quest_finish");
						gg::AddLog(2,talker,696);
						gg::AddLog(3,talker,696);
						myself::ShowQuestPage(talker,"officer_tepios_q0696_07.htm",696);
					}
					break;
				}
				case 14: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,697) == 0 && talker.level >= 80 ) ) {
						myself::SetCurrentQuestID(697);
						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::GetMemoCount(talker) < 26 ) {
							myself::ShowQuestPage(talker,"officer_tepios_q0697_01.htm",697);
						} else {
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 15: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,697) == 0 && talker.level < 80 ) ) {
						myself::SetCurrentQuestID(697);
						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::ShowQuestPage(talker,"officer_tepios_q0697_02.htm",697);
					}
					break;
				}
				case 16: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,697) == 1 && gg::GetMemoState(talker,697) == 2 ) ) {
						myself::SetCurrentQuestID(697);
						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::ShowQuestPage(talker,"officer_tepios_q0697_06.htm",697);
					}
					break;
				}
				case 17: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,697) == 1 && gg::GetMemoState(talker,697) == 4 ) ) {
						myself::SetCurrentQuestID(697);
						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;
						}
						i0 = gg::Rand(1000);
						if( i0 < 521 ) {
							i2 = ( gg::Rand(3) + 6 );
						} else {
							i2 = ( gg::Rand(3) + 10 );
						}
						i1 = gg::Rand(1000);
						if( gg::GetMemoStateEx(talker,697,1) >= 35 ) {
							if( i1 < 541 ) {
								i2 = ( i2 + 0 );
							} else {
								i2 = ( i2 + 1 );
							}
						} else if( gg::GetMemoStateEx(talker,697,1) >= 45 ) {
							if( i1 < 541 ) {
								i2 = ( i2 + 1 );
							} else {
								i2 = ( i2 + 2 );
							}
						} else if( gg::GetMemoStateEx(talker,697,1) >= 55 ) {
							if( i1 < 541 ) {
								i2 = ( i2 + 2 );
							} else {
								i2 = ( i2 + 3 );
							}
						} else if( gg::GetMemoStateEx(talker,697,1) >= 65 ) {
							if( i1 < 541 ) {
								i2 = ( i2 + 3 );
							} else {
								i2 = ( i2 + 4 );
							}
						} else if( gg::GetMemoStateEx(talker,697,1) >= 75 ) {
							if( i1 < 541 ) {
								i2 = ( i2 + 4 );
							} else {
								i2 = ( i2 + 5 );
							}
						}
						myself::GiveItem1(talker,14052,i2);
						myself::RemoveMemo(talker,697);
						myself::SoundEffect(talker,"ItemSound.quest_finish");
						gg::AddLog(2,talker,697);
						gg::AddLog(3,talker,697);
						myself::ShowQuestPage(talker,"officer_tepios_q0697_07.htm",697);
					}
					break;
				}
				case 18: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,698) == 0 && talker.level >= 80 ) ) {
						myself::SetCurrentQuestID(698);
						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::GetMemoCount(talker) < 26 ) {
							myself::ShowQuestPage(talker,"officer_tepios_q0698_01.htm",698);
						} else {
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 19: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,698) == 0 && talker.level < 80 ) ) {
						myself::SetCurrentQuestID(698);
						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::ShowQuestPage(talker,"officer_tepios_q0698_02.htm",698);
					}
					break;
				}
				case 20: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,698) == 1 && gg::GetMemoState(talker,698) == 2 ) ) {
						myself::SetCurrentQuestID(698);
						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::ShowQuestPage(talker,"officer_tepios_q0698_06.htm",698);
					}
					break;
				}
				case 21: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,698) == 1 && gg::GetMemoState(talker,698) == 4 ) ) {
						myself::SetCurrentQuestID(698);
						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;
						}
						i0 = gg::Rand(1000);
						if( i0 < 453 ) {
							i2 = ( gg::Rand(3) + 8 );
						} else {
							i2 = ( gg::Rand(19) + 8 );
						}
						i1 = gg::Rand(1000);
						if( gg::GetMemoStateEx(talker,698,1) >= 1 ) {
							if( i1 < 312 ) {
								i2 = ( ( i2 + gg::Rand(2) ) + 1 );
							} else {
								i2 = ( ( i2 + gg::Rand(2) ) + 2 );
							}
						} else if( gg::GetMemoStateEx(talker,698,1) >= 2 ) {
							if( i1 < 312 ) {
								i2 = ( ( i2 + gg::Rand(3) ) + 1 );
							} else {
								i2 = ( ( i2 + gg::Rand(3) ) + 2 );
							}
						} else if( gg::GetMemoStateEx(talker,698,1) >= 3 ) {
							if( i1 < 312 ) {
								i2 = ( ( i2 + gg::Rand(4) ) + 1 );
							} else {
								i2 = ( ( i2 + gg::Rand(4) ) + 2 );
							}
						} else if( gg::GetMemoStateEx(talker,698,1) >= 4 ) {
							if( i1 < 312 ) {
								i2 = ( ( i2 + gg::Rand(5) ) + 1 );
							} else {
								i2 = ( ( i2 + gg::Rand(5) ) + 2 );
							}
						} else if( gg::GetMemoStateEx(talker,698,1) >= 5 ) {
							if( i1 < 312 ) {
								i2 = ( ( i2 + gg::Rand(6) ) + 1 );
							} else {
								i2 = ( ( i2 + gg::Rand(6) ) + 2 );
							}
						} else if( gg::GetMemoStateEx(talker,698,1) >= 6 ) {
							if( i1 < 312 ) {
								i2 = ( ( i2 + gg::Rand(7) ) + 1 );
							} else {
								i2 = ( ( i2 + gg::Rand(7) ) + 2 );
							}
						} else if( gg::GetMemoStateEx(talker,698,1) >= 7 ) {
							if( i1 < 312 ) {
								i2 = ( ( i2 + gg::Rand(8) ) + 1 );
							} else {
								i2 = ( ( i2 + gg::Rand(8) ) + 2 );
							}
						} else if( gg::GetMemoStateEx(talker,698,1) >= 8 ) {
							if( i1 < 312 ) {
								i2 = ( ( i2 + gg::Rand(9) ) + 1 );
							} else {
								i2 = ( ( i2 + gg::Rand(9) ) + 2 );
							}
						} else if( gg::GetMemoStateEx(talker,698,1) >= 9 ) {
							if( i1 < 312 ) {
								i2 = ( ( i2 + gg::Rand(10) ) + 1 );
							} else {
								i2 = ( ( i2 + gg::Rand(10) ) + 2 );
							}
						} else if( gg::GetMemoStateEx(talker,698,1) >= 10 ) {
							if( i1 < 312 ) {
								i2 = ( ( i2 + gg::Rand(11) ) + 1 );
							} else {
								i2 = ( ( i2 + gg::Rand(11) ) + 2 );
							}
						}
						myself::GiveItem1(talker,14052,i2);
						myself::RemoveMemo(talker,698);
						myself::SoundEffect(talker,"ItemSound.quest_finish");
						gg::AddLog(2,talker,698);
						gg::AddLog(3,talker,698);
						myself::ShowQuestPage(talker,"officer_tepios_q0698_07.htm",698);
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler QUEST_ACCEPTED(quest_id,talker) {
		if( quest_id == 694 ) {
			myself::SetCurrentQuestID(694);
			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::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
				talker.quest_last_reward_time = myself::GetCurrentTick();
				if( gg::HaveMemo(talker,694) == 0 && talker.level >= 75 ) {
					myself::SetMemo(talker,694);
					myself::SetMemoState(talker,694,2);
					myself::ShowQuestPage(talker,"officer_tepios_q0694_05.htm",694);
					myself::SetFlagJournal(talker,694,1);
					myself::ShowQuestMark(talker,694);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
					gg::AddLog(1,talker,694);
				}
			}
			return;
		}
		if( quest_id == 695 ) {
			myself::SetCurrentQuestID(695);
			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::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
				talker.quest_last_reward_time = myself::GetCurrentTick();
				if( gg::HaveMemo(talker,695) == 0 && talker.level >= 75 ) {
					myself::SetMemo(talker,695);
					myself::SetMemoState(talker,695,2);
					myself::ShowQuestPage(talker,"officer_tepios_q0695_05.htm",695);
					myself::SetFlagJournal(talker,695,1);
					myself::ShowQuestMark(talker,695);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
					gg::AddLog(1,talker,695);
				}
			}
			return;
		}
		if( quest_id == 696 ) {
			myself::SetCurrentQuestID(696);
			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::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
				talker.quest_last_reward_time = myself::GetCurrentTick();
				if( gg::HaveMemo(talker,696) == 0 && talker.level >= 80 ) {
					myself::SetMemo(talker,696);
					myself::SetMemoState(talker,696,2);
					myself::ShowQuestPage(talker,"officer_tepios_q0696_05.htm",696);
					myself::SetFlagJournal(talker,696,1);
					myself::ShowQuestMark(talker,696);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
					gg::AddLog(1,talker,696);
				}
			}
			return;
		}
		if( quest_id == 697 ) {
			myself::SetCurrentQuestID(697);
			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::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
				talker.quest_last_reward_time = myself::GetCurrentTick();
				if( gg::HaveMemo(talker,697) == 0 && talker.level >= 80 ) {
					myself::SetMemo(talker,697);
					myself::SetMemoState(talker,697,2);
					myself::SetMemoStateEx(talker,697,1,0);
					myself::ShowQuestPage(talker,"officer_tepios_q0697_05.htm",697);
					myself::SetFlagJournal(talker,697,1);
					myself::ShowQuestMark(talker,697);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
					gg::AddLog(1,talker,697);
				}
			}
			return;
		}
		if( quest_id == 698 ) {
			myself::SetCurrentQuestID(698);
			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::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
				talker.quest_last_reward_time = myself::GetCurrentTick();
				if( gg::HaveMemo(talker,698) == 0 && talker.level >= 80 ) {
					myself::SetMemo(talker,698);
					myself::SetMemoState(talker,698,2);
					myself::ShowQuestPage(talker,"officer_tepios_q0698_05.htm",698);
					myself::SetFlagJournal(talker,698,1);
					myself::ShowQuestMark(talker,698);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
					gg::AddLog(1,talker,698);
				}
			}
			return;
		}
		super;
	}

}
