@LabelIndex 350672
@StringIndex 49973
class 0 beast_herder_tunatun : citizen {
handler:
	EventHandler TALK_SELECTED(fhtml0,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,72) == 1 && talker.occupation == 21 && gg::GetMemoState(talker,72) == 8 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Saga of the Sword Muse (In Progress)");
			}
			if( gg::HaveMemo(talker,72) == 1 && talker.occupation == 21 && gg::GetMemoState(talker,72) == 9 && gg::OwnItemCount(talker,7081) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Saga of the Sword Muse (In Progress)");
			}
			if( gg::HaveMemo(talker,72) == 1 && talker.occupation == 21 && gg::GetMemoState(talker,72) == 9 && gg::OwnItemCount(talker,7081) >= 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Saga of the Sword Muse (In Progress)");
			}
			if( gg::HaveMemo(talker,72) == 1 && talker.occupation == 21 && gg::GetMemoState(talker,72) == 10 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Saga of the Sword Muse (In Progress)");
			}
			if( gg::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( gg::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( gg::HaveMemo(talker,20) == 1 && gg::GetMemoState(talker,20) == 1 && gg::OwnItemCount(talker,7185) < 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 6;
				myself::AddChoice(6,"Bring Up With Love (In Progress)");
			}
			if( gg::HaveMemo(talker,20) == 1 && gg::GetMemoState(talker,20) == 1 && gg::OwnItemCount(talker,7185) >= 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 7;
				myself::AddChoice(7,"Bring Up With Love (In Progress)");
			}
			if( talker.level >= 65 && gg::HaveMemo(talker,631) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 8;
				myself::AddChoice(8,"Delicious Top Choice Meat");
			}
			if( talker.level < 65 && gg::HaveMemo(talker,631) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 9;
				myself::AddChoice(9,"Delicious Top Choice Meat");
			}
			if( gg::HaveMemo(talker,631) == 1 && gg::GetMemoState(talker,631) >= ( ( 1 * 10 ) + 1 ) && gg::GetMemoState(talker,631) <= ( ( 1 * 10 ) + 2 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 10;
				myself::AddChoice(10,"Delicious Top Choice Meat (In Progress)");
			}
			if( gg::HaveMemo(talker,19) == 1 && gg::OwnItemCount(talker,7547) >= 1 && myself::GetOneTimeQuestFlag(talker,19) == 0 && gg::GetMemoState(talker,19) == ( ( 1 * 10 ) + 1 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 11;
				myself::AddChoice(11,"Go to the Pastureland (In Progress)");
			}
			if( _choiceN > 1 ) {
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 ) {
			switch(_code) {
				case 0: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,72) == 1 && talker.occupation == 21 && gg::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 || ( gg::HaveMemo(talker,72) == 1 && talker.occupation == 21 && gg::GetMemoState(talker,72) == 9 && gg::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 || ( gg::HaveMemo(talker,72) == 1 && talker.occupation == 21 && gg::GetMemoState(talker,72) == 9 && gg::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 || ( gg::HaveMemo(talker,72) == 1 && talker.occupation == 21 && gg::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 || ( gg::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::ShowQuestPage(talker,"beast_herder_tunatun_q0020_01.htm",20);
						} else {
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 5: {
					if( _from_choice == 0 || ( gg::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 || ( gg::HaveMemo(talker,20) == 1 && gg::GetMemoState(talker,20) == 1 && gg::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 || ( gg::HaveMemo(talker,20) == 1 && gg::GetMemoState(talker,20) == 1 && gg::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 && gg::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 ) {
							myself::FHTML_SetFileName(fhtml0,"beast_herder_tunatun_q0631_0101.htm");
							myself::FHTML_SetInt(fhtml0,"quest_id",631);
							myself::ShowQuestFHTML(talker,fhtml0,631);
						} else {
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 9: {
					if( _from_choice == 0 || ( talker.level < 65 && gg::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::ShowQuestPage(talker,"beast_herder_tunatun_q0631_0103.htm",631);
					}
					break;
				}
				case 10: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,631) == 1 && gg::GetMemoState(talker,631) >= ( ( 1 * 10 ) + 1 ) && gg::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( gg::GetMemoState(talker,631) == ( ( 1 * 10 ) + 2 ) && gg::OwnItemCount(talker,7546) >= 120 ) {
							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 || ( gg::HaveMemo(talker,19) == 1 && gg::OwnItemCount(talker,7547) >= 1 && myself::GetOneTimeQuestFlag(talker,19) == 0 && gg::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::ShowQuestMark(talker,20);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::SetFlagJournal(talker,20,1);
				myself::ShowQuestPage(talker,"beast_herder_tunatun_q0020_09.htm",20);
				gg::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::ShowQuestMark(talker,631);
				myself::SetMemoState(talker,631,( ( 1 * 10 ) + 1 ));
				gg::AddLog(1,talker,631);
				myself::SetFlagJournal(talker,631,1);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::ShowQuestPage(talker,"beast_herder_tunatun_q0631_0104.htm",631);
			}
			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( gg::HaveMemo(talker,72) == 1 && talker.occupation == 21 && gg::GetMemoState(talker,72) == 8 ) {
					myself::ShowPage(talker,"beast_herder_tunatun_q0072_0127.htm");
				}
			} else if( reply == 6 ) {
				if( gg::HaveMemo(talker,72) == 1 && talker.occupation == 21 && gg::GetMemoState(talker,72) == 8 ) {
					myself::SetMemoState(talker,72,9);
					myself::ShowPage(talker,"beast_herder_tunatun_q0072_0122.htm");
					myself::SetFlagJournal(talker,72,11);
					myself::ShowQuestMark(talker,72);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
				}
			} else if( reply == 7 ) {
				if( gg::HaveMemo(talker,72) == 1 && talker.occupation == 21 && gg::GetMemoState(talker,72) == 8 ) {
					myself::SetMemoState(talker,72,9);
					myself::ShowPage(talker,"beast_herder_tunatun_q0072_0123.htm");
					myself::SetFlagJournal(talker,72,12);
					myself::ShowQuestMark(talker,72);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
				}
			} else if( reply == 8 ) {
				if( gg::HaveMemo(talker,72) == 1 && talker.occupation == 21 && gg::GetMemoState(talker,72) == 9 && gg::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::ShowQuestMark(talker,72);
						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 && gg::HaveMemo(talker,20) == 0 && myself::GetOneTimeQuestFlag(talker,20) == 0 ) {
				myself::ShowQuestPage(talker,"beast_herder_tunatun_q0020_03.htm",20);
			}
			if( reply == 2 && gg::HaveMemo(talker,20) == 0 && myself::GetOneTimeQuestFlag(talker,20) == 0 ) {
				myself::ShowQuestPage(talker,"beast_herder_tunatun_q0020_04.htm",20);
			}
			if( reply == 4 && gg::HaveMemo(talker,20) == 0 && myself::GetOneTimeQuestFlag(talker,20) == 0 ) {
				myself::ShowQuestPage(talker,"beast_herder_tunatun_q0020_05.htm",20);
			}
			if( reply == 3 && gg::HaveMemo(talker,20) == 0 && myself::GetOneTimeQuestFlag(talker,20) == 0 ) {
				myself::ShowQuestPage(talker,"beast_herder_tunatun_q0020_06.htm",20);
			}
			if( reply == 5 && gg::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::ShowQuestFHTML(talker,fhtml0,20);
			}
			if( reply == 6 && gg::HaveMemo(talker,20) == 1 && gg::GetMemoState(talker,20) == 1 && gg::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,gg::OwnItemCount(talker,7185));
					myself::RemoveMemo(talker,20);
					myself::SetOneTimeQuestFlag(talker,20,1);
					myself::SoundEffect(talker,"ItemSound.quest_finish");
					gg::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 && gg::HaveMemo(talker,631) == 1 ) {
					myself::ShowPage(talker,"beast_herder_tunatun_q0631_0201.htm");
				}
				if( reply == 11 && gg::HaveMemo(talker,631) == 1 ) {
					if( gg::OwnItemCount(talker,7546) >= 120 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,gg::OwnItemCount(talker,7546));
							myself::GiveItem1(talker,4039,15);
							gg::AddLog(2,talker,631);
							gg::AddLog(3,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 && gg::HaveMemo(talker,631) == 1 ) {
					if( gg::OwnItemCount(talker,7546) >= 120 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,gg::OwnItemCount(talker,7546));
							myself::GiveItem1(talker,4043,15);
							gg::AddLog(2,talker,631);
							gg::AddLog(3,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 && gg::HaveMemo(talker,631) == 1 ) {
					if( gg::OwnItemCount(talker,7546) >= 120 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,gg::OwnItemCount(talker,7546));
							myself::GiveItem1(talker,4044,15);
							gg::AddLog(2,talker,631);
							gg::AddLog(3,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 && gg::HaveMemo(talker,631) == 1 ) {
					if( gg::OwnItemCount(talker,7546) >= 120 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,gg::OwnItemCount(talker,7546));
							myself::GiveItem1(talker,4040,10);
							gg::AddLog(2,talker,631);
							gg::AddLog(3,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 && gg::HaveMemo(talker,631) == 1 ) {
					if( gg::OwnItemCount(talker,7546) >= 120 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,gg::OwnItemCount(talker,7546));
							myself::GiveItem1(talker,4042,10);
							gg::AddLog(2,talker,631);
							gg::AddLog(3,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 && gg::HaveMemo(talker,631) == 1 ) {
					if( gg::OwnItemCount(talker,7546) >= 120 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,gg::OwnItemCount(talker,7546));
							myself::GiveItem1(talker,4041,5);
							gg::AddLog(2,talker,631);
							gg::AddLog(3,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 && gg::HaveMemo(talker,631) == 1 ) {
					if( gg::OwnItemCount(talker,7546) >= 120 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,gg::OwnItemCount(talker,7546));
							gg::AddLog(2,talker,631);
							gg::AddLog(3,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 && gg::HaveMemo(talker,631) == 1 ) {
					if( gg::OwnItemCount(talker,7546) >= 120 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,gg::OwnItemCount(talker,7546));
							gg::AddLog(2,talker,631);
							gg::AddLog(3,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 && gg::HaveMemo(talker,631) == 1 ) {
					if( gg::OwnItemCount(talker,7546) >= 120 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,gg::OwnItemCount(talker,7546));
							gg::AddLog(2,talker,631);
							gg::AddLog(3,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 && gg::HaveMemo(talker,631) == 1 ) {
					if( gg::OwnItemCount(talker,7546) >= 120 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7546,gg::OwnItemCount(talker,7546));
							gg::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 && gg::HaveMemo(talker,19) == 1 && myself::GetOneTimeQuestFlag(talker,19) == 0 ) {
					if( gg::OwnItemCount(talker,7547) >= 1 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7547,1);
							myself::GiveItem1(talker,57,50000);
							myself::IncrementParam(talker,0,136766);
							myself::IncrementParam(talker,1,12688);
						}
						gg::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;
	}

}
