class 1 hollin : master_lv3_hec
{
handler:
	EventHandler TALK_SELECTED(fhtml0,talker)
	{
		if( _from_choice == 0 )
		{
			if( myself::HaveMemo(talker,217) == 0 && myself::GetOneTimeQuestFlag(talker,217) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Testimony of Trust");
			}
			if( myself::HaveMemo(talker,217) == 0 && myself::GetOneTimeQuestFlag(talker,217) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Testimony of Trust (Complete)");
			}
			if( myself::HaveMemo(talker,217) == 1 && myself::GetMemoState(talker,217) == 7 && myself::OwnItemCount(talker,2741) && myself::OwnItemCount(talker,2740) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Testimony of Trust (Continue)");
			}
			if( myself::HaveMemo(talker,217) == 1 && myself::GetMemoState(talker,217) == 18 && myself::OwnItemCount(talker,2742) && myself::OwnItemCount(talker,2743) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Testimony of Trust (Continue)");
			}
			if( myself::HaveMemo(talker,217) == 1 && myself::GetMemoState(talker,217) == 19 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"Testimony of Trust (Continue)");
			}
			if( myself::HaveMemo(talker,217) == 1 && myself::GetMemoState(talker,217) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 5;
				myself::AddChoice(5,"Testimony of Trust (Continue)");
			}
			if( myself::HaveMemo(talker,217) == 1 && myself::GetMemoState(talker,217) == 8 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 6;
				myself::AddChoice(6,"Testimony of Trust (Continue)");
			}
			if( myself::HaveMemo(talker,85) == 0 && myself::GetOneTimeQuestFlag(talker,85) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 7;
				myself::AddChoice(7,"Saga of the Cardinal");
			}
			if( myself::HaveMemo(talker,85) == 0 && myself::GetOneTimeQuestFlag(talker,85) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 8;
				myself::AddChoice(8,"Saga of the Cardinal (End)");
			}
			if( myself::HaveMemo(talker,85) == 1 && talker.occupation == 16 && myself::GetMemoState(talker,85) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 9;
				myself::AddChoice(9,"Saga of the Cardinal (Continue)");
			}
			if( myself::HaveMemo(talker,85) == 1 && talker.occupation == 16 && myself::GetMemoState(talker,85) == 15 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 10;
				myself::AddChoice(10,"Saga of the Cardinal (Continue)");
			}
			if( myself::HaveMemo(talker,85) == 1 && talker.occupation == 16 && myself::GetMemoState(talker,85) == 16 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 11;
				myself::AddChoice(11,"Saga of the Cardinal (Continue)");
			}
			if( myself::HaveMemo(talker,86) == 0 && myself::GetOneTimeQuestFlag(talker,86) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 12;
				myself::AddChoice(12,"Saga of the Hierophant");
			}
			if( myself::HaveMemo(talker,86) == 0 && myself::GetOneTimeQuestFlag(talker,86) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 13;
				myself::AddChoice(13,"Saga of the Hierophant (End)");
			}
			if( myself::HaveMemo(talker,86) == 1 && talker.occupation == 17 && myself::GetMemoState(talker,86) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 14;
				myself::AddChoice(14,"Saga of the Hierophant (Continue)");
			}
			if( myself::HaveMemo(talker,86) == 1 && talker.occupation == 17 && myself::GetMemoState(talker,86) == 15 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 15;
				myself::AddChoice(15,"Saga of the Hierophant (Continue)");
			}
			if( myself::HaveMemo(talker,86) == 1 && talker.occupation == 17 && myself::GetMemoState(talker,86) == 16 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 16;
				myself::AddChoice(16,"Saga of the Hierophant (Continue)");
			}
			if( myself::HaveMemo(talker,87) == 0 && myself::GetOneTimeQuestFlag(talker,87) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 17;
				myself::AddChoice(17,"Saga of the Eva's Saint");
			}
			if( myself::HaveMemo(talker,87) == 0 && myself::GetOneTimeQuestFlag(talker,87) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 18;
				myself::AddChoice(18,"Saga of the Eva's Saint (End)");
			}
			if( myself::HaveMemo(talker,87) == 1 && talker.occupation == 30 && myself::GetMemoState(talker,87) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 19;
				myself::AddChoice(19,"Saga of the Eva's Saint (Continue)");
			}
			if( myself::HaveMemo(talker,87) == 1 && talker.occupation == 30 && myself::GetMemoState(talker,87) == 15 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 20;
				myself::AddChoice(20,"Saga of the Eva's Saint (Continue)");
			}
			if( myself::HaveMemo(talker,87) == 1 && talker.occupation == 30 && myself::GetMemoState(talker,87) == 16 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 21;
				myself::AddChoice(21,"Saga of the Eva's Saint (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) == 0 && myself::GetOneTimeQuestFlag(talker,217) == 0 ) )
					{
						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::GetMemoCount(talker) < 26 )
						{
							if( talker.race == 0 && talker.level >= 37 && myself::IsInCategory(17,talker.occupation) )
							{
								myself::FHTML_SetFileName(fhtml0,"hollin_q0217_03.htm");
								myself::FHTML_SetInt(fhtml0,"quest_id",217);
								myself::ShowFHTML(talker,fhtml0);
							}
							else if( talker.race == 0 && talker.level >= 37 && myself::IsInCategory(5,talker.occupation) )
							{
								myself::ShowPage(talker,"hollin_q0217_01a.htm");
							}
							else if( talker.race == 0 && talker.level >= 37 )
							{
								myself::ShowPage(talker,"hollin_q0217_01b.htm");
							}
							else if( talker.race == 0 )
							{
								myself::ShowPage(talker,"hollin_q0217_01.htm");
							}
							else
							{
								myself::ShowPage(talker,"hollin_q0217_02.htm");
							}
						}
						else
						{
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 1:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,217) == 0 && myself::GetOneTimeQuestFlag(talker,217) == 1 ) )
					{
						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,"finishedquest.htm");
					}
					break;
				}
				case 2:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,217) == 1 && myself::GetMemoState(talker,217) == 7 && myself::OwnItemCount(talker,2741) && myself::OwnItemCount(talker,2740) ) )
					{
						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,"hollin_q0217_05.htm");
							myself::GiveItem1(talker,2739,1);
							myself::DeleteItem1(talker,2740,1);
							myself::DeleteItem1(talker,2741,1);
							myself::SetMemoState(talker,217,8);
							myself::SetFlagJournal(talker,217,10);
						}
					}
					break;
				}
				case 3:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,217) == 1 && myself::GetMemoState(talker,217) == 18 && myself::OwnItemCount(talker,2742) && myself::OwnItemCount(talker,2743) ) )
					{
						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,"hollin_q0217_06.htm");
							myself::GiveItem1(talker,2744,1);
							myself::DeleteItem1(talker,2742,1);
							myself::DeleteItem1(talker,2743,1);
							myself::SetMemoState(talker,217,19);
							myself::SetFlagJournal(talker,217,23);
						}
					}
					break;
				}
				case 4:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,217) == 1 && myself::GetMemoState(talker,217) == 19 ) )
					{
						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,"hollin_q0217_07.htm");
					}
					break;
				}
				case 5:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,217) == 1 && myself::GetMemoState(talker,217) == 1 ) )
					{
						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,"hollin_q0217_08.htm");
					}
					break;
				}
				case 6:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,217) == 1 && myself::GetMemoState(talker,217) == 8 ) )
					{
						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,"hollin_q0217_09.htm");
					}
					break;
				}
				case 7:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,85) == 0 && myself::GetOneTimeQuestFlag(talker,85) == 0 ) )
					{
						myself::SetCurrentQuestID(85);
						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.level >= 76 && talker.occupation == 16 )
							{
								myself::ShowPage(talker,"hollin_q0085_0101.htm");
							}
							else
							{
								myself::ShowPage(talker,"hollin_q0085_0102.htm");
							}
						}
						else
						{
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 8:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,85) == 0 && myself::GetOneTimeQuestFlag(talker,85) == 1 ) )
					{
						myself::SetCurrentQuestID(85);
						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 9:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,85) == 1 && talker.occupation == 16 && myself::GetMemoState(talker,85) == 1 ) )
					{
						myself::SetCurrentQuestID(85);
						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,"hollin_q0085_0104.htm");
					}
					break;
				}
				case 10:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,85) == 1 && talker.occupation == 16 && myself::GetMemoState(talker,85) == 15 ) )
					{
						myself::SetCurrentQuestID(85);
						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,"hollin_q0085_0106.htm");
					}
					break;
				}
				case 11:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,85) == 1 && talker.occupation == 16 && myself::GetMemoState(talker,85) == 16 ) )
					{
						myself::SetCurrentQuestID(85);
						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 >= 76 )
						{
							if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
							{
								talker.quest_last_reward_time = myself::GetCurrentTick();
								myself::AddUseSkillDesire(talker,1110785,1,0,1000000);
								myself::ClassChange(talker,97);
								myself::SetOneTimeQuestFlag(talker,85,1);
								myself::GiveItem1(talker,57,5000000);
								myself::GiveItem1(talker,6622,1);
								myself::IncrementParam(talker,0,2299404);
								myself::RemoveMemo(talker,85);
								myself::ShowPage(talker,"hollin_q0085_0109.htm");
								myself::ShowSystemMessage(talker,1606);
							}
						}
						else
						{
							myself::ShowPage(talker,"hollin_q0085_0110.htm");
						}
					}
					break;
				}
				case 12:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,86) == 0 && myself::GetOneTimeQuestFlag(talker,86) == 0 ) )
					{
						myself::SetCurrentQuestID(86);
						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.level >= 76 && talker.occupation == 17 )
							{
								myself::ShowPage(talker,"hollin_q0086_0101.htm");
							}
							else
							{
								myself::ShowPage(talker,"hollin_q0086_0102.htm");
							}
						}
						else
						{
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 13:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,86) == 0 && myself::GetOneTimeQuestFlag(talker,86) == 1 ) )
					{
						myself::SetCurrentQuestID(86);
						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 14:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,86) == 1 && talker.occupation == 17 && myself::GetMemoState(talker,86) == 1 ) )
					{
						myself::SetCurrentQuestID(86);
						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,"hollin_q0086_0104.htm");
					}
					break;
				}
				case 15:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,86) == 1 && talker.occupation == 17 && myself::GetMemoState(talker,86) == 15 ) )
					{
						myself::SetCurrentQuestID(86);
						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,"hollin_q0086_0106.htm");
					}
					break;
				}
				case 16:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,86) == 1 && talker.occupation == 17 && myself::GetMemoState(talker,86) == 16 ) )
					{
						myself::SetCurrentQuestID(86);
						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 >= 76 )
						{
							if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
							{
								talker.quest_last_reward_time = myself::GetCurrentTick();
								myself::AddUseSkillDesire(talker,1110785,1,0,1000000);
								myself::ClassChange(talker,98);
								myself::SetOneTimeQuestFlag(talker,86,1);
								myself::GiveItem1(talker,57,5000000);
								myself::GiveItem1(talker,6622,1);
								myself::IncrementParam(talker,0,2299404);
								myself::RemoveMemo(talker,86);
								myself::ShowPage(talker,"hollin_q0086_0109.htm");
								myself::ShowSystemMessage(talker,1606);
							}
						}
						else
						{
							myself::ShowPage(talker,"hollin_q0086_0110.htm");
						}
					}
					break;
				}
				case 17:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,87) == 0 && myself::GetOneTimeQuestFlag(talker,87) == 0 ) )
					{
						myself::SetCurrentQuestID(87);
						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.level >= 76 && talker.occupation == 30 )
							{
								myself::ShowPage(talker,"hollin_q0087_0101.htm");
							}
							else
							{
								myself::ShowPage(talker,"hollin_q0087_0102.htm");
							}
						}
						else
						{
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 18:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,87) == 0 && myself::GetOneTimeQuestFlag(talker,87) == 1 ) )
					{
						myself::SetCurrentQuestID(87);
						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 19:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,87) == 1 && talker.occupation == 30 && myself::GetMemoState(talker,87) == 1 ) )
					{
						myself::SetCurrentQuestID(87);
						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,"hollin_q0087_0104.htm");
					}
					break;
				}
				case 20:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,87) == 1 && talker.occupation == 30 && myself::GetMemoState(talker,87) == 15 ) )
					{
						myself::SetCurrentQuestID(87);
						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,"hollin_q0087_0106.htm");
					}
					break;
				}
				case 21:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,87) == 1 && talker.occupation == 30 && myself::GetMemoState(talker,87) == 16 ) )
					{
						myself::SetCurrentQuestID(87);
						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 >= 76 )
						{
							if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
							{
								talker.quest_last_reward_time = myself::GetCurrentTick();
								myself::AddUseSkillDesire(talker,1110785,1,0,1000000);
								myself::ClassChange(talker,105);
								myself::SetOneTimeQuestFlag(talker,87,1);
								myself::GiveItem1(talker,57,5000000);
								myself::GiveItem1(talker,6622,1);
								myself::IncrementParam(talker,0,2299404);
								myself::RemoveMemo(talker,87);
								myself::ShowPage(talker,"hollin_q0087_0109.htm");
								myself::ShowSystemMessage(talker,1606);
							}
						}
						else
						{
							myself::ShowPage(talker,"hollin_q0087_0110.htm");
						}
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler QUEST_ACCEPTED(quest_id,talker)
	{
		if( quest_id == 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( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
			{
				talker.quest_last_reward_time = myself::GetCurrentTick();
				myself::SetMemo(talker,quest_id);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::ShowPage(talker,"hollin_q0217_04.htm");
				myself::AddLog(1,talker,217);
				myself::SetFlagJournal(talker,217,1);
				myself::SetMemoState(talker,217,1);
				myself::GiveItem1(talker,2735,1);
				myself::GiveItem1(talker,2736,1);
				talker.flag = 0;
			}
			return;
		}
		if( quest_id == 85 )
		{
			myself::SetCurrentQuestID(85);
			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::GiveItem1(talker,7087,1);
				myself::SetMemo(talker,85);
				myself::SetMemoState(talker,85,1);
				myself::SetFlagJournal(talker,85,1);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::ShowPage(talker,"hollin_q0085_0103.htm");
				myself::AddLog(1,talker,85);
			}
			return;
		}
		if( quest_id == 86 )
		{
			myself::SetCurrentQuestID(86);
			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::GiveItem1(talker,7089,1);
				myself::SetMemo(talker,86);
				myself::SetMemoState(talker,86,1);
				myself::SetFlagJournal(talker,86,1);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::ShowPage(talker,"hollin_q0086_0103.htm");
				myself::AddLog(1,talker,86);
			}
			return;
		}
		if( quest_id == 87 )
		{
			myself::SetCurrentQuestID(87);
			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::GiveItem1(talker,7088,1);
				myself::SetMemo(talker,87);
				myself::SetMemoState(talker,87,1);
				myself::SetFlagJournal(talker,87,1);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::ShowPage(talker,"hollin_q0087_0103.htm");
				myself::AddLog(1,talker,87);
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,fhtml0,reply,talker)
	{
		if( ask == 85 )
		{
			myself::SetCurrentQuestID(85);
			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 == 85 )
		{
			if( reply == 1 )
			{
				if( myself::HaveMemo(talker,85) == 0 && talker.occupation == 16 && talker.level >= 76 && myself::GetOneTimeQuestFlag(talker,85) == 0 )
				{
					myself::FHTML_SetFileName(fhtml0,"hollin_q0085_0105.htm");
					myself::FHTML_SetInt(fhtml0,"quest_id",85);
					myself::ShowFHTML(talker,fhtml0);
				}
			}
			else if( reply == 2 )
			{
				if( myself::HaveMemo(talker,85) == 1 && talker.occupation == 16 && myself::GetMemoState(talker,85) == 15 )
				{
					if( talker.level >= 76 )
					{
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::AddUseSkillDesire(talker,1110785,1,0,1000000);
							myself::DeleteItem1(talker,7087,myself::OwnItemCount(talker,7087));
							myself::ClassChange(talker,97);
							myself::SetOneTimeQuestFlag(talker,85,1);
							myself::GiveItem1(talker,57,5000000);
							myself::GiveItem1(talker,6622,1);
							myself::IncrementParam(talker,0,2299404);
							myself::RemoveMemo(talker,85);
							myself::ShowPage(talker,"hollin_q0085_0107.htm");
							myself::ShowSystemMessage(talker,1606);
						}
					}
					else
					{
						myself::SetMemoState(talker,85,16);
						myself::SetFlagJournal(talker,85,20);
						myself::SoundEffect(talker,"ItemSound.quest_middle");
						myself::DeleteItem1(talker,7087,myself::OwnItemCount(talker,7087));
						myself::ShowPage(talker,"hollin_q0085_0108.htm");
					}
				}
			}
		}
		if( ask == 86 )
		{
			myself::SetCurrentQuestID(86);
			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 == 86 )
		{
			if( reply == 1 )
			{
				if( myself::HaveMemo(talker,86) == 0 && talker.occupation == 17 && talker.level >= 76 && myself::GetOneTimeQuestFlag(talker,86) == 0 )
				{
					myself::FHTML_SetFileName(fhtml0,"hollin_q0086_0105.htm");
					myself::FHTML_SetInt(fhtml0,"quest_id",86);
					myself::ShowFHTML(talker,fhtml0);
				}
			}
			else if( reply == 2 )
			{
				if( myself::HaveMemo(talker,86) == 1 && talker.occupation == 17 && myself::GetMemoState(talker,86) == 15 )
				{
					if( talker.level >= 76 )
					{
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::AddUseSkillDesire(talker,1110785,1,0,1000000);
							myself::DeleteItem1(talker,7089,myself::OwnItemCount(talker,7089));
							myself::ClassChange(talker,98);
							myself::SetOneTimeQuestFlag(talker,86,1);
							myself::GiveItem1(talker,57,5000000);
							myself::GiveItem1(talker,6622,1);
							myself::IncrementParam(talker,0,2299404);
							myself::RemoveMemo(talker,86);
							myself::ShowPage(talker,"hollin_q0086_0107.htm");
							myself::ShowSystemMessage(talker,1606);
						}
					}
					else
					{
						myself::SetMemoState(talker,86,16);
						myself::SetFlagJournal(talker,86,20);
						myself::SoundEffect(talker,"ItemSound.quest_middle");
						myself::DeleteItem1(talker,7089,myself::OwnItemCount(talker,7089));
						myself::ShowPage(talker,"hollin_q0086_0108.htm");
					}
				}
			}
		}
		if( ask == 87 )
		{
			myself::SetCurrentQuestID(87);
			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 == 87 )
		{
			if( reply == 1 )
			{
				if( myself::HaveMemo(talker,87) == 0 && talker.occupation == 30 && talker.level >= 76 && myself::GetOneTimeQuestFlag(talker,87) == 0 )
				{
					myself::FHTML_SetFileName(fhtml0,"hollin_q0087_0105.htm");
					myself::FHTML_SetInt(fhtml0,"quest_id",87);
					myself::ShowFHTML(talker,fhtml0);
				}
			}
			else if( reply == 2 )
			{
				if( myself::HaveMemo(talker,87) == 1 && talker.occupation == 30 && myself::GetMemoState(talker,87) == 15 )
				{
					if( talker.level >= 76 )
					{
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::AddUseSkillDesire(talker,1110785,1,0,1000000);
							myself::DeleteItem1(talker,7088,myself::OwnItemCount(talker,7088));
							myself::ClassChange(talker,105);
							myself::SetOneTimeQuestFlag(talker,87,1);
							myself::GiveItem1(talker,57,5000000);
							myself::GiveItem1(talker,6622,1);
							myself::IncrementParam(talker,0,2299404);
							myself::RemoveMemo(talker,87);
							myself::ShowPage(talker,"hollin_q0087_0107.htm");
							myself::ShowSystemMessage(talker,1606);
						}
					}
					else
					{
						myself::SetMemoState(talker,87,16);
						myself::SetFlagJournal(talker,87,20);
						myself::SoundEffect(talker,"ItemSound.quest_middle");
						myself::DeleteItem1(talker,7088,myself::OwnItemCount(talker,7088));
						myself::ShowPage(talker,"hollin_q0087_0108.htm");
					}
				}
			}
		}
		super;
	}

}
