class 1 sobling : citizen
{
handler:
	EventHandler TALK_SELECTED(fhtml0,talker)
	{
		if( _from_choice == 0 )
		{
			if( myself::HaveMemo(talker,376) == 0 && talker.level >= 51 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Exploration of Giants Cave, Part 1");
			}
			if( myself::HaveMemo(talker,376) == 0 && talker.level < 51 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Exploration of Giants Cave, Part 1");
			}
			if( myself::HaveMemo(talker,376) >= 1 && myself::OwnItemCount(talker,5890) == 0 && ( ( ( ( myself::OwnItemCount(talker,5922) < 1 || myself::OwnItemCount(talker,5923) < 1 || myself::OwnItemCount(talker,5924) < 1 || myself::OwnItemCount(talker,5925) < 1 || myself::OwnItemCount(talker,5926) < 1 ) && ( myself::OwnItemCount(talker,5927) < 1 || myself::OwnItemCount(talker,5928) < 1 || myself::OwnItemCount(talker,5929) < 1 || myself::OwnItemCount(talker,5930) < 1 || myself::OwnItemCount(talker,5931) < 1 ) ) && ( myself::OwnItemCount(talker,5932) < 1 || myself::OwnItemCount(talker,5933) < 1 || myself::OwnItemCount(talker,5934) < 1 || myself::OwnItemCount(talker,5935) < 1 || myself::OwnItemCount(talker,5936) < 1 ) ) && ( myself::OwnItemCount(talker,5937) < 1 || myself::OwnItemCount(talker,5938) < 1 || myself::OwnItemCount(talker,5939) < 1 || myself::OwnItemCount(talker,5940) < 1 || myself::OwnItemCount(talker,5941) < 1 ) ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Exploration of Giants Cave (Continue)");
			}
			if( myself::HaveMemo(talker,376) >= 1 && myself::OwnItemCount(talker,5890) == 0 && ( ( ( ( myself::OwnItemCount(talker,5922) >= 1 && myself::OwnItemCount(talker,5923) >= 1 && myself::OwnItemCount(talker,5924) >= 1 && myself::OwnItemCount(talker,5925) >= 1 && myself::OwnItemCount(talker,5926) >= 1 ) || ( myself::OwnItemCount(talker,5927) >= 1 && myself::OwnItemCount(talker,5928) >= 1 && myself::OwnItemCount(talker,5929) >= 1 && myself::OwnItemCount(talker,5930) >= 1 && myself::OwnItemCount(talker,5931) >= 1 ) ) || ( myself::OwnItemCount(talker,5932) >= 1 && myself::OwnItemCount(talker,5933) >= 1 && myself::OwnItemCount(talker,5934) >= 1 && myself::OwnItemCount(talker,5935) >= 1 && myself::OwnItemCount(talker,5936) >= 1 ) ) || ( myself::OwnItemCount(talker,5937) >= 1 && myself::OwnItemCount(talker,5938) >= 1 && myself::OwnItemCount(talker,5939) >= 1 && myself::OwnItemCount(talker,5940) >= 1 && myself::OwnItemCount(talker,5941) >= 1 ) ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Exploration of Giants Cave (Continue)");
			}
			if( myself::HaveMemo(talker,376) == 1 && myself::GetMemoState(talker,376) == 1 && myself::OwnItemCount(talker,5890) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"Exploration of Giants Cave (Continue)");
			}
			if( myself::HaveMemo(talker,376) == 1 && myself::GetMemoState(talker,376) == 2 && myself::OwnItemCount(talker,5890) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 5;
				myself::AddChoice(5,"Exploration of Giants Cave (Continue)");
			}
			if( myself::HaveMemo(talker,377) == 0 && talker.level >= 57 && myself::OwnItemCount(talker,5892) > 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 6;
				myself::AddChoice(6,"Exploration of Giants Cave, Part 2");
			}
			if( myself::HaveMemo(talker,377) == 0 && talker.level < 57 && myself::OwnItemCount(talker,5892) > 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 7;
				myself::AddChoice(7,"Exploration of Giants Cave, Part 2");
			}
			if( myself::HaveMemo(talker,377) == 1 && ( ( myself::OwnItemCount(talker,5950) < 1 || myself::OwnItemCount(talker,5951) < 1 || myself::OwnItemCount(talker,5952) < 1 || myself::OwnItemCount(talker,5953) < 1 || myself::OwnItemCount(talker,5954) < 1 ) && ( myself::OwnItemCount(talker,5945) < 1 || myself::OwnItemCount(talker,5946) < 1 || myself::OwnItemCount(talker,5947) < 1 || myself::OwnItemCount(talker,5948) < 1 || myself::OwnItemCount(talker,5949) < 1 ) ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 8;
				myself::AddChoice(8,"Exploration of Giants Cave, Part 2 (Continue)");
			}
			if( myself::HaveMemo(talker,377) == 1 && ( ( myself::OwnItemCount(talker,5950) >= 1 && myself::OwnItemCount(talker,5951) >= 1 && myself::OwnItemCount(talker,5952) >= 1 && myself::OwnItemCount(talker,5953) >= 1 && myself::OwnItemCount(talker,5954) >= 1 ) || ( myself::OwnItemCount(talker,5945) >= 1 && myself::OwnItemCount(talker,5946) >= 1 && myself::OwnItemCount(talker,5947) >= 1 && myself::OwnItemCount(talker,5948) >= 1 && myself::OwnItemCount(talker,5949) >= 1 ) ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 9;
				myself::AddChoice(9,"Exploration of Giants Cave, Part 2 (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,376) == 0 && talker.level >= 51 ) )
					{
						myself::SetCurrentQuestID(376);
						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,"sobling_q0376_01.htm");
						myself::FHTML_SetInt(fhtml0,"quest_id",376);
						myself::ShowFHTML(talker,fhtml0);
					}
					break;
				}
				case 1:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,376) == 0 && talker.level < 51 ) )
					{
						myself::SetCurrentQuestID(376);
						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,"sobling_q0376_02.htm");
					}
					break;
				}
				case 2:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,376) >= 1 && myself::OwnItemCount(talker,5890) == 0 && ( ( ( ( myself::OwnItemCount(talker,5922) < 1 || myself::OwnItemCount(talker,5923) < 1 || myself::OwnItemCount(talker,5924) < 1 || myself::OwnItemCount(talker,5925) < 1 || myself::OwnItemCount(talker,5926) < 1 ) && ( myself::OwnItemCount(talker,5927) < 1 || myself::OwnItemCount(talker,5928) < 1 || myself::OwnItemCount(talker,5929) < 1 || myself::OwnItemCount(talker,5930) < 1 || myself::OwnItemCount(talker,5931) < 1 ) ) && ( myself::OwnItemCount(talker,5932) < 1 || myself::OwnItemCount(talker,5933) < 1 || myself::OwnItemCount(talker,5934) < 1 || myself::OwnItemCount(talker,5935) < 1 || myself::OwnItemCount(talker,5936) < 1 ) ) && ( myself::OwnItemCount(talker,5937) < 1 || myself::OwnItemCount(talker,5938) < 1 || myself::OwnItemCount(talker,5939) < 1 || myself::OwnItemCount(talker,5940) < 1 || myself::OwnItemCount(talker,5941) < 1 ) ) ) )
					{
						myself::SetCurrentQuestID(376);
						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,"sobling_q0376_04.htm");
					}
					break;
				}
				case 3:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,376) >= 1 && myself::OwnItemCount(talker,5890) == 0 && ( ( ( ( myself::OwnItemCount(talker,5922) >= 1 && myself::OwnItemCount(talker,5923) >= 1 && myself::OwnItemCount(talker,5924) >= 1 && myself::OwnItemCount(talker,5925) >= 1 && myself::OwnItemCount(talker,5926) >= 1 ) || ( myself::OwnItemCount(talker,5927) >= 1 && myself::OwnItemCount(talker,5928) >= 1 && myself::OwnItemCount(talker,5929) >= 1 && myself::OwnItemCount(talker,5930) >= 1 && myself::OwnItemCount(talker,5931) >= 1 ) ) || ( myself::OwnItemCount(talker,5932) >= 1 && myself::OwnItemCount(talker,5933) >= 1 && myself::OwnItemCount(talker,5934) >= 1 && myself::OwnItemCount(talker,5935) >= 1 && myself::OwnItemCount(talker,5936) >= 1 ) ) || ( myself::OwnItemCount(talker,5937) >= 1 && myself::OwnItemCount(talker,5938) >= 1 && myself::OwnItemCount(talker,5939) >= 1 && myself::OwnItemCount(talker,5940) >= 1 && myself::OwnItemCount(talker,5941) >= 1 ) ) ) )
					{
						myself::SetCurrentQuestID(376);
						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();
							if( myself::OwnItemCount(talker,5922) > 0 && myself::OwnItemCount(talker,5923) > 0 && myself::OwnItemCount(talker,5924) > 0 && myself::OwnItemCount(talker,5925) > 0 && myself::OwnItemCount(talker,5926) > 0 )
							{
								myself::DeleteItem1(talker,5922,1);
								myself::DeleteItem1(talker,5923,1);
								myself::DeleteItem1(talker,5924,1);
								myself::DeleteItem1(talker,5925,1);
								myself::DeleteItem1(talker,5926,1);
								if( gg::Rand(2) == 0 )
								{
									myself::GiveItem1(talker,5416,1);
								}
								else
								{
									myself::GiveItem1(talker,5418,1);
								}
							}
							if( myself::OwnItemCount(talker,5927) > 0 && myself::OwnItemCount(talker,5928) > 0 && myself::OwnItemCount(talker,5929) > 0 && myself::OwnItemCount(talker,5930) > 0 && myself::OwnItemCount(talker,5931) > 0 )
							{
								myself::DeleteItem1(talker,5927,1);
								myself::DeleteItem1(talker,5928,1);
								myself::DeleteItem1(talker,5929,1);
								myself::DeleteItem1(talker,5930,1);
								myself::DeleteItem1(talker,5931,1);
								if( gg::Rand(2) == 0 )
								{
									myself::GiveItem1(talker,5424,1);
								}
								else
								{
									myself::GiveItem1(talker,5340,1);
								}
							}
							if( myself::OwnItemCount(talker,5932) > 0 && myself::OwnItemCount(talker,5933) > 0 && myself::OwnItemCount(talker,5934) > 0 && myself::OwnItemCount(talker,5935) > 0 && myself::OwnItemCount(talker,5936) > 0 )
							{
								myself::DeleteItem1(talker,5932,1);
								myself::DeleteItem1(talker,5933,1);
								myself::DeleteItem1(talker,5934,1);
								myself::DeleteItem1(talker,5935,1);
								myself::DeleteItem1(talker,5936,1);
								if( gg::Rand(2) == 0 )
								{
									myself::GiveItem1(talker,5332,1);
								}
								else
								{
									myself::GiveItem1(talker,5334,1);
								}
							}
							if( myself::OwnItemCount(talker,5937) > 0 && myself::OwnItemCount(talker,5938) > 0 && myself::OwnItemCount(talker,5939) > 0 && myself::OwnItemCount(talker,5940) > 0 && myself::OwnItemCount(talker,5941) > 0 )
							{
								myself::DeleteItem1(talker,5937,1);
								myself::DeleteItem1(talker,5938,1);
								myself::DeleteItem1(talker,5939,1);
								myself::DeleteItem1(talker,5940,1);
								myself::DeleteItem1(talker,5941,1);
								if( gg::Rand(2) == 0 )
								{
									myself::GiveItem1(talker,5354,1);
								}
								else
								{
									myself::GiveItem1(talker,5346,1);
								}
							}
							myself::AddLog(3,talker,376);
							myself::ShowPage(talker,"sobling_q0376_05.htm");
						}
					}
					break;
				}
				case 4:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,376) == 1 && myself::GetMemoState(talker,376) == 1 && myself::OwnItemCount(talker,5890) == 1 ) )
					{
						myself::SetCurrentQuestID(376);
						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,376,2);
						myself::SetJournal(talker,376,2);
						myself::ShowPage(talker,"sobling_q0376_08.htm");
					}
					break;
				}
				case 5:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,376) == 1 && myself::GetMemoState(talker,376) == 2 && myself::OwnItemCount(talker,5890) == 1 ) )
					{
						myself::SetCurrentQuestID(376);
						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,"sobling_q0376_09.htm");
					}
					break;
				}
				case 6:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,377) == 0 && talker.level >= 57 && myself::OwnItemCount(talker,5892) > 0 ) )
					{
						myself::SetCurrentQuestID(377);
						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,"sobling_q0377_01.htm");
						myself::FHTML_SetInt(fhtml0,"quest_id",377);
						myself::ShowFHTML(talker,fhtml0);
					}
					break;
				}
				case 7:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,377) == 0 && talker.level < 57 && myself::OwnItemCount(talker,5892) > 0 ) )
					{
						myself::SetCurrentQuestID(377);
						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,"sobling_q0377_02.htm");
					}
					break;
				}
				case 8:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,377) == 1 && ( ( myself::OwnItemCount(talker,5950) < 1 || myself::OwnItemCount(talker,5951) < 1 || myself::OwnItemCount(talker,5952) < 1 || myself::OwnItemCount(talker,5953) < 1 || myself::OwnItemCount(talker,5954) < 1 ) && ( myself::OwnItemCount(talker,5945) < 1 || myself::OwnItemCount(talker,5946) < 1 || myself::OwnItemCount(talker,5947) < 1 || myself::OwnItemCount(talker,5948) < 1 || myself::OwnItemCount(talker,5949) < 1 ) ) ) )
					{
						myself::SetCurrentQuestID(377);
						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,"sobling_q0377_04.htm");
					}
					break;
				}
				case 9:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,377) == 1 && ( ( myself::OwnItemCount(talker,5950) >= 1 && myself::OwnItemCount(talker,5951) >= 1 && myself::OwnItemCount(talker,5952) >= 1 && myself::OwnItemCount(talker,5953) >= 1 && myself::OwnItemCount(talker,5954) >= 1 ) || ( myself::OwnItemCount(talker,5945) >= 1 && myself::OwnItemCount(talker,5946) >= 1 && myself::OwnItemCount(talker,5947) >= 1 && myself::OwnItemCount(talker,5948) >= 1 && myself::OwnItemCount(talker,5949) >= 1 ) ) ) )
					{
						myself::SetCurrentQuestID(377);
						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();
							if( myself::OwnItemCount(talker,5950) > 0 && myself::OwnItemCount(talker,5951) > 0 && myself::OwnItemCount(talker,5952) > 0 && myself::OwnItemCount(talker,5953) > 0 && myself::OwnItemCount(talker,5954) > 0 )
							{
								myself::DeleteItem1(talker,5950,1);
								myself::DeleteItem1(talker,5951,1);
								myself::DeleteItem1(talker,5952,1);
								myself::DeleteItem1(talker,5953,1);
								myself::DeleteItem1(talker,5954,1);
								if( gg::Rand(2) == 0 )
								{
									myself::GiveItem1(talker,5422,1);
								}
								else
								{
									myself::GiveItem1(talker,5420,1);
								}
							}
							if( myself::OwnItemCount(talker,5945) > 0 && myself::OwnItemCount(talker,5946) > 0 && myself::OwnItemCount(talker,5947) > 0 && myself::OwnItemCount(talker,5948) > 0 && myself::OwnItemCount(talker,5949) > 0 )
							{
								myself::DeleteItem1(talker,5945,1);
								myself::DeleteItem1(talker,5946,1);
								myself::DeleteItem1(talker,5947,1);
								myself::DeleteItem1(talker,5948,1);
								myself::DeleteItem1(talker,5949,1);
								if( gg::Rand(2) == 0 )
								{
									myself::GiveItem1(talker,5336,1);
								}
								else
								{
									myself::GiveItem1(talker,5338,1);
								}
							}
							myself::AddLog(2,talker,377);
							myself::ShowPage(talker,"sobling_q0377_05.htm");
						}
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler QUEST_ACCEPTED(quest_id,talker)
	{
		if( quest_id == 376 )
		{
			myself::SetCurrentQuestID(376);
			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::GiveItem1(talker,5891,1);
					myself::SetMemo(talker,quest_id);
					myself::SetMemoState(talker,376,1);
					myself::SetJournal(talker,376,1);
					myself::SoundEffect(talker,"ItemSound.quest_accept");
					myself::ShowPage(talker,"sobling_q0376_03.htm");
					myself::AddLog(1,talker,quest_id);
				}
			}
			else
			{
				myself::ShowPage(talker,"fullquest.htm");
			}
			return;
		}
		if( quest_id == 377 )
		{
			myself::SetCurrentQuestID(377);
			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,377,1);
					myself::SetJournal(talker,377,1);
					myself::SetMemo(talker,quest_id);
					myself::SoundEffect(talker,"ItemSound.quest_accept");
					myself::ShowPage(talker,"sobling_q0377_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 == 376 )
		{
			myself::SetCurrentQuestID(376);
			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 == 376 )
		{
			if( ( ( ( reply == 1 && myself::OwnItemCount(talker,5922) >= 1 && myself::OwnItemCount(talker,5923) >= 1 && myself::OwnItemCount(talker,5924) >= 1 && myself::OwnItemCount(talker,5925) >= 1 && myself::OwnItemCount(talker,5926) >= 1 ) || ( myself::OwnItemCount(talker,5927) >= 1 && myself::OwnItemCount(talker,5928) >= 1 && myself::OwnItemCount(talker,5929) >= 1 && myself::OwnItemCount(talker,5930) >= 1 && myself::OwnItemCount(talker,5931) >= 1 ) ) || ( myself::OwnItemCount(talker,5932) >= 1 && myself::OwnItemCount(talker,5933) >= 1 && myself::OwnItemCount(talker,5934) >= 1 && myself::OwnItemCount(talker,5935) >= 1 && myself::OwnItemCount(talker,5936) >= 1 ) ) || ( myself::OwnItemCount(talker,5937) >= 1 && myself::OwnItemCount(talker,5938) >= 1 && myself::OwnItemCount(talker,5939) >= 1 && myself::OwnItemCount(talker,5940) >= 1 && myself::OwnItemCount(talker,5941) >= 1 ) )
			{
				if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
				{
					talker.quest_last_reward_time = myself::GetCurrentTick();
					if( myself::OwnItemCount(talker,5922) > 0 && myself::OwnItemCount(talker,5923) > 0 && myself::OwnItemCount(talker,5924) > 0 && myself::OwnItemCount(talker,5925) > 0 && myself::OwnItemCount(talker,5926) > 0 )
					{
						myself::DeleteItem1(talker,5922,1);
						myself::DeleteItem1(talker,5923,1);
						myself::DeleteItem1(talker,5924,1);
						myself::DeleteItem1(talker,5925,1);
						myself::DeleteItem1(talker,5926,1);
						if( gg::Rand(2) == 0 )
						{
							myself::GiveItem1(talker,5416,1);
						}
						else
						{
							myself::GiveItem1(talker,5418,1);
						}
					}
					if( myself::OwnItemCount(talker,5927) > 0 && myself::OwnItemCount(talker,5928) > 0 && myself::OwnItemCount(talker,5929) > 0 && myself::OwnItemCount(talker,5930) > 0 && myself::OwnItemCount(talker,5931) > 0 )
					{
						myself::DeleteItem1(talker,5927,1);
						myself::DeleteItem1(talker,5928,1);
						myself::DeleteItem1(talker,5929,1);
						myself::DeleteItem1(talker,5930,1);
						myself::DeleteItem1(talker,5931,1);
						if( gg::Rand(2) == 0 )
						{
							myself::GiveItem1(talker,5424,1);
						}
						else
						{
							myself::GiveItem1(talker,5340,1);
						}
					}
					if( myself::OwnItemCount(talker,5932) > 0 && myself::OwnItemCount(talker,5933) > 0 && myself::OwnItemCount(talker,5934) > 0 && myself::OwnItemCount(talker,5935) > 0 && myself::OwnItemCount(talker,5936) > 0 )
					{
						myself::DeleteItem1(talker,5932,1);
						myself::DeleteItem1(talker,5933,1);
						myself::DeleteItem1(talker,5934,1);
						myself::DeleteItem1(talker,5935,1);
						myself::DeleteItem1(talker,5936,1);
						if( gg::Rand(2) == 0 )
						{
							myself::GiveItem1(talker,5332,1);
						}
						else
						{
							myself::GiveItem1(talker,5334,1);
						}
					}
					if( myself::OwnItemCount(talker,5937) > 0 && myself::OwnItemCount(talker,5938) > 0 && myself::OwnItemCount(talker,5939) > 0 && myself::OwnItemCount(talker,5940) > 0 && myself::OwnItemCount(talker,5941) > 0 )
					{
						myself::DeleteItem1(talker,5937,1);
						myself::DeleteItem1(talker,5938,1);
						myself::DeleteItem1(talker,5939,1);
						myself::DeleteItem1(talker,5940,1);
						myself::DeleteItem1(talker,5941,1);
						if( gg::Rand(2) == 0 )
						{
							myself::GiveItem1(talker,5354,1);
						}
						else
						{
							myself::GiveItem1(talker,5346,1);
						}
					}
					myself::ShowPage(talker,"sobling_q0376_05.htm");
					myself::AddLog(3,talker,376);
				}
			}
			else if( reply == 1 )
			{
				myself::ShowPage(talker,"sobling_q0376_04.htm");
			}
			if( reply == 2 )
			{
				myself::ShowPage(talker,"sobling_q0376_06.htm");
			}
			if( reply == 3 )
			{
				if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
				{
					talker.quest_last_reward_time = myself::GetCurrentTick();
					myself::DeleteItem1(talker,5891,1);
					myself::RemoveMemo(talker,376);
					myself::SoundEffect(talker,"ItemSound.quest_finish");
					myself::ShowPage(talker,"sobling_q0376_07.htm");
					myself::AddLog(2,talker,376);
				}
			}
		}
		if( ask == 377 )
		{
			myself::SetCurrentQuestID(377);
			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 == 377 )
		{
			if( reply == 1 && ( ( myself::OwnItemCount(talker,5950) >= 1 && myself::OwnItemCount(talker,5951) >= 1 && myself::OwnItemCount(talker,5952) >= 1 && myself::OwnItemCount(talker,5953) >= 1 && myself::OwnItemCount(talker,5954) >= 1 ) || ( myself::OwnItemCount(talker,5945) >= 1 && myself::OwnItemCount(talker,5946) >= 1 && myself::OwnItemCount(talker,5947) >= 1 && myself::OwnItemCount(talker,5948) >= 1 && myself::OwnItemCount(talker,5949) >= 1 ) ) )
			{
				if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
				{
					talker.quest_last_reward_time = myself::GetCurrentTick();
					if( myself::OwnItemCount(talker,5950) > 0 && myself::OwnItemCount(talker,5951) > 0 && myself::OwnItemCount(talker,5952) > 0 && myself::OwnItemCount(talker,5953) > 0 && myself::OwnItemCount(talker,5954) > 0 )
					{
						myself::DeleteItem1(talker,5950,1);
						myself::DeleteItem1(talker,5951,1);
						myself::DeleteItem1(talker,5952,1);
						myself::DeleteItem1(talker,5953,1);
						myself::DeleteItem1(talker,5954,1);
						if( gg::Rand(2) == 0 )
						{
							myself::GiveItem1(talker,5422,1);
						}
						else
						{
							myself::GiveItem1(talker,5420,1);
						}
					}
					if( myself::OwnItemCount(talker,5945) > 0 && myself::OwnItemCount(talker,5946) > 0 && myself::OwnItemCount(talker,5947) > 0 && myself::OwnItemCount(talker,5948) > 0 && myself::OwnItemCount(talker,5949) > 0 )
					{
						myself::DeleteItem1(talker,5945,1);
						myself::DeleteItem1(talker,5946,1);
						myself::DeleteItem1(talker,5947,1);
						myself::DeleteItem1(talker,5948,1);
						myself::DeleteItem1(talker,5949,1);
						if( gg::Rand(2) == 0 )
						{
							myself::GiveItem1(talker,5336,1);
						}
						else
						{
							myself::GiveItem1(talker,5338,1);
						}
					}
					myself::AddLog(3,talker,377);
					myself::ShowPage(talker,"sobling_q0377_05.htm");
				}
			}
			else if( reply == 1 )
			{
				myself::ShowPage(talker,"sobling_q0377_04.htm");
			}
			if( reply == 2 )
			{
				myself::ShowPage(talker,"sobling_q0377_06.htm");
			}
			if( reply == 3 )
			{
				myself::RemoveMemo(talker,377);
				myself::SoundEffect(talker,"ItemSound.quest_finish");
				myself::ShowPage(talker,"sobling_q0377_07.htm");
				myself::AddLog(2,talker,quest_id);
			}
		}
		super;
	}

}
