class 1 seer_manakia : mage_coach
{
handler:
	EventHandler TALK_SELECTED(fhtml0,i0,talker)
	{
		if( _from_choice == 0 )
		{
			if( myself::HaveMemo(talker,217) == 1 && myself::OwnItemCount(talker,2757) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Testimony of Trust (Continue)");
			}
			if( myself::HaveMemo(talker,217) == 1 && myself::GetMemoState(talker,217) == 11 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Testimony of Trust (Continue)");
			}
			if( myself::HaveMemo(talker,217) == 1 && myself::GetMemoState(talker,217) == 12 && myself::OwnItemCount(talker,2756) == 10 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Testimony of Trust (Continue)");
			}
			if( myself::HaveMemo(talker,217) == 1 && myself::GetMemoState(talker,217) == 13 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Testimony of Trust (Continue)");
			}
			if( myself::HaveMemo(talker,220) == 1 && myself::OwnItemCount(talker,3209) && myself::OwnItemCount(talker,3210) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"Testimony of Glory (Continue)");
			}
			if( myself::HaveMemo(talker,220) == 1 && ( myself::OwnItemCount(talker,3216) || myself::OwnItemCount(talker,3217) || myself::OwnItemCount(talker,3220) ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 5;
				myself::AddChoice(5,"Testimony of Glory (Continue)");
			}
			if( myself::HaveMemo(talker,232) == 1 && myself::OwnItemCount(talker,3391) >= 1 && myself::OwnItemCount(talker,3392) >= 1 && myself::OwnItemCount(talker,3400) == 0 && myself::OwnItemCount(talker,3399) == 0 && myself::OwnItemCount(talker,3397) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 6;
				myself::AddChoice(6,"Test of the Lord (Continue)");
			}
			if( myself::HaveMemo(talker,232) == 1 && myself::OwnItemCount(talker,3392) >= 1 && myself::OwnItemCount(talker,3391) >= 1 && myself::OwnItemCount(talker,3397) >= 1 && myself::OwnItemCount(talker,3400) == 0 && myself::OwnItemCount(talker,3399) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 7;
				myself::AddChoice(7,"Test of the Lord (Continue)");
			}
			if( myself::HaveMemo(talker,232) == 1 && myself::OwnItemCount(talker,3400) == 0 && myself::OwnItemCount(talker,3397) == 0 && myself::OwnItemCount(talker,3391) >= 1 && myself::OwnItemCount(talker,3392) >= 1 && myself::OwnItemCount(talker,3399) >= 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 8;
				myself::AddChoice(8,"Test of the Lord (Continue)");
			}
			if( myself::HaveMemo(talker,232) == 1 && myself::OwnItemCount(talker,3391) >= 1 && myself::OwnItemCount(talker,3400) >= 1 && myself::OwnItemCount(talker,3392) == 0 && myself::OwnItemCount(talker,3399) == 0 && myself::OwnItemCount(talker,3397) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 9;
				myself::AddChoice(9,"Test of the Lord (Continue)");
			}
			if( myself::HaveMemo(talker,233) == 1 && myself::OwnItemCount(talker,2895) == 0 && myself::OwnItemCount(talker,2913) == 0 && myself::OwnItemCount(talker,2880) == 0 && myself::OwnItemCount(talker,2901) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 10;
				myself::AddChoice(10,"Test of the War Spirit (Continue)");
			}
			if( myself::HaveMemo(talker,233) == 1 && myself::OwnItemCount(talker,2895) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 11;
				myself::AddChoice(11,"Test of the War Spirit (Continue)");
			}
			if( myself::HaveMemo(talker,233) == 1 && myself::OwnItemCount(talker,2895) == 0 && ( myself::OwnItemCount(talker,2901) >= 1 || myself::OwnItemCount(talker,2913) >= 1 || myself::OwnItemCount(talker,2880) >= 1 ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 12;
				myself::AddChoice(12,"Test of the War Spirit (Continue)");
			}
			if( myself::HaveMemo(talker,375) == 0 && talker.level >= 60 && myself::OwnItemCount(talker,5887) > 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 13;
				myself::AddChoice(13,"Whisper of Dreams, Part 2");
			}
			if( myself::HaveMemo(talker,375) == 0 && talker.level < 60 && myself::OwnItemCount(talker,5887) > 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 14;
				myself::AddChoice(14,"Whisper of Dreams, Part 2");
			}
			if( myself::HaveMemo(talker,375) == 1 && ( ( myself::OwnItemCount(talker,5888) < 100 && myself::OwnItemCount(talker,5889) <= 100 ) || ( myself::OwnItemCount(talker,5888) <= 100 && myself::OwnItemCount(talker,5889) < 100 ) ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 15;
				myself::AddChoice(15,"Whisper of Dreams, Part 2 (Continue)");
			}
			if( myself::HaveMemo(talker,375) == 1 && myself::OwnItemCount(talker,5888) >= 100 && myself::OwnItemCount(talker,5889) >= 100 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 16;
				myself::AddChoice(16,"Whisper of Dreams, Part 2 (Continue)");
			}
			if( myself::HaveMemo(talker,374) == 0 && talker.level >= 56 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 17;
				myself::AddChoice(17,"Whisper of Dreams, Part 1");
			}
			if( myself::HaveMemo(talker,374) == 0 && talker.level < 56 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 18;
				myself::AddChoice(18,"Whisper of Dreams, Part 1");
			}
			if( ( myself::HaveMemo(talker,374) == 1 && ( ( myself::OwnItemCount(talker,5884) < 65 && myself::OwnItemCount(talker,5885) <= 65 ) || ( myself::OwnItemCount(talker,5884) <= 65 && myself::OwnItemCount(talker,5885) < 65 ) ) ) && myself::OwnItemCount(talker,5886) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 19;
				myself::AddChoice(19,"Whisper of Dreams, Part 1 (Continue)");
			}
			if( myself::HaveMemo(talker,374) == 1 && myself::OwnItemCount(talker,5884) >= 65 && myself::OwnItemCount(talker,5885) >= 65 && myself::OwnItemCount(talker,5886) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 20;
				myself::AddChoice(20,"Whisper of Dreams, Part 1 (Continue)");
			}
			if( myself::HaveMemo(talker,374) == 1 && myself::OwnItemCount(talker,5886) > 0 && myself::GetMemoState(talker,374) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 21;
				myself::AddChoice(21,"Whisper of Dreams, Part 1 (Continue)");
			}
			if( myself::HaveMemo(talker,374) == 1 && myself::OwnItemCount(talker,5886) > 0 && myself::GetMemoState(talker,374) == 2 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 22;
				myself::AddChoice(22,"Whisper of Dreams, Part 1 (Continue)");
			}
			if( _choiceN > 1 )
			{
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 )
		{
			switch(_code)
			{
				case 0:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,217) == 1 && myself::OwnItemCount(talker,2757) ) )
					{
						myself::SetCurrentQuestID(217);
						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,"seer_manakia_q0217_01.htm");
					}
					break;
				}
				case 1:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,217) == 1 && myself::GetMemoState(talker,217) == 11 ) )
					{
						myself::SetCurrentQuestID(217);
						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,"seer_manakia_q0217_03.htm");
					}
					break;
				}
				case 2:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,217) == 1 && myself::GetMemoState(talker,217) == 12 && myself::OwnItemCount(talker,2756) == 10 ) )
					{
						myself::SetCurrentQuestID(217);
						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,"seer_manakia_q0217_04.htm");
							myself::GiveItem1(talker,2758,1);
							myself::DeleteItem1(talker,2756,myself::OwnItemCount(talker,2756));
							myself::SetMemoState(talker,217,13);
							myself::SetFlagJournal(talker,217,16);
						}
					}
					break;
				}
				case 3:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,217) == 1 && myself::GetMemoState(talker,217) == 13 ) )
					{
						myself::SetCurrentQuestID(217);
						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,"seer_manakia_q0217_05.htm");
					}
					break;
				}
				case 4:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,220) == 1 && myself::OwnItemCount(talker,3209) && myself::OwnItemCount(talker,3210) ) )
					{
						myself::SetCurrentQuestID(220);
						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,"seer_manakia_q0220_01.htm");
					}
					break;
				}
				case 5:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,220) == 1 && ( myself::OwnItemCount(talker,3216) || myself::OwnItemCount(talker,3217) || myself::OwnItemCount(talker,3220) ) ) )
					{
						myself::SetCurrentQuestID(220);
						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,"seer_manakia_q0220_08.htm");
					}
					break;
				}
				case 6:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,232) == 1 && myself::OwnItemCount(talker,3391) >= 1 && myself::OwnItemCount(talker,3392) >= 1 && myself::OwnItemCount(talker,3400) == 0 && myself::OwnItemCount(talker,3399) == 0 && myself::OwnItemCount(talker,3397) == 0 ) )
					{
						myself::SetCurrentQuestID(232);
						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,"seer_manakia_q0232_01.htm");
							myself::GiveItem1(talker,3397,1);
						}
					}
					break;
				}
				case 7:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,232) == 1 && myself::OwnItemCount(talker,3392) >= 1 && myself::OwnItemCount(talker,3391) >= 1 && myself::OwnItemCount(talker,3397) >= 1 && myself::OwnItemCount(talker,3400) == 0 && myself::OwnItemCount(talker,3399) == 0 ) )
					{
						myself::SetCurrentQuestID(232);
						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,3398) < 20 )
						{
							myself::ShowPage(talker,"seer_manakia_q0232_02.htm");
						}
						else if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::ShowPage(talker,"seer_manakia_q0232_03.htm");
							myself::DeleteItem1(talker,3397,1);
							myself::GiveItem1(talker,3399,1);
							myself::DeleteItem1(talker,3398,myself::OwnItemCount(talker,3398));
						}
					}
					break;
				}
				case 8:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,232) == 1 && myself::OwnItemCount(talker,3400) == 0 && myself::OwnItemCount(talker,3397) == 0 && myself::OwnItemCount(talker,3391) >= 1 && myself::OwnItemCount(talker,3392) >= 1 && myself::OwnItemCount(talker,3399) >= 1 ) )
					{
						myself::SetCurrentQuestID(232);
						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,"seer_manakia_q0232_04.htm");
					}
					break;
				}
				case 9:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,232) == 1 && myself::OwnItemCount(talker,3391) >= 1 && myself::OwnItemCount(talker,3400) >= 1 && myself::OwnItemCount(talker,3392) == 0 && myself::OwnItemCount(talker,3399) == 0 && myself::OwnItemCount(talker,3397) == 0 ) )
					{
						myself::SetCurrentQuestID(232);
						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,"seer_manakia_q0232_05.htm");
					}
					break;
				}
				case 10:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,233) == 1 && myself::OwnItemCount(talker,2895) == 0 && myself::OwnItemCount(talker,2913) == 0 && myself::OwnItemCount(talker,2880) == 0 && myself::OwnItemCount(talker,2901) == 0 ) )
					{
						myself::SetCurrentQuestID(233);
						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,"seer_manakia_q0233_01.htm");
					}
					break;
				}
				case 11:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,233) == 1 && myself::OwnItemCount(talker,2895) == 1 ) )
					{
						myself::SetCurrentQuestID(233);
						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,2896) >= 1 && myself::OwnItemCount(talker,2897) >= 1 && myself::OwnItemCount(talker,2898) >= 1 && myself::OwnItemCount(talker,2899) >= 1 && myself::OwnItemCount(talker,2900) >= 1 )
						{
							if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
							{
								talker.quest_last_reward_time = myself::GetCurrentTick();
								myself::ShowPage(talker,"seer_manakia_q0233_04.htm");
								myself::DeleteItem1(talker,2895,myself::OwnItemCount(talker,2895));
								myself::DeleteItem1(talker,2896,myself::OwnItemCount(talker,2896));
								myself::DeleteItem1(talker,2897,myself::OwnItemCount(talker,2897));
								myself::DeleteItem1(talker,2898,myself::OwnItemCount(talker,2898));
								myself::DeleteItem1(talker,2899,myself::OwnItemCount(talker,2899));
								myself::DeleteItem1(talker,2900,1);
								myself::GiveItem1(talker,2901,1);
							}
						}
						else
						{
							myself::ShowPage(talker,"seer_manakia_q0233_03.htm");
						}
					}
					break;
				}
				case 12:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,233) == 1 && myself::OwnItemCount(talker,2895) == 0 && ( myself::OwnItemCount(talker,2901) >= 1 || myself::OwnItemCount(talker,2913) >= 1 || myself::OwnItemCount(talker,2880) >= 1 ) ) )
					{
						myself::SetCurrentQuestID(233);
						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,"seer_manakia_q0233_05.htm");
					}
					break;
				}
				case 13:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,375) == 0 && talker.level >= 60 && myself::OwnItemCount(talker,5887) > 0 ) )
					{
						myself::SetCurrentQuestID(375);
						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::FHTML_SetFileName(fhtml0,"seer_manakia_q0375_01.htm");
						myself::FHTML_SetInt(fhtml0,"quest_id",375);
						myself::ShowFHTML(talker,fhtml0);
					}
					break;
				}
				case 14:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,375) == 0 && talker.level < 60 && myself::OwnItemCount(talker,5887) > 0 ) )
					{
						myself::SetCurrentQuestID(375);
						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,"seer_manakia_q0375_02.htm");
					}
					break;
				}
				case 15:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,375) == 1 && ( ( myself::OwnItemCount(talker,5888) < 100 && myself::OwnItemCount(talker,5889) <= 100 ) || ( myself::OwnItemCount(talker,5888) <= 100 && myself::OwnItemCount(talker,5889) < 100 ) ) ) )
					{
						myself::SetCurrentQuestID(375);
						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,"seer_manakia_q0375_04.htm");
					}
					break;
				}
				case 16:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,375) == 1 && myself::OwnItemCount(talker,5888) >= 100 && myself::OwnItemCount(talker,5889) >= 100 ) )
					{
						myself::SetCurrentQuestID(375);
						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(100);
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							if( i0 < 34 )
							{
								myself::GiveItem1(talker,5348,1);
							}
							else if( i0 < 67 )
							{
								myself::GiveItem1(talker,5352,1);
							}
							else
							{
								myself::GiveItem1(talker,5350,1);
							}
							myself::DeleteItem1(talker,5888,myself::OwnItemCount(talker,5888));
							myself::DeleteItem1(talker,5889,myself::OwnItemCount(talker,5889));
							myself::ShowPage(talker,"seer_manakia_q0375_05.htm");
						}
					}
					break;
				}
				case 17:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,374) == 0 && talker.level >= 56 ) )
					{
						myself::SetCurrentQuestID(374);
						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::FHTML_SetFileName(fhtml0,"seer_manakia_q0374_01.htm");
						myself::FHTML_SetInt(fhtml0,"quest_id",374);
						myself::ShowFHTML(talker,fhtml0);
					}
					break;
				}
				case 18:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,374) == 0 && talker.level < 56 ) )
					{
						myself::SetCurrentQuestID(374);
						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,"seer_manakia_q0374_02.htm");
					}
					break;
				}
				case 19:
				{
					if( _from_choice == 0 || ( ( myself::HaveMemo(talker,374) == 1 && ( ( myself::OwnItemCount(talker,5884) < 65 && myself::OwnItemCount(talker,5885) <= 65 ) || ( myself::OwnItemCount(talker,5884) <= 65 && myself::OwnItemCount(talker,5885) < 65 ) ) ) && myself::OwnItemCount(talker,5886) == 0 ) )
					{
						myself::SetCurrentQuestID(374);
						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,"seer_manakia_q0374_04.htm");
					}
					break;
				}
				case 20:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,374) == 1 && myself::OwnItemCount(talker,5884) >= 65 && myself::OwnItemCount(talker,5885) >= 65 && myself::OwnItemCount(talker,5886) == 0 ) )
					{
						myself::SetCurrentQuestID(374);
						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,"seer_manakia_q0374_05.htm");
					}
					break;
				}
				case 21:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,374) == 1 && myself::OwnItemCount(talker,5886) > 0 && myself::GetMemoState(talker,374) == 1 ) )
					{
						myself::SetCurrentQuestID(374);
						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::SetMemoState(talker,374,2);
						myself::ShowPage(talker,"seer_manakia_q0374_08.htm");
						myself::SetJournal(talker,374,2);
					}
					break;
				}
				case 22:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,374) == 1 && myself::OwnItemCount(talker,5886) > 0 && myself::GetMemoState(talker,374) == 2 ) )
					{
						myself::SetCurrentQuestID(374);
						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,"seer_manakia_q0374_09.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler QUEST_ACCEPTED(quest_id,talker)
	{
		if( quest_id == 375 )
		{
			myself::SetCurrentQuestID(375);
			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( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
				{
					talker.quest_last_reward_time = myself::GetCurrentTick();
					myself::SetMemoState(talker,375,1);
					myself::SetMemo(talker,quest_id);
					myself::SoundEffect(talker,"ItemSound.quest_accept");
					myself::ShowPage(talker,"seer_manakia_q0375_03.htm");
					myself::SetJournal(talker,375,1);
					myself::AddLog(1,talker,quest_id);
				}
			}
			else
			{
				myself::ShowPage(talker,"fullquest.htm");
			}
			return;
		}
		if( quest_id == 374 )
		{
			myself::SetCurrentQuestID(374);
			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( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
				{
					talker.quest_last_reward_time = myself::GetCurrentTick();
					myself::SetMemoState(talker,374,1);
					myself::SetMemo(talker,quest_id);
					myself::SoundEffect(talker,"ItemSound.quest_accept");
					myself::SetJournal(talker,374,1);
					myself::ShowPage(talker,"seer_manakia_q0374_03.htm");
					myself::AddLog(1,talker,quest_id);
				}
			}
			else
			{
				myself::ShowPage(talker,"fullquest.htm");
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,quest_id,reply,talker)
	{
		if( ask == 217 )
		{
			myself::SetCurrentQuestID(217);
			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 == 217 )
		{
			if( reply == 1 && myself::OwnItemCount(talker,2757) > 0 )
			{
				myself::ShowPage(talker,"seer_manakia_q0217_02.htm");
				myself::DeleteItem1(talker,2757,1);
				myself::SetMemoState(talker,217,11);
				myself::SetFlagJournal(talker,217,14);
			}
		}
		if( ask == 220 )
		{
			myself::SetCurrentQuestID(220);
			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 == 220 )
		{
			if( reply == 1 )
			{
				if( myself::OwnItemCount(talker,3211) == 0 && myself::OwnItemCount(talker,3228) )
				{
					myself::ShowPage(talker,"seer_manakia_q0220_04.htm");
				}
				else if( myself::OwnItemCount(talker,3211) )
				{
					myself::ShowPage(talker,"seer_manakia_q0220_02.htm");
				}
				else if( myself::OwnItemCount(talker,3211) == 0 && myself::OwnItemCount(talker,3228) == 0 )
				{
					if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
					{
						talker.quest_last_reward_time = myself::GetCurrentTick();
						myself::ShowPage(talker,"seer_manakia_q0220_03.htm");
						myself::GiveItem1(talker,3228,1);
					}
				}
			}
			else if( reply == 2 )
			{
				if( myself::OwnItemCount(talker,3212) )
				{
					myself::ShowPage(talker,"seer_manakia_q0220_05.htm");
				}
				else if( myself::OwnItemCount(talker,3212) == 0 && myself::OwnItemCount(talker,3229) == 0 )
				{
					if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
					{
						talker.quest_last_reward_time = myself::GetCurrentTick();
						myself::ShowPage(talker,"seer_manakia_q0220_06.htm");
						myself::GiveItem1(talker,3229,1);
					}
				}
				else if( myself::OwnItemCount(talker,3212) == 0 && myself::OwnItemCount(talker,3229) )
				{
					myself::ShowPage(talker,"seer_manakia_q0220_07.htm");
				}
			}
		}
		if( ask == 233 )
		{
			myself::SetCurrentQuestID(233);
			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 == 233 )
		{
			if( reply == 1 )
			{
				if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
				{
					talker.quest_last_reward_time = myself::GetCurrentTick();
					myself::ShowPage(talker,"seer_manakia_q0233_02.htm");
					myself::GiveItem1(talker,2895,1);
				}
			}
		}
		if( ask == 375 )
		{
			myself::SetCurrentQuestID(375);
			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 == 375 )
		{
			if( reply == 1 )
			{
				myself::ShowPage(talker,"seer_manakia_q0375_06.htm");
			}
			if( reply == 2 )
			{
				myself::RemoveMemo(talker,375);
				myself::SoundEffect(talker,"ItemSound.quest_finish");
				myself::ShowPage(talker,"seer_manakia_q0375_07.htm");
				myself::AddLog(2,talker,quest_id);
			}
		}
		if( ask == 374 )
		{
			myself::SetCurrentQuestID(374);
			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 == 374 )
		{
			if( reply == 1 )
			{
				myself::ShowPage(talker,"seer_manakia_q0374_06.htm");
			}
			if( reply == 2 )
			{
				myself::AddLog(2,talker,374);
				myself::RemoveMemo(talker,374);
				myself::SoundEffect(talker,"ItemSound.quest_finish");
				myself::ShowPage(talker,"seer_manakia_q0374_07.htm");
			}
			if( reply == 3 && myself::OwnItemCount(talker,5884) >= 65 && myself::OwnItemCount(talker,5885) >= 65 )
			{
				myself::GiveItem1(talker,5486,3);
				myself::GiveItem1(talker,57,2950);
				myself::DeleteItem1(talker,5884,myself::OwnItemCount(talker,5884));
				myself::DeleteItem1(talker,5885,myself::OwnItemCount(talker,5885));
				myself::ShowPage(talker,"seer_manakia_q0374_10.htm");
			}
			if( reply == 4 && myself::OwnItemCount(talker,5884) >= 65 && myself::OwnItemCount(talker,5885) >= 65 )
			{
				myself::GiveItem1(talker,5487,2);
				myself::GiveItem1(talker,57,18050);
				myself::DeleteItem1(talker,5884,myself::OwnItemCount(talker,5884));
				myself::DeleteItem1(talker,5885,myself::OwnItemCount(talker,5885));
				myself::ShowPage(talker,"seer_manakia_q0374_10.htm");
			}
			if( reply == 5 && myself::OwnItemCount(talker,5884) >= 65 && myself::OwnItemCount(talker,5885) >= 65 )
			{
				myself::GiveItem1(talker,5488,2);
				myself::GiveItem1(talker,57,18050);
				myself::DeleteItem1(talker,5884,myself::OwnItemCount(talker,5884));
				myself::DeleteItem1(talker,5885,myself::OwnItemCount(talker,5885));
				myself::ShowPage(talker,"seer_manakia_q0374_10.htm");
			}
			if( reply == 6 && myself::OwnItemCount(talker,5884) >= 65 && myself::OwnItemCount(talker,5885) >= 65 )
			{
				myself::GiveItem1(talker,5485,4);
				myself::GiveItem1(talker,57,10450);
				myself::DeleteItem1(talker,5884,myself::OwnItemCount(talker,5884));
				myself::DeleteItem1(talker,5885,myself::OwnItemCount(talker,5885));
				myself::ShowPage(talker,"seer_manakia_q0374_10.htm");
			}
			if( reply == 7 && myself::OwnItemCount(talker,5884) >= 65 && myself::OwnItemCount(talker,5885) >= 65 )
			{
				myself::GiveItem1(talker,5489,6);
				myself::GiveItem1(talker,57,15550);
				myself::DeleteItem1(talker,5884,myself::OwnItemCount(talker,5884));
				myself::DeleteItem1(talker,5885,myself::OwnItemCount(talker,5885));
				myself::ShowPage(talker,"seer_manakia_q0374_10.htm");
			}
		}
		super;
	}

}
