class 1 beast_herder_tunatun : citizen
{
handler:
	EventHandler TALK_SELECTED(fhtml0,talker)
	{
		if( _from_choice == 0 )
		{
			if( myself::HaveMemo(talker,72) == 1 && talker.occupation == 21 && myself::GetMemoState(talker,72) == 8 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Saga of the Sword Muse (Continue)");
			}
			if( myself::HaveMemo(talker,72) == 1 && talker.occupation == 21 && myself::GetMemoState(talker,72) == 9 && myself::OwnItemCount(talker,7081) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Saga of the Sword Muse (Continue)");
			}
			if( myself::HaveMemo(talker,72) == 1 && talker.occupation == 21 && myself::GetMemoState(talker,72) == 9 && myself::OwnItemCount(talker,7081) >= 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Saga of the Sword Muse (Continue)");
			}
			if( myself::HaveMemo(talker,72) == 1 && talker.occupation == 21 && myself::GetMemoState(talker,72) == 10 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Saga of the Sword Muse (Continue)");
			}
			if( myself::HaveMemo(talker,20) == 0 && myself::GetOneTimeQuestFlag(talker,20) == 0 && talker.level >= 65 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"Bring Up With Love");
			}
			if( myself::HaveMemo(talker,20) == 0 && myself::GetOneTimeQuestFlag(talker,20) == 0 && talker.level < 65 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 5;
				myself::AddChoice(5,"Bring Up With Love");
			}
			if( myself::HaveMemo(talker,20) == 1 && myself::GetMemoState(talker,20) == 1 && myself::OwnItemCount(talker,7185) < 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 6;
				myself::AddChoice(6,"Bring Up With Love (Continue)");
			}
			if( myself::HaveMemo(talker,20) == 1 && myself::GetMemoState(talker,20) == 1 && myself::OwnItemCount(talker,7185) >= 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 7;
				myself::AddChoice(7,"Bring Up With Love (Continue)");
			}
			if( talker.level >= 65 && myself::HaveMemo(talker,631) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 8;
				myself::AddChoice(8,"Delicious Top Choice Meat");
			}
			if( talker.level < 65 && myself::HaveMemo(talker,631) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 9;
				myself::AddChoice(9,"Delicious Top Choice Meat");
			}
			if( myself::HaveMemo(talker,631) == 1 && myself::GetMemoState(talker,631) >= ( ( 1 * 10 ) + 1 ) && myself::GetMemoState(talker,631) <= ( ( 1 * 10 ) + 2 ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 10;
				myself::AddChoice(10,"Delicious Top Choice Meat (Continue)");
			}
			if( ( ( myself::HaveMemo(talker,19) == 1 && ( ( 1 == 1 && myself::OwnItemCount(talker,7547) >= 1 ) || 1 == 0 ) ) && myself::GetOneTimeQuestFlag(talker,19) == 0 ) && myself::GetMemoState(talker,19) == ( ( 1 * 10 ) + 1 ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 11;
				myself::AddChoice(11,"Go to the Pastureland (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,72) == 1 && talker.occupation == 21 && myself::GetMemoState(talker,72) == 8 ) )
					{
						myself::SetCurrentQuestID(72);
						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,"beast_herder_tunatun_q0072_0121.htm");
					}
					break;
				}
				case 1:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,72) == 1 && talker.occupation == 21 && myself::GetMemoState(talker,72) == 9 && myself::OwnItemCount(talker,7081) == 0 ) )
					{
						myself::SetCurrentQuestID(72);
						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,"beast_herder_tunatun_q0072_0124.htm");
					}
					break;
				}
				case 2:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,72) == 1 && talker.occupation == 21 && myself::GetMemoState(talker,72) == 9 && myself::OwnItemCount(talker,7081) >= 1 ) )
					{
						myself::SetCurrentQuestID(72);
						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,"beast_herder_tunatun_q0072_0125.htm");
					}
					break;
				}
				case 3:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,72) == 1 && talker.occupation == 21 && myself::GetMemoState(talker,72) == 10 ) )
					{
						myself::SetCurrentQuestID(72);
						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,"beast_herder_tunatun_q0072_0126.htm");
					}
					break;
				}
				case 4:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,20) == 0 && myself::GetOneTimeQuestFlag(talker,20) == 0 && talker.level >= 65 ) )
					{
						myself::SetCurrentQuestID(20);
						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::ShowPage(talker,"beast_herder_tunatun_q0020_01.htm");
						}
						else
						{
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 5:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,20) == 0 && myself::GetOneTimeQuestFlag(talker,20) == 0 && talker.level < 65 ) )
					{
						myself::SetCurrentQuestID(20);
						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,"beast_herder_tunatun_q0020_02.htm");
					}
					break;
				}
				case 6:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,20) == 1 && myself::GetMemoState(talker,20) == 1 && myself::OwnItemCount(talker,7185) < 1 ) )
					{
						myself::SetCurrentQuestID(20);
						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,"beast_herder_tunatun_q0020_10.htm");
					}
					break;
				}
				case 7:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,20) == 1 && myself::GetMemoState(talker,20) == 1 && myself::OwnItemCount(talker,7185) >= 1 ) )
					{
						myself::SetCurrentQuestID(20);
						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,"beast_herder_tunatun_q0020_11.htm");
					}
					break;
				}
				case 8:
				{
					if( _from_choice == 0 || ( talker.level >= 65 && myself::HaveMemo(talker,631) == 0 ) )
					{
						myself::SetCurrentQuestID(631);
						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( ( ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 1 ) || 0 == 0 ) && ( ( 0 == 1 && myself::GetOneTimeQuestFlag(talker,0) == 1 ) || 0 == 0 ) ) && ( ( 0 == 1 && talker.subjob_id != 0 ) || 0 == 0 ) )
							{
								myself::FHTML_SetFileName(fhtml0,"beast_herder_tunatun_q0631_0101.htm");
								myself::FHTML_SetInt(fhtml0,"quest_id",631);
								myself::ShowFHTML(talker,fhtml0);
							}
							else
							{
								myself::ShowPage(talker,"beast_herder_tunatun_q0631_0102.htm");
							}
						}
						else
						{
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 9:
				{
					if( _from_choice == 0 || ( talker.level < 65 && myself::HaveMemo(talker,631) == 0 ) )
					{
						myself::SetCurrentQuestID(631);
						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,"beast_herder_tunatun_q0631_0103.htm");
					}
					break;
				}
				case 10:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,631) == 1 && myself::GetMemoState(talker,631) >= ( ( 1 * 10 ) + 1 ) && myself::GetMemoState(talker,631) <= ( ( 1 * 10 ) + 2 ) ) )
					{
						myself::SetCurrentQuestID(631);
						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::SetHTMLCookie(talker,631,1);
						if( ( ( myself::GetMemoState(talker,631) == ( ( 1 * 10 ) + 2 ) && ( ( 1 == 1 && myself::OwnItemCount(talker,7546) >= 120 ) || 1 == 0 ) ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) )
						{
							myself::ShowPage(talker,"beast_herder_tunatun_q0631_0105.htm");
						}
						else
						{
							myself::ShowPage(talker,"beast_herder_tunatun_q0631_0106.htm");
						}
					}
					break;
				}
				case 11:
				{
					if( _from_choice == 0 || ( ( ( myself::HaveMemo(talker,19) == 1 && ( ( 1 == 1 && myself::OwnItemCount(talker,7547) >= 1 ) || 1 == 0 ) ) && myself::GetOneTimeQuestFlag(talker,19) == 0 ) && myself::GetMemoState(talker,19) == ( ( 1 * 10 ) + 1 ) ) )
					{
						myself::SetCurrentQuestID(19);
						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::SetHTMLCookie(talker,19,1);
						myself::ShowPage(talker,"beast_herder_tunatun_q0019_0101.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler QUEST_ACCEPTED(quest_id,talker)
	{
		if( quest_id == 20 )
		{
			myself::SetCurrentQuestID(20);
			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::SetMemoState(talker,20,1);
				myself::SetMemo(talker,quest_id);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::SetFlagJournal(talker,20,1);
				myself::ShowPage(talker,"beast_herder_tunatun_q0020_09.htm");
				myself::AddLog(1,talker,quest_id);
			}
			return;
		}
		if( quest_id == 631 )
		{
			myself::SetCurrentQuestID(631);
			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,631);
				myself::SetMemoState(talker,631,( ( 1 * 10 ) + 1 ));
				myself::AddLog(1,talker,631);
				myself::SetFlagJournal(talker,631,1);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::ShowPage(talker,"beast_herder_tunatun_q0631_0104.htm");
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,fhtml0,i0,i1,quest_id,reply,talker)
	{
		if( ask == 72 )
		{
			myself::SetCurrentQuestID(72);
			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 == 72 )
		{
			if( reply == 5 )
			{
				if( myself::HaveMemo(talker,72) == 1 && talker.occupation == 21 && myself::GetMemoState(talker,72) == 8 )
				{
					myself::ShowPage(talker,"beast_herder_tunatun_q0072_0127.htm");
				}
			}
			else if( reply == 6 )
			{
				if( myself::HaveMemo(talker,72) == 1 && talker.occupation == 21 && myself::GetMemoState(talker,72) == 8 )
				{
					myself::SetMemoState(talker,72,9);
					myself::ShowPage(talker,"beast_herder_tunatun_q0072_0122.htm");
					myself::SetFlagJournal(talker,72,11);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
				}
			}
			else if( reply == 7 )
			{
				if( myself::HaveMemo(talker,72) == 1 && talker.occupation == 21 && myself::GetMemoState(talker,72) == 8 )
				{
					myself::SetMemoState(talker,72,9);
					myself::ShowPage(talker,"beast_herder_tunatun_q0072_0123.htm");
					myself::SetFlagJournal(talker,72,12);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
				}
			}
			else if( reply == 8 )
			{
				if( myself::HaveMemo(talker,72) == 1 && talker.occupation == 21 && myself::GetMemoState(talker,72) == 9 && myself::OwnItemCount(talker,7081) >= 1 )
				{
					if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
					{
						talker.quest_last_reward_time = myself::GetCurrentTick();
						myself::GiveItem1(talker,7363,1);
						myself::DeleteItem1(talker,7081,1);
						myself::SetMemoState(talker,72,10);
						myself::ShowPage(talker,"beast_herder_tunatun_q0072_0128.htm");
						myself::SetFlagJournal(talker,72,13);
						myself::SoundEffect(talker,"ItemSound.quest_middle");
					}
				}
			}
		}
		if( ask == 20 )
		{
			myself::SetCurrentQuestID(20);
			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 == 20 )
		{
			if( reply == 1 && myself::HaveMemo(talker,20) == 0 && myself::GetOneTimeQuestFlag(talker,20) == 0 )
			{
				myself::ShowPage(talker,"beast_herder_tunatun_q0020_03.htm");
			}
			if( reply == 2 && myself::HaveMemo(talker,20) == 0 && myself::GetOneTimeQuestFlag(talker,20) == 0 )
			{
				myself::ShowPage(talker,"beast_herder_tunatun_q0020_04.htm");
			}
			if( reply == 4 && myself::HaveMemo(talker,20) == 0 && myself::GetOneTimeQuestFlag(talker,20) == 0 )
			{
				myself::ShowPage(talker,"beast_herder_tunatun_q0020_05.htm");
			}
			if( reply == 3 && myself::HaveMemo(talker,20) == 0 && myself::GetOneTimeQuestFlag(talker,20) == 0 )
			{
				myself::ShowPage(talker,"beast_herder_tunatun_q0020_06.htm");
			}
			if( reply == 5 && myself::HaveMemo(talker,20) == 0 && myself::GetOneTimeQuestFlag(talker,20) == 0 )
			{
				myself::FHTML_SetFileName(fhtml0,"beast_herder_tunatun_q0020_08.htm");
				myself::FHTML_SetInt(fhtml0,"quest_id",20);
				myself::ShowFHTML(talker,fhtml0);
			}
			if( reply == 6 && myself::HaveMemo(talker,20) == 1 && myself::GetMemoState(talker,20) == 1 && myself::OwnItemCount(talker,7185) >= 1 )
			{
				if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
				{
					talker.quest_last_reward_time = myself::GetCurrentTick();
					myself::GiveItem1(talker,57,68500);
					myself::DeleteItem1(talker,7185,myself::OwnItemCount(talker,7185));
					myself::RemoveMemo(talker,20);
					myself::SetOneTimeQuestFlag(talker,20,1);
					myself::SoundEffect(talker,"ItemSound.quest_finish");
					myself::AddLog(2,talker,20);
					myself::ShowPage(talker,"beast_herder_tunatun_q0020_12.htm");
				}
			}
		}
		if( ask == 631 )
		{
			myself::SetCurrentQuestID(631);
			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 == 631 )
		{
			i0 = myself::GetHTMLCookie(talker,631,( 2 - 1 ));
			if( i0 != -1 )
			{
				if( reply == 3 && myself::HaveMemo(talker,631) == 1 )
				{
					myself::ShowPage(talker,"beast_herder_tunatun_q0631_0201.htm");
				}
				if( reply == 11 && myself::HaveMemo(talker,631) == 1 )
				{
					if( ( ( ( 1 == 1 && myself::OwnItemCount(talker,7546) >= 120 ) || 1 == 0 ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) )
					{
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,myself::OwnItemCount(talker,7546));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::GiveItem1(talker,4039,15);
							myself::AddLog(2,talker,631);
							myself::RemoveMemo(talker,631);
							myself::SoundEffect(talker,"ItemSound.quest_finish");
							myself::ShowPage(talker,"beast_herder_tunatun_q0631_0202.htm");
						}
					}
					else
					{
						myself::ShowPage(talker,"beast_herder_tunatun_q0631_0203.htm");
					}
				}
				if( reply == 12 && myself::HaveMemo(talker,631) == 1 )
				{
					if( ( ( ( 1 == 1 && myself::OwnItemCount(talker,7546) >= 120 ) || 1 == 0 ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) )
					{
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,myself::OwnItemCount(talker,7546));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::GiveItem1(talker,4043,15);
							myself::AddLog(2,talker,631);
							myself::RemoveMemo(talker,631);
							myself::SoundEffect(talker,"ItemSound.quest_finish");
							myself::ShowPage(talker,"beast_herder_tunatun_q0631_0202.htm");
						}
					}
					else
					{
						myself::ShowPage(talker,"beast_herder_tunatun_q0631_0203.htm");
					}
				}
				if( reply == 13 && myself::HaveMemo(talker,631) == 1 )
				{
					if( ( ( ( 1 == 1 && myself::OwnItemCount(talker,7546) >= 120 ) || 1 == 0 ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) )
					{
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,myself::OwnItemCount(talker,7546));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::GiveItem1(talker,4044,15);
							myself::AddLog(2,talker,631);
							myself::RemoveMemo(talker,631);
							myself::SoundEffect(talker,"ItemSound.quest_finish");
							myself::ShowPage(talker,"beast_herder_tunatun_q0631_0202.htm");
						}
					}
					else
					{
						myself::ShowPage(talker,"beast_herder_tunatun_q0631_0203.htm");
					}
				}
				if( reply == 14 && myself::HaveMemo(talker,631) == 1 )
				{
					if( ( ( ( 1 == 1 && myself::OwnItemCount(talker,7546) >= 120 ) || 1 == 0 ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) )
					{
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,myself::OwnItemCount(talker,7546));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::GiveItem1(talker,4040,10);
							myself::AddLog(2,talker,631);
							myself::RemoveMemo(talker,631);
							myself::SoundEffect(talker,"ItemSound.quest_finish");
							myself::ShowPage(talker,"beast_herder_tunatun_q0631_0202.htm");
						}
					}
					else
					{
						myself::ShowPage(talker,"beast_herder_tunatun_q0631_0203.htm");
					}
				}
				if( reply == 15 && myself::HaveMemo(talker,631) == 1 )
				{
					if( ( ( ( 1 == 1 && myself::OwnItemCount(talker,7546) >= 120 ) || 1 == 0 ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) )
					{
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,myself::OwnItemCount(talker,7546));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::GiveItem1(talker,4042,10);
							myself::AddLog(2,talker,631);
							myself::RemoveMemo(talker,631);
							myself::SoundEffect(talker,"ItemSound.quest_finish");
							myself::ShowPage(talker,"beast_herder_tunatun_q0631_0202.htm");
						}
					}
					else
					{
						myself::ShowPage(talker,"beast_herder_tunatun_q0631_0203.htm");
					}
				}
				if( reply == 16 && myself::HaveMemo(talker,631) == 1 )
				{
					if( ( ( ( 1 == 1 && myself::OwnItemCount(talker,7546) >= 120 ) || 1 == 0 ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) )
					{
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,myself::OwnItemCount(talker,7546));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::GiveItem1(talker,4041,5);
							myself::AddLog(2,talker,631);
							myself::RemoveMemo(talker,631);
							myself::SoundEffect(talker,"ItemSound.quest_finish");
							myself::ShowPage(talker,"beast_herder_tunatun_q0631_0202.htm");
						}
					}
					else
					{
						myself::ShowPage(talker,"beast_herder_tunatun_q0631_0203.htm");
					}
				}
				if( reply == 17 && myself::HaveMemo(talker,631) == 1 )
				{
					if( ( ( ( 1 == 1 && myself::OwnItemCount(talker,7546) >= 120 ) || 1 == 0 ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) )
					{
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,myself::OwnItemCount(talker,7546));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::AddLog(2,talker,631);
							myself::RemoveMemo(talker,631);
							myself::SoundEffect(talker,"ItemSound.quest_finish");
							myself::ShowPage(talker,"beast_herder_tunatun_q0631_0202.htm");
						}
					}
					else
					{
						myself::ShowPage(talker,"beast_herder_tunatun_q0631_0203.htm");
					}
				}
				if( reply == 18 && myself::HaveMemo(talker,631) == 1 )
				{
					if( ( ( ( 1 == 1 && myself::OwnItemCount(talker,7546) >= 120 ) || 1 == 0 ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) )
					{
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,myself::OwnItemCount(talker,7546));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::AddLog(2,talker,631);
							myself::RemoveMemo(talker,631);
							myself::SoundEffect(talker,"ItemSound.quest_finish");
							myself::ShowPage(talker,"beast_herder_tunatun_q0631_0202.htm");
						}
					}
					else
					{
						myself::ShowPage(talker,"beast_herder_tunatun_q0631_0203.htm");
					}
				}
				if( reply == 19 && myself::HaveMemo(talker,631) == 1 )
				{
					if( ( ( ( 1 == 1 && myself::OwnItemCount(talker,7546) >= 120 ) || 1 == 0 ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) )
					{
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,myself::OwnItemCount(talker,7546));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::AddLog(2,talker,631);
							myself::RemoveMemo(talker,631);
							myself::SoundEffect(talker,"ItemSound.quest_finish");
							myself::ShowPage(talker,"beast_herder_tunatun_q0631_0202.htm");
						}
					}
					else
					{
						myself::ShowPage(talker,"beast_herder_tunatun_q0631_0203.htm");
					}
				}
				if( reply == 20 && myself::HaveMemo(talker,631) == 1 )
				{
					if( ( ( ( 1 == 1 && myself::OwnItemCount(talker,7546) >= 120 ) || 1 == 0 ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) )
					{
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,myself::OwnItemCount(talker,7546));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::DeleteItem1(talker,0,myself::OwnItemCount(talker,0));
							myself::AddLog(2,talker,631);
							myself::RemoveMemo(talker,631);
							myself::SoundEffect(talker,"ItemSound.quest_finish");
							myself::ShowPage(talker,"beast_herder_tunatun_q0631_0202.htm");
						}
					}
					else
					{
						myself::ShowPage(talker,"beast_herder_tunatun_q0631_0203.htm");
					}
				}
			}
		}
		if( ask == 19 )
		{
			myself::SetCurrentQuestID(19);
			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 == 19 && myself::GetOneTimeQuestFlag(talker,19) == 0 )
		{
			i0 = myself::GetHTMLCookie(talker,19,( 2 - 1 ));
			if( i0 != -1 )
			{
				if( reply == 3 && myself::HaveMemo(talker,19) == 1 && myself::GetOneTimeQuestFlag(talker,19) == 0 )
				{
					if( ( ( ( 1 == 1 && myself::OwnItemCount(talker,7547) >= 1 ) || 1 == 0 ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) )
					{
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7547,1);
							myself::DeleteItem1(talker,0,0);
							myself::DeleteItem1(talker,0,0);
							myself::GiveItem1(talker,57,30000);
						}
						myself::AddLog(2,talker,19);
						myself::RemoveMemo(talker,19);
						myself::SetOneTimeQuestFlag(talker,19,1);
						myself::SoundEffect(talker,"ItemSound.quest_finish");
						myself::ShowPage(talker,"beast_herder_tunatun_q0019_0201.htm");
					}
					else
					{
						myself::ShowPage(talker,"beast_herder_tunatun_q0019_0202.htm");
					}
				}
			}
		}
		super;
	}

}
