class 1 elder_filaur : citizen
{
handler:
	EventHandler TALK_SELECTED(fhtml0,talker)
	{
		if( _from_choice == 0 )
		{
			if( myself::HaveMemo(talker,293) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"The Hidden Veins");
			}
			if( myself::HaveMemo(talker,293) == 1 && myself::OwnItemCount(talker,1488) < 1 && myself::OwnItemCount(talker,1490) < 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"The Hidden Veins - In Progress");
			}
			if( myself::HaveMemo(talker,293) == 1 && myself::OwnItemCount(talker,1488) < 1 && myself::OwnItemCount(talker,1490) >= 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"The Hidden Veins - In Progress");
			}
			if( myself::HaveMemo(talker,293) == 1 && myself::OwnItemCount(talker,1488) >= 1 && myself::OwnItemCount(talker,1490) < 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"The Hidden Veins - In Progress");
			}
			if( myself::HaveMemo(talker,293) == 1 && myself::OwnItemCount(talker,1488) >= 1 && myself::OwnItemCount(talker,1490) >= 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"The Hidden Veins - In Progress");
			}
			if( myself::HaveMemo(talker,211) == 1 && myself::GetMemoState(talker,211) == 7 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 5;
				myself::AddChoice(5,"Trial of the Challenger - In Progress");
			}
			if( myself::HaveMemo(talker,211) == 1 && myself::GetMemoState(talker,211) == 8 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 6;
				myself::AddChoice(6,"Trial of the Challenger - In Progress");
			}
			if( myself::HaveMemo(talker,211) == 1 && myself::GetMemoState(talker,211) == 9 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 7;
				myself::AddChoice(7,"Trial of the Challenger - In Progress");
			}
			if( myself::HaveMemo(talker,231) == 1 && myself::GetMemoState(talker,231) == 1 && myself::OwnItemCount(talker,2865) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 8;
				myself::AddChoice(8,"Test of the Maestro - In Progress");
			}
			if( myself::HaveMemo(talker,231) == 1 && myself::GetMemoState(talker,231) == 4 && myself::OwnItemCount(talker,2873) && myself::OwnItemCount(talker,2874) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 9;
				myself::AddChoice(9,"Test of the Maestro - In Progress");
			}
			if( myself::HaveMemo(talker,231) == 1 && myself::GetMemoState(talker,231) == 4 && myself::OwnItemCount(talker,2873) == 0 && myself::OwnItemCount(talker,2874) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 10;
				myself::AddChoice(10,"Test of the Maestro - In Progress");
			}
			if( myself::HaveMemo(talker,231) == 1 && myself::OwnItemCount(talker,2865) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 11;
				myself::AddChoice(11,"Test of the Maestro - In Progress");
			}
			if( myself::HaveMemo(talker,221) == 1 && myself::OwnItemCount(talker,3239) >= 1 && myself::OwnItemCount(talker,3246) >= 1 && myself::OwnItemCount(talker,3250) >= 1 && myself::OwnItemCount(talker,3261) == 0 && myself::OwnItemCount(talker,3257) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 12;
				myself::AddChoice(12,"Testimony of Prosperity - In Progress");
			}
			if( myself::HaveMemo(talker,221) == 1 && myself::OwnItemCount(talker,3261) == 0 && myself::OwnItemCount(talker,3257) == 0 && myself::OwnItemCount(talker,3250) == 0 && myself::OwnItemCount(talker,3239) >= 1 && myself::OwnItemCount(talker,3246) >= 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 13;
				myself::AddChoice(13,"Testimony of Prosperity - In Progress");
			}
			if( myself::HaveMemo(talker,221) == 1 && myself::OwnItemCount(talker,3239) >= 1 && myself::OwnItemCount(talker,3246) >= 1 && myself::OwnItemCount(talker,3257) >= 1 && myself::OwnItemCount(talker,3261) == 0 && myself::OwnItemCount(talker,3250) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 14;
				myself::AddChoice(14,"Testimony of Prosperity - In Progress");
			}
			if( myself::HaveMemo(talker,221) == 1 && myself::OwnItemCount(talker,3239) >= 1 && myself::OwnItemCount(talker,3246) >= 1 && myself::OwnItemCount(talker,3261) >= 1 && myself::OwnItemCount(talker,3257) == 0 && myself::OwnItemCount(talker,3250) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 15;
				myself::AddChoice(15,"Testimony of Prosperity - In Progress");
			}
			if( talker.level >= 30 && myself::HaveMemo(talker,116) == 0 && myself::GetOneTimeQuestFlag(talker,116) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 16;
				myself::AddChoice(16,"Beyond the Hills of Winter");
			}
			if( myself::HaveMemo(talker,116) == 0 && myself::GetOneTimeQuestFlag(talker,116) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 17;
				myself::AddChoice(17,"Beyond the Hills of Winter - Complete");
			}
			if( talker.level >= 30 && myself::HaveMemo(talker,116) == 1 && myself::GetMemoState(talker,116) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 18;
				myself::AddChoice(18,"Beyond the Hills of Winter - In Progress");
			}
			if( _choiceN > 1 )
			{
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 )
		{
			switch(_code)
			{
				case 0:
				{
					if( _from_choice == 0 || myself::HaveMemo(talker,293) == 0 )
					{
						myself::SetCurrentQuestID(293);
						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 )
						{
							if( talker.race != 4 )
							{
								myself::ShowPage(talker,"elder_filaur_q0293_00.htm");
							}
							else if( talker.level >= 6 )
							{
								myself::FHTML_SetFileName(fhtml0,"elder_filaur_q0293_02.htm");
								myself::FHTML_SetInt(fhtml0,"quest_id",293);
								myself::ShowFHTML(talker,fhtml0);
							}
							else
							{
								myself::ShowPage(talker,"elder_filaur_q0293_01.htm");
							}
						}
						else
						{
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 1:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,293) == 1 && myself::OwnItemCount(talker,1488) < 1 && myself::OwnItemCount(talker,1490) < 1 ) )
					{
						myself::SetCurrentQuestID(293);
						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,"elder_filaur_q0293_04.htm");
					}
					break;
				}
				case 2:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,293) == 1 && myself::OwnItemCount(talker,1488) < 1 && myself::OwnItemCount(talker,1490) >= 1 ) )
					{
						myself::SetCurrentQuestID(293);
						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();
							myself::ShowPage(talker,"elder_filaur_q0293_08.htm");
							if( myself::OwnItemCount(talker,1490) >= 10 )
							{
								myself::GiveItem1(talker,57,( ( myself::OwnItemCount(talker,1490) * 500 ) + 2000 ));
							}
							else
							{
								myself::GiveItem1(talker,57,( myself::OwnItemCount(talker,1490) * 500 ));
							}
							myself::DeleteItem1(talker,1490,myself::OwnItemCount(talker,1490));
							if( talker.level < 25 && myself::IsNewbie(talker) && myself::IsInCategory(0,talker.occupation) && myself::GetMemoStateEx(talker,255,1) != 10 )
							{
								myself::VoiceEffect(talker,"tutorial_voice_026",1000);
								myself::GiveItem1(talker,5789,6000);
								myself::SetMemoStateEx(talker,255,1,10);
								myself::ShowQuestionMark(talker,26);
							}
							myself::AddLog(3,talker,293);
						}
					}
					break;
				}
				case 3:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,293) == 1 && myself::OwnItemCount(talker,1488) >= 1 && myself::OwnItemCount(talker,1490) < 1 ) )
					{
						myself::SetCurrentQuestID(293);
						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();
							myself::ShowPage(talker,"elder_filaur_q0293_05.htm");
							if( myself::OwnItemCount(talker,1488) >= 10 )
							{
								myself::GiveItem1(talker,57,( ( myself::OwnItemCount(talker,1488) * 5 ) + 2000 ));
							}
							else
							{
								myself::GiveItem1(talker,57,( myself::OwnItemCount(talker,1488) * 5 ));
							}
							myself::DeleteItem1(talker,1488,myself::OwnItemCount(talker,1488));
							if( talker.level < 25 && myself::IsNewbie(talker) && myself::IsInCategory(0,talker.occupation) && myself::GetMemoStateEx(talker,255,1) != 10 )
							{
								myself::VoiceEffect(talker,"tutorial_voice_026",1000);
								myself::GiveItem1(talker,5789,6000);
								myself::SetMemoStateEx(talker,255,1,10);
								myself::ShowQuestionMark(talker,26);
							}
							myself::AddLog(3,talker,293);
						}
					}
					break;
				}
				case 4:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,293) == 1 && myself::OwnItemCount(talker,1488) >= 1 && myself::OwnItemCount(talker,1490) >= 1 ) )
					{
						myself::SetCurrentQuestID(293);
						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();
							myself::ShowPage(talker,"elder_filaur_q0293_09.htm");
							if( ( myself::OwnItemCount(talker,1488) + myself::OwnItemCount(talker,1490) ) >= 10 )
							{
								myself::GiveItem1(talker,57,( ( ( myself::OwnItemCount(talker,1488) * 5 ) + ( myself::OwnItemCount(talker,1490) * 500 ) ) + 2000 ));
							}
							else
							{
								myself::GiveItem1(talker,57,( ( myself::OwnItemCount(talker,1488) * 5 ) + ( myself::OwnItemCount(talker,1490) * 500 ) ));
							}
							myself::DeleteItem1(talker,1490,myself::OwnItemCount(talker,1490));
							myself::DeleteItem1(talker,1488,myself::OwnItemCount(talker,1488));
							if( talker.level < 25 && myself::IsNewbie(talker) && myself::IsInCategory(0,talker.occupation) && myself::GetMemoStateEx(talker,255,1) != 10 )
							{
								myself::VoiceEffect(talker,"tutorial_voice_026",1000);
								myself::GiveItem1(talker,5789,6000);
								myself::SetMemoStateEx(talker,255,1,10);
								myself::ShowQuestionMark(talker,26);
							}
							myself::AddLog(3,talker,293);
						}
					}
					break;
				}
				case 5:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,211) == 1 && myself::GetMemoState(talker,211) == 7 ) )
					{
						myself::SetCurrentQuestID(211);
						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( talker.level >= 36 )
						{
							myself::ShowPage(talker,"elder_filaur_q0211_01.htm");
							myself::SetMemoState(talker,211,8);
							myself::SetFlagJournal(talker,211,9);
						}
						else
						{
							myself::ShowPage(talker,"elder_filaur_q0211_03.htm");
						}
					}
					break;
				}
				case 6:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,211) == 1 && myself::GetMemoState(talker,211) == 8 ) )
					{
						myself::SetCurrentQuestID(211);
						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,"elder_filaur_q0211_02.htm");
						myself::ShowRadar(talker,176560,-184969,-3729,2);
					}
					break;
				}
				case 7:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,211) == 1 && myself::GetMemoState(talker,211) == 9 ) )
					{
						myself::SetCurrentQuestID(211);
						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,"elder_filaur_q0211_04.htm");
					}
					break;
				}
				case 8:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,231) == 1 && myself::GetMemoState(talker,231) == 1 && myself::OwnItemCount(talker,2865) == 0 ) )
					{
						myself::SetCurrentQuestID(231);
						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();
							myself::ShowPage(talker,"elder_filaur_q0231_01.htm");
							myself::GiveItem1(talker,2873,1);
							myself::SetMemoState(talker,231,4);
						}
					}
					break;
				}
				case 9:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,231) == 1 && myself::GetMemoState(talker,231) == 4 && myself::OwnItemCount(talker,2873) && myself::OwnItemCount(talker,2874) == 0 ) )
					{
						myself::SetCurrentQuestID(231);
						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,"elder_filaur_q0231_02.htm");
					}
					break;
				}
				case 10:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,231) == 1 && myself::GetMemoState(talker,231) == 4 && myself::OwnItemCount(talker,2873) == 0 && myself::OwnItemCount(talker,2874) ) )
					{
						myself::SetCurrentQuestID(231);
						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();
							myself::ShowPage(talker,"elder_filaur_q0231_03.htm");
							myself::GiveItem1(talker,2865,1);
							myself::DeleteItem1(talker,2874,1);
							myself::SetMemoState(talker,231,1);
							if( myself::OwnItemCount(talker,2864) >= 1 && myself::OwnItemCount(talker,2866) >= 1 )
							{
								myself::SetFlagJournal(talker,231,2);
							}
						}
					}
					break;
				}
				case 11:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,231) == 1 && myself::OwnItemCount(talker,2865) ) )
					{
						myself::SetCurrentQuestID(231);
						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,"elder_filaur_q0231_04.htm");
					}
					break;
				}
				case 12:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,221) == 1 && myself::OwnItemCount(talker,3239) >= 1 && myself::OwnItemCount(talker,3246) >= 1 && myself::OwnItemCount(talker,3250) >= 1 && myself::OwnItemCount(talker,3261) == 0 && myself::OwnItemCount(talker,3257) == 0 ) )
					{
						myself::SetCurrentQuestID(221);
						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,"elder_filaur_q0221_01.htm");
						myself::DeleteItem1(talker,3250,myself::OwnItemCount(talker,3250));
					}
					break;
				}
				case 13:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,221) == 1 && myself::OwnItemCount(talker,3261) == 0 && myself::OwnItemCount(talker,3257) == 0 && myself::OwnItemCount(talker,3250) == 0 && myself::OwnItemCount(talker,3239) >= 1 && myself::OwnItemCount(talker,3246) >= 1 ) )
					{
						myself::SetCurrentQuestID(221);
						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,"elder_filaur_q0221_02.htm");
					}
					break;
				}
				case 14:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,221) == 1 && myself::OwnItemCount(talker,3239) >= 1 && myself::OwnItemCount(talker,3246) >= 1 && myself::OwnItemCount(talker,3257) >= 1 && myself::OwnItemCount(talker,3261) == 0 && myself::OwnItemCount(talker,3250) == 0 ) )
					{
						myself::SetCurrentQuestID(221);
						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();
							myself::ShowPage(talker,"elder_filaur_q0221_03.htm");
							myself::DeleteItem1(talker,3257,1);
							myself::GiveItem1(talker,3261,1);
						}
					}
					break;
				}
				case 15:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,221) == 1 && myself::OwnItemCount(talker,3239) >= 1 && myself::OwnItemCount(talker,3246) >= 1 && myself::OwnItemCount(talker,3261) >= 1 && myself::OwnItemCount(talker,3257) == 0 && myself::OwnItemCount(talker,3250) == 0 ) )
					{
						myself::SetCurrentQuestID(221);
						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,"elder_filaur_q0221_04.htm");
					}
					break;
				}
				case 16:
				{
					if( _from_choice == 0 || ( talker.level >= 30 && myself::HaveMemo(talker,116) == 0 && myself::GetOneTimeQuestFlag(talker,116) == 0 ) )
					{
						myself::SetCurrentQuestID(116);
						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::FHTML_SetFileName(fhtml0,"elder_filaur_q116_001.htm");
							myself::FHTML_SetInt(fhtml0,"quest_id",116);
							myself::ShowFHTML(talker,fhtml0);
						}
						else
						{
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 17:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,116) == 0 && myself::GetOneTimeQuestFlag(talker,116) == 1 ) )
					{
						myself::SetCurrentQuestID(116);
						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 18:
				{
					if( _from_choice == 0 || ( talker.level >= 30 && myself::HaveMemo(talker,116) == 1 && myself::GetMemoState(talker,116) == 1 ) )
					{
						myself::SetCurrentQuestID(116);
						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::OwnItemCount(talker,1833) >= 20 && myself::OwnItemCount(talker,5589) >= 5 && myself::OwnItemCount(talker,1661) >= 10 )
						{
							myself::ShowPage(talker,"elder_filaur_q116_003.htm");
						}
						else
						{
							myself::ShowPage(talker,"elder_filaur_q116_006.htm");
						}
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler QUEST_ACCEPTED(quest_id,talker)
	{
		if( quest_id == 293 )
		{
			myself::SetCurrentQuestID(293);
			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();
				myself::SetMemo(talker,293);
				myself::AddLog(1,talker,293);
				myself::SetFlagJournal(talker,293,1);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::ShowPage(talker,"elder_filaur_q0293_03.htm");
			}
			return;
		}
		if( quest_id == 116 )
		{
			if( talker.occupation == 54 || talker.occupation == 55 || talker.occupation == 56 || talker.occupation == 57 )
			{
				myself::SetMemo(talker,116);
				myself::SetMemoState(talker,116,1);
				myself::AddLog(1,talker,116);
				myself::SetFlagJournal(talker,116,1);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::ShowPage(talker,"elder_filaur_q116_002.htm");
				return;
			}
			else
			{
				myself::ShowPage(talker,"elder_filaur_q116_005.htm");
			}
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,reply,talker)
	{
		if( ask == 293 )
		{
			myself::SetCurrentQuestID(293);
			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 == 293 )
		{
			if( reply == 1 )
			{
				myself::ShowPage(talker,"elder_filaur_q0293_06.htm");
				myself::DeleteItem1(talker,1489,myself::OwnItemCount(talker,1489));
				myself::RemoveMemo(talker,293);
				myself::AddLog(2,talker,293);
				myself::SoundEffect(talker,"ItemSound.quest_finish");
			}
			else if( reply == 2 )
			{
				myself::ShowPage(talker,"elder_filaur_q0293_07.htm");
			}
		}
		if( ask == 116 )
		{
			myself::SetCurrentQuestID(116);
			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 == 116 )
		{
			if( reply == 1 )
			{
				myself::ShowPage(talker,"elder_filaur_q116_004.htm");
				myself::DeleteItem1(talker,1833,20);
				myself::DeleteItem1(talker,5589,5);
				myself::DeleteItem1(talker,1661,10);
				myself::GiveItem1(talker,8098,1);
				myself::SetMemoState(talker,116,2);
				myself::AddLog(2,talker,116);
				myself::SetFlagJournal(talker,116,2);
			}
		}
		super;
	}

}
