@LabelIndex 318161
@StringIndex 44093
class 0 claudia_a : citizen {
handler:
	EventHandler TALK_SELECTED(fhtml0,i0,i1,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,348) == 1 && gg::OwnItemCount(talker,4289) > 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"An Arrogant Search (In Progress)");
			}
			if( gg::HaveMemo(talker,348) == 1 && gg::GetMemoState(talker,348) < 8 && ( ( gg::GetMemoStateEx(talker,348,1) % 1000 ) / 100 ) == 1 && gg::OwnItemCount(talker,4292) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"An Arrogant Search (In Progress)");
			}
			if( gg::HaveMemo(talker,348) == 1 && gg::OwnItemCount(talker,4292) > 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"An Arrogant Search (In Progress)");
			}
			if( gg::HaveMemo(talker,348) == 1 && gg::OwnItemCount(talker,4397) > 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"An Arrogant Search (In Progress)");
			}
			if( gg::HaveMemo(talker,372) == 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"Legacy of Arrogance (In Progress)");
			}
			if( gg::HaveMemo(talker,195) == 0 && myself::GetOneTimeQuestFlag(talker,195) == 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 5;
				myself::AddChoice(5,"Seven Signs, Secret Ritual of the Priests (complete)");
			}
			if( gg::HaveMemo(talker,195) == 1 && gg::GetMemoState(talker,195) >= 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 6;
				myself::AddChoice(6,"Seven Signs, Secret Ritual of the Priests (in progress)");
			}
			if( gg::HaveMemo(talker,195) == 1 && gg::GetMemoState(talker,195) == 2 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 7;
				myself::AddChoice(7,"Seven Signs, Secret Ritual of the Priests (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,348) == 1 && gg::OwnItemCount(talker,4289) > 0 ) ) {
						myself::SetCurrentQuestID(348);
						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::GetMemoStateEx(talker,348,1);
						i0 = ( i0 + 100 );
						if( ( i0 % 10 ) == 0 ) {
							myself::ShowRadar(talker,181472,7158,-2725,1);
						} else {
							myself::SetFlagJournal(talker,348,9);
							myself::ShowQuestMark(talker,348);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
						myself::SetMemoStateEx(talker,348,1,i0);
						myself::DeleteItem1(talker,4289,1);
						myself::ShowPage(talker,"claudia_a_q0348_01.htm");
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,348) == 1 && gg::GetMemoState(talker,348) < 8 && ( ( gg::GetMemoStateEx(talker,348,1) % 1000 ) / 100 ) == 1 && gg::OwnItemCount(talker,4292) == 0 ) ) {
						myself::SetCurrentQuestID(348);
						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::GetMemoStateEx(talker,348,1) % 10 ) == 0 ) {
							myself::ShowRadar(talker,181472,7158,-2725,1);
						}
						myself::ShowPage(talker,"claudia_a_q0348_03.htm");
					}
					break;
				}
				case 2: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,348) == 1 && gg::OwnItemCount(talker,4292) > 0 ) ) {
						myself::SetCurrentQuestID(348);
						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::GetMemoStateEx(talker,348,1) % 10 ) == 0 ) {
							myself::ShowRadar(talker,181472,7158,-2725,1);
						}
						myself::ShowPage(talker,"claudia_a_q0348_04.htm");
					}
					break;
				}
				case 3: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,348) == 1 && gg::OwnItemCount(talker,4397) > 0 ) ) {
						myself::SetCurrentQuestID(348);
						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,"claudia_a_q0348_05.htm");
					}
					break;
				}
				case 4: {
					if( _from_choice == 0 || gg::HaveMemo(talker,372) == 1 ) {
						myself::SetCurrentQuestID(372);
						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::OwnItemCount(talker,5972) < 1 || gg::OwnItemCount(talker,5973) < 1 || gg::OwnItemCount(talker,5974) < 1 || gg::OwnItemCount(talker,5975) < 1 || gg::OwnItemCount(talker,5976) < 1 || gg::OwnItemCount(talker,5977) < 1 || gg::OwnItemCount(talker,5978) < 1 ) {
								myself::ShowPage(talker,"claudia_a_q0372_01.htm");
							} else if( gg::OwnItemCount(talker,5972) >= 1 && gg::OwnItemCount(talker,5973) >= 1 && gg::OwnItemCount(talker,5974) >= 1 && gg::OwnItemCount(talker,5975) >= 1 && gg::OwnItemCount(talker,5976) >= 1 && gg::OwnItemCount(talker,5977) >= 1 && gg::OwnItemCount(talker,5978) >= 1 ) {
								myself::DeleteItem1(talker,5972,1);
								myself::DeleteItem1(talker,5973,1);
								myself::DeleteItem1(talker,5974,1);
								myself::DeleteItem1(talker,5975,1);
								myself::DeleteItem1(talker,5976,1);
								myself::DeleteItem1(talker,5977,1);
								myself::DeleteItem1(talker,5978,1);
								gg::AddLog(3,talker,372);
								i1 = gg::Rand(100);
								if( i1 < 31 ) {
									myself::GiveItem1(talker,5502,1);
								} else if( i1 < 62 ) {
									myself::GiveItem1(talker,5514,1);
								} else if( i1 < 75 ) {
									myself::GiveItem1(talker,5527,1);
								} else if( i1 < 83 ) {
									myself::GiveItem1(talker,5502,1);
									myself::GiveItem1(talker,5514,1);
									myself::GiveItem1(talker,5527,1);
								} else if( i1 < 100 ) {
									myself::GiveItem1(talker,57,4000);
								}
								myself::ShowPage(talker,"claudia_a_q0372_02.htm");
							}
						}
					}
					break;
				}
				case 5: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,195) == 0 && myself::GetOneTimeQuestFlag(talker,195) == 1 ) ) {
						myself::SetCurrentQuestID(195);
						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,"finishedquest.htm");
					}
					break;
				}
				case 6: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,195) == 1 && gg::GetMemoState(talker,195) >= 1 ) ) {
						myself::SetCurrentQuestID(195);
						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,13805) >= 1 && gg::OwnItemCount(talker,13806) >= 1 && gg::OwnItemCount(talker,13807) >= 1 && gg::OwnItemCount(talker,13822) >= 1 && gg::OwnItemCount(talker,7132) >= 1 ) {
							myself::ShowPage(talker,"claudia_a_q0195_08.htm");
						} else {
							myself::ShowPage(talker,"claudia_a_q0195_09.htm");
							if( gg::OwnItemCount(talker,13805) == 0 ) {
								myself::GiveItem1(talker,13805,1);
							}
							if( gg::OwnItemCount(talker,13806) == 0 ) {
								myself::GiveItem1(talker,13806,1);
							}
							if( gg::OwnItemCount(talker,13807) == 0 ) {
								myself::GiveItem1(talker,13807,1);
							}
							if( gg::OwnItemCount(talker,13822) == 0 ) {
								myself::GiveItem1(talker,13822,1);
							}
							if( gg::OwnItemCount(talker,7132) == 0 ) {
								myself::GiveItem1(talker,7132,1);
							}
						}
					}
					break;
				}
				case 7: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,195) == 1 && gg::GetMemoState(talker,195) == 2 ) ) {
						myself::SetCurrentQuestID(195);
						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,13805) >= 1 && gg::OwnItemCount(talker,13806) >= 1 && gg::OwnItemCount(talker,13807) >= 1 && gg::OwnItemCount(talker,13822) >= 1 && gg::OwnItemCount(talker,13823) >= 1 ) {
							myself::ShowPage(talker,"claudia_a_q0195_10.htm");
						}
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler QUEST_ACCEPTED(quest_id,talker) {
		if( quest_id == 195 ) {
			myself::SetCurrentQuestID(195);
			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::HaveMemo(talker,195) == 0 && myself::GetOneTimeQuestFlag(talker,195) == 0 && myself::GetOneTimeQuestFlag(talker,194) == 1 && talker.level >= 51 ) {
				myself::GiveItem1(talker,13805,1);
				myself::GiveItem1(talker,13806,1);
				myself::GiveItem1(talker,13807,1);
				myself::GiveItem1(talker,13822,1);
				myself::GiveItem1(talker,7132,1);
				myself::SetMemoState(talker,195,1);
				myself::SetMemo(talker,quest_id);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::ShowQuestPage(talker,"claudia_a_q0195_07.htm",195);
				gg::AddLog(1,talker,quest_id);
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,fhtml0,reply,talker) {
		if( ask == 348 ) {
			myself::SetCurrentQuestID(348);
			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 == 348 ) {
			if( reply == 1 ) {
				myself::ShowPage(talker,"claudia_a_q0348_02.htm");
			}
		}
		if( ask == 195 ) {
			myself::SetCurrentQuestID(195);
			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 == 195 ) {
			if( reply == 1 ) {
				if( gg::HaveMemo(talker,195) == 0 && myself::GetOneTimeQuestFlag(talker,195) == 0 && myself::GetOneTimeQuestFlag(talker,194) == 1 ) {
					if( talker.level >= 51 ) {
						myself::ShowQuestPage(talker,"claudia_a_q0195_04.htm",195);
					}
				}
			}
			if( reply == 2 ) {
				if( gg::HaveMemo(talker,195) == 0 && myself::GetOneTimeQuestFlag(talker,195) == 0 && myself::GetOneTimeQuestFlag(talker,194) == 1 ) {
					if( talker.level >= 51 ) {
						myself::ShowQuestPage(talker,"claudia_a_q0195_05.htm",195);
					}
				}
			}
			if( reply == 3 ) {
				if( gg::HaveMemo(talker,195) == 0 && myself::GetOneTimeQuestFlag(talker,195) == 0 && myself::GetOneTimeQuestFlag(talker,194) == 1 ) {
					if( talker.level >= 51 ) {
						myself::FHTML_SetFileName(fhtml0,"claudia_a_q0195_06.htm");
						myself::FHTML_SetInt(fhtml0,"quest_id",195);
						myself::ShowQuestFHTML(talker,fhtml0,195);
					}
				}
			}
			if( reply == 4 ) {
				if( gg::HaveMemo(talker,195) == 1 && gg::GetMemoState(talker,195) == 2 ) {
					if( gg::OwnItemCount(talker,13805) >= 1 && gg::OwnItemCount(talker,13806) >= 1 && gg::OwnItemCount(talker,13807) >= 1 && gg::OwnItemCount(talker,13822) >= 1 && gg::OwnItemCount(talker,13823) >= 1 ) {
						myself::ShowPage(talker,"claudia_a_q0195_11.htm");
					}
				}
			}
			if( reply == 5 ) {
				if( gg::HaveMemo(talker,195) == 1 && gg::GetMemoState(talker,195) == 2 ) {
					if( gg::OwnItemCount(talker,13805) >= 1 && gg::OwnItemCount(talker,13806) >= 1 && gg::OwnItemCount(talker,13807) >= 1 && gg::OwnItemCount(talker,13822) >= 1 && gg::OwnItemCount(talker,13823) >= 1 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::GiveItem1(talker,57,10000);
							myself::IncrementParam(talker,0,100);
							myself::IncrementParam(talker,1,300);
							myself::DeleteItem1(talker,13805,gg::OwnItemCount(talker,13805));
							myself::DeleteItem1(talker,13806,gg::OwnItemCount(talker,13806));
							myself::DeleteItem1(talker,13807,gg::OwnItemCount(talker,13807));
							myself::DeleteItem1(talker,13822,gg::OwnItemCount(talker,13822));
							myself::DeleteItem1(talker,13823,gg::OwnItemCount(talker,13823));
							myself::RemoveMemo(talker,195);
							myself::SoundEffect(talker,"ItemSound.quest_finish");
							gg::AddLog(2,talker,195);
							gg::AddLog(3,talker,195);
							myself::ShowPage(talker,"claudia_a_q0195_12.htm");
						}
					}
				}
			}
		}
		super;
	}

}
