class 1 grey : citizen
{
handler:
	EventHandler TALK_SELECTED(fhtml0,talker)
	{
		if( _from_choice == 0 )
		{
			if( myself::HaveMemo(talker,335) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Song of the Hunter");
			}
			if( myself::HaveMemo(talker,335) && myself::OwnItemCount(talker,3695) && ( ( ( ( ( myself::OwnItemCount(talker,3709) >= 40 + myself::OwnItemCount(talker,3710) >= 20 ) + ( ( myself::OwnItemCount(talker,3711) + myself::OwnItemCount(talker,3712) ) + myself::OwnItemCount(talker,3713) ) >= 3 ) + myself::OwnItemCount(talker,3714) >= 1 ) + myself::OwnItemCount(talker,3715) >= 20 ) + myself::OwnItemCount(talker,3716) >= 30 ) < 3 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Song of the Hunter (Continue)");
			}
			if( myself::HaveMemo(talker,335) && myself::OwnItemCount(talker,3695) && ( ( ( ( ( myself::OwnItemCount(talker,3709) >= 40 + myself::OwnItemCount(talker,3710) >= 20 ) + ( ( myself::OwnItemCount(talker,3711) + myself::OwnItemCount(talker,3712) ) + myself::OwnItemCount(talker,3713) ) >= 3 ) + myself::OwnItemCount(talker,3714) >= 1 ) + myself::OwnItemCount(talker,3715) >= 20 ) + myself::OwnItemCount(talker,3716) >= 30 ) >= 3 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Song of the Hunter (Continue)");
			}
			if( myself::HaveMemo(talker,335) && talker.level < 45 && myself::OwnItemCount(talker,3692) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Song of the Hunter (Continue)");
			}
			if( myself::HaveMemo(talker,335) && talker.level >= 45 && myself::OwnItemCount(talker,3692) && myself::OwnItemCount(talker,3696) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"Song of the Hunter (Continue)");
			}
			if( myself::HaveMemo(talker,335) && myself::OwnItemCount(talker,3696) && ( ( ( ( ( myself::OwnItemCount(talker,3717) >= 20 + myself::OwnItemCount(talker,3718) >= 20 ) + myself::OwnItemCount(talker,3719) >= 30 ) + myself::OwnItemCount(talker,3720) >= 20 ) + myself::OwnItemCount(talker,3721) >= 20 ) + ( ( ( ( myself::OwnItemCount(talker,3722) + myself::OwnItemCount(talker,3723) ) + myself::OwnItemCount(talker,3724) ) + myself::OwnItemCount(talker,3725) ) + myself::OwnItemCount(talker,3726) ) >= 5 ) < 3 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 5;
				myself::AddChoice(5,"Song of the Hunter (Continue)");
			}
			if( myself::HaveMemo(talker,335) && myself::OwnItemCount(talker,3696) && ( ( ( ( ( myself::OwnItemCount(talker,3717) >= 20 + myself::OwnItemCount(talker,3718) >= 20 ) + myself::OwnItemCount(talker,3719) >= 30 ) + myself::OwnItemCount(talker,3720) >= 20 ) + myself::OwnItemCount(talker,3721) >= 20 ) + ( ( ( ( myself::OwnItemCount(talker,3722) + myself::OwnItemCount(talker,3723) ) + myself::OwnItemCount(talker,3724) ) + myself::OwnItemCount(talker,3725) ) + myself::OwnItemCount(talker,3726) ) >= 5 ) >= 3 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 6;
				myself::AddChoice(6,"Song of the Hunter (Continue)");
			}
			if( myself::HaveMemo(talker,335) && myself::OwnItemCount(talker,3693) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 7;
				myself::AddChoice(7,"Song of the Hunter (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,335) == 0 )
					{
						myself::SetCurrentQuestID(335);
						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 >= 35 )
							{
								myself::FHTML_SetFileName(fhtml0,"grey_q0335_02.htm");
								myself::FHTML_SetInt(fhtml0,"quest_id",335);
								myself::ShowFHTML(talker,fhtml0);
							}
							else
							{
								myself::ShowPage(talker,"grey_q0335_01.htm");
							}
						}
						else
						{
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 1:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,335) && myself::OwnItemCount(talker,3695) && ( ( ( ( ( myself::OwnItemCount(talker,3709) >= 40 + myself::OwnItemCount(talker,3710) >= 20 ) + ( ( myself::OwnItemCount(talker,3711) + myself::OwnItemCount(talker,3712) ) + myself::OwnItemCount(talker,3713) ) >= 3 ) + myself::OwnItemCount(talker,3714) >= 1 ) + myself::OwnItemCount(talker,3715) >= 20 ) + myself::OwnItemCount(talker,3716) >= 30 ) < 3 ) )
					{
						myself::SetCurrentQuestID(335);
						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,"grey_q0335_05.htm");
					}
					break;
				}
				case 2:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,335) && myself::OwnItemCount(talker,3695) && ( ( ( ( ( myself::OwnItemCount(talker,3709) >= 40 + myself::OwnItemCount(talker,3710) >= 20 ) + ( ( myself::OwnItemCount(talker,3711) + myself::OwnItemCount(talker,3712) ) + myself::OwnItemCount(talker,3713) ) >= 3 ) + myself::OwnItemCount(talker,3714) >= 1 ) + myself::OwnItemCount(talker,3715) >= 20 ) + myself::OwnItemCount(talker,3716) >= 30 ) >= 3 ) )
					{
						myself::SetCurrentQuestID(335);
						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,"grey_q0335_06.htm");
							myself::SetJournal(talker,335,2);
							myself::GiveItem1(talker,3692,1);
							myself::DeleteItem1(talker,3709,myself::OwnItemCount(talker,3709));
							myself::DeleteItem1(talker,3710,myself::OwnItemCount(talker,3710));
							myself::DeleteItem1(talker,3711,myself::OwnItemCount(talker,3711));
							myself::DeleteItem1(talker,3712,myself::OwnItemCount(talker,3712));
							myself::DeleteItem1(talker,3713,myself::OwnItemCount(talker,3713));
							myself::DeleteItem1(talker,3714,myself::OwnItemCount(talker,3714));
							myself::DeleteItem1(talker,3715,myself::OwnItemCount(talker,3715));
							myself::DeleteItem1(talker,3716,myself::OwnItemCount(talker,3716));
							myself::DeleteItem1(talker,3695,myself::OwnItemCount(talker,3695));
						}
					}
					break;
				}
				case 3:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,335) && talker.level < 45 && myself::OwnItemCount(talker,3692) ) )
					{
						myself::SetCurrentQuestID(335);
						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,"grey_q0335_07.htm");
					}
					break;
				}
				case 4:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,335) && talker.level >= 45 && myself::OwnItemCount(talker,3692) && myself::OwnItemCount(talker,3696) == 0 ) )
					{
						myself::SetCurrentQuestID(335);
						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,"grey_q0335_08.htm");
					}
					break;
				}
				case 5:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,335) && myself::OwnItemCount(talker,3696) && ( ( ( ( ( myself::OwnItemCount(talker,3717) >= 20 + myself::OwnItemCount(talker,3718) >= 20 ) + myself::OwnItemCount(talker,3719) >= 30 ) + myself::OwnItemCount(talker,3720) >= 20 ) + myself::OwnItemCount(talker,3721) >= 20 ) + ( ( ( ( myself::OwnItemCount(talker,3722) + myself::OwnItemCount(talker,3723) ) + myself::OwnItemCount(talker,3724) ) + myself::OwnItemCount(talker,3725) ) + myself::OwnItemCount(talker,3726) ) >= 5 ) < 3 ) )
					{
						myself::SetCurrentQuestID(335);
						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,"grey_q0335_11.htm");
					}
					break;
				}
				case 6:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,335) && myself::OwnItemCount(talker,3696) && ( ( ( ( ( myself::OwnItemCount(talker,3717) >= 20 + myself::OwnItemCount(talker,3718) >= 20 ) + myself::OwnItemCount(talker,3719) >= 30 ) + myself::OwnItemCount(talker,3720) >= 20 ) + myself::OwnItemCount(talker,3721) >= 20 ) + ( ( ( ( myself::OwnItemCount(talker,3722) + myself::OwnItemCount(talker,3723) ) + myself::OwnItemCount(talker,3724) ) + myself::OwnItemCount(talker,3725) ) + myself::OwnItemCount(talker,3726) ) >= 5 ) >= 3 ) )
					{
						myself::SetCurrentQuestID(335);
						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,"grey_q0335_12.htm");
							myself::SetJournal(talker,335,3);
							myself::GiveItem1(talker,3693,1);
							myself::DeleteItem1(talker,3718,myself::OwnItemCount(talker,3718));
							myself::DeleteItem1(talker,3717,myself::OwnItemCount(talker,3717));
							myself::DeleteItem1(talker,3719,myself::OwnItemCount(talker,3719));
							myself::DeleteItem1(talker,3720,myself::OwnItemCount(talker,3720));
							myself::DeleteItem1(talker,3721,myself::OwnItemCount(talker,3721));
							myself::DeleteItem1(talker,3722,myself::OwnItemCount(talker,3722));
							myself::DeleteItem1(talker,3723,myself::OwnItemCount(talker,3723));
							myself::DeleteItem1(talker,3724,myself::OwnItemCount(talker,3724));
							myself::DeleteItem1(talker,3725,myself::OwnItemCount(talker,3725));
							myself::DeleteItem1(talker,3726,myself::OwnItemCount(talker,3726));
							myself::DeleteItem1(talker,3696,myself::OwnItemCount(talker,3696));
							myself::DeleteItem1(talker,3692,myself::OwnItemCount(talker,3692));
						}
					}
					break;
				}
				case 7:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,335) && myself::OwnItemCount(talker,3693) ) )
					{
						myself::SetCurrentQuestID(335);
						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,"grey_q0335_14.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler QUEST_ACCEPTED(quest_id,talker)
	{
		if( quest_id == 335 )
		{
			myself::SetCurrentQuestID(335);
			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");
				if( myself::OwnItemCount(talker,3695) == 0 )
				{
					myself::GiveItem1(talker,3695,1);
				}
				myself::ShowPage(talker,"grey_q0335_03.htm");
				myself::AddLog(1,talker,335);
				myself::SetMemoState(talker,335,0);
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,i0,reply,talker)
	{
		if( ask == 335 )
		{
			myself::SetCurrentQuestID(335);
			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 == 335 )
		{
			if( reply == 1 )
			{
				if( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( myself::OwnItemCount(talker,3727) + myself::OwnItemCount(talker,3728) ) + myself::OwnItemCount(talker,3729) ) + myself::OwnItemCount(talker,3730) ) + myself::OwnItemCount(talker,3731) ) + myself::OwnItemCount(talker,3732) ) + myself::OwnItemCount(talker,3733) ) + myself::OwnItemCount(talker,3734) ) + myself::OwnItemCount(talker,3735) ) + myself::OwnItemCount(talker,3736) ) + myself::OwnItemCount(talker,3737) ) + myself::OwnItemCount(talker,3738) ) + myself::OwnItemCount(talker,3739) ) + myself::OwnItemCount(talker,3740) ) + myself::OwnItemCount(talker,3741) ) + myself::OwnItemCount(talker,3742) ) + myself::OwnItemCount(talker,3743) ) + myself::OwnItemCount(talker,3744) ) + myself::OwnItemCount(talker,3745) ) + myself::OwnItemCount(talker,3746) ) + myself::OwnItemCount(talker,3747) ) == 0 )
				{
					if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
					{
						talker.quest_last_reward_time = myself::GetCurrentTick();
						myself::ShowPage(talker,"grey_q0335_09.htm");
						myself::GiveItem1(talker,3696,1);
					}
				}
				else
				{
					myself::ShowPage(talker,"grey_q0335_09a.htm");
				}
			}
			else if( reply == 2 )
			{
				myself::ShowPage(talker,"grey_q0335_15.htm");
			}
			else if( reply == 3 )
			{
				if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
				{
					talker.quest_last_reward_time = myself::GetCurrentTick();
					myself::RemoveMemo(talker,335);
					myself::AddLog(2,talker,335);
					myself::SoundEffect(talker,"ItemSound.quest_finish");
					myself::DeleteItem1(talker,3692,myself::OwnItemCount(talker,3692));
					myself::DeleteItem1(talker,3693,myself::OwnItemCount(talker,3693));
					myself::DeleteItem1(talker,3694,myself::OwnItemCount(talker,3694));
					myself::DeleteItem1(talker,3695,myself::OwnItemCount(talker,3695));
					myself::DeleteItem1(talker,3696,myself::OwnItemCount(talker,3696));
					myself::DeleteItem1(talker,3697,myself::OwnItemCount(talker,3697));
					myself::DeleteItem1(talker,3698,myself::OwnItemCount(talker,3698));
					myself::DeleteItem1(talker,3699,myself::OwnItemCount(talker,3699));
					myself::DeleteItem1(talker,3700,myself::OwnItemCount(talker,3700));
					myself::DeleteItem1(talker,3701,myself::OwnItemCount(talker,3701));
					myself::DeleteItem1(talker,3702,myself::OwnItemCount(talker,3702));
					myself::DeleteItem1(talker,3703,myself::OwnItemCount(talker,3703));
					myself::DeleteItem1(talker,3704,myself::OwnItemCount(talker,3704));
					myself::DeleteItem1(talker,3705,myself::OwnItemCount(talker,3705));
					myself::DeleteItem1(talker,3706,myself::OwnItemCount(talker,3706));
					myself::DeleteItem1(talker,3707,myself::OwnItemCount(talker,3707));
					myself::DeleteItem1(talker,3708,myself::OwnItemCount(talker,3708));
					myself::DeleteItem1(talker,3471,myself::OwnItemCount(talker,3471));
					myself::DeleteItem1(talker,3709,myself::OwnItemCount(talker,3709));
					myself::DeleteItem1(talker,3710,myself::OwnItemCount(talker,3710));
					myself::DeleteItem1(talker,3711,myself::OwnItemCount(talker,3711));
					myself::DeleteItem1(talker,3712,myself::OwnItemCount(talker,3712));
					myself::DeleteItem1(talker,3713,myself::OwnItemCount(talker,3713));
					myself::DeleteItem1(talker,3714,myself::OwnItemCount(talker,3714));
					myself::DeleteItem1(talker,3715,myself::OwnItemCount(talker,3715));
					myself::DeleteItem1(talker,3716,myself::OwnItemCount(talker,3716));
					myself::DeleteItem1(talker,3717,myself::OwnItemCount(talker,3717));
					myself::DeleteItem1(talker,3718,myself::OwnItemCount(talker,3718));
					myself::DeleteItem1(talker,3719,myself::OwnItemCount(talker,3719));
					myself::DeleteItem1(talker,3720,myself::OwnItemCount(talker,3720));
					myself::DeleteItem1(talker,3721,myself::OwnItemCount(talker,3721));
					myself::DeleteItem1(talker,3722,myself::OwnItemCount(talker,3722));
					myself::DeleteItem1(talker,3723,myself::OwnItemCount(talker,3723));
					myself::DeleteItem1(talker,3724,myself::OwnItemCount(talker,3724));
					myself::DeleteItem1(talker,3725,myself::OwnItemCount(talker,3725));
					myself::DeleteItem1(talker,3726,myself::OwnItemCount(talker,3726));
					myself::DeleteItem1(talker,3727,myself::OwnItemCount(talker,3727));
					myself::DeleteItem1(talker,3728,myself::OwnItemCount(talker,3728));
					myself::DeleteItem1(talker,3729,myself::OwnItemCount(talker,3729));
					myself::DeleteItem1(talker,3730,myself::OwnItemCount(talker,3730));
					myself::DeleteItem1(talker,3731,myself::OwnItemCount(talker,3731));
					myself::DeleteItem1(talker,3732,myself::OwnItemCount(talker,3732));
					myself::DeleteItem1(talker,3733,myself::OwnItemCount(talker,3733));
					myself::DeleteItem1(talker,3734,myself::OwnItemCount(talker,3734));
					myself::DeleteItem1(talker,3735,myself::OwnItemCount(talker,3735));
					myself::DeleteItem1(talker,3736,myself::OwnItemCount(talker,3736));
					myself::DeleteItem1(talker,3737,myself::OwnItemCount(talker,3737));
					myself::DeleteItem1(talker,3738,myself::OwnItemCount(talker,3738));
					myself::DeleteItem1(talker,3739,myself::OwnItemCount(talker,3739));
					myself::DeleteItem1(talker,3740,myself::OwnItemCount(talker,3740));
					myself::DeleteItem1(talker,3741,myself::OwnItemCount(talker,3741));
					myself::DeleteItem1(talker,3742,myself::OwnItemCount(talker,3742));
					myself::DeleteItem1(talker,3743,myself::OwnItemCount(talker,3743));
					myself::DeleteItem1(talker,3744,myself::OwnItemCount(talker,3744));
					myself::DeleteItem1(talker,3745,myself::OwnItemCount(talker,3745));
					myself::DeleteItem1(talker,3746,myself::OwnItemCount(talker,3746));
					myself::DeleteItem1(talker,3747,myself::OwnItemCount(talker,3747));
					myself::DeleteItem1(talker,3748,myself::OwnItemCount(talker,3748));
					myself::DeleteItem1(talker,3749,myself::OwnItemCount(talker,3749));
					myself::DeleteItem1(talker,3750,myself::OwnItemCount(talker,3750));
					myself::DeleteItem1(talker,3751,myself::OwnItemCount(talker,3751));
					myself::DeleteItem1(talker,3752,myself::OwnItemCount(talker,3752));
					myself::DeleteItem1(talker,3753,myself::OwnItemCount(talker,3753));
					myself::DeleteItem1(talker,3754,myself::OwnItemCount(talker,3754));
					myself::DeleteItem1(talker,3755,myself::OwnItemCount(talker,3755));
					myself::DeleteItem1(talker,3756,myself::OwnItemCount(talker,3756));
					myself::DeleteItem1(talker,3757,myself::OwnItemCount(talker,3757));
					myself::DeleteItem1(talker,3758,myself::OwnItemCount(talker,3758));
					myself::DeleteItem1(talker,3759,myself::OwnItemCount(talker,3759));
					myself::DeleteItem1(talker,3760,myself::OwnItemCount(talker,3760));
					myself::DeleteItem1(talker,3761,myself::OwnItemCount(talker,3761));
					myself::DeleteItem1(talker,3762,myself::OwnItemCount(talker,3762));
					myself::DeleteItem1(talker,3763,myself::OwnItemCount(talker,3763));
					myself::DeleteItem1(talker,3764,myself::OwnItemCount(talker,3764));
					myself::DeleteItem1(talker,3765,myself::OwnItemCount(talker,3765));
					myself::DeleteItem1(talker,3766,myself::OwnItemCount(talker,3766));
					myself::DeleteItem1(talker,3767,myself::OwnItemCount(talker,3767));
					myself::DeleteItem1(talker,3768,myself::OwnItemCount(talker,3768));
					myself::DeleteItem1(talker,3769,myself::OwnItemCount(talker,3769));
					myself::DeleteItem1(talker,3770,myself::OwnItemCount(talker,3770));
					myself::DeleteItem1(talker,3771,myself::OwnItemCount(talker,3771));
					myself::DeleteItem1(talker,3772,myself::OwnItemCount(talker,3772));
					myself::DeleteItem1(talker,3773,myself::OwnItemCount(talker,3773));
					myself::DeleteItem1(talker,3774,myself::OwnItemCount(talker,3774));
					myself::DeleteItem1(talker,3775,myself::OwnItemCount(talker,3775));
					myself::DeleteItem1(talker,3776,myself::OwnItemCount(talker,3776));
					myself::DeleteItem1(talker,3777,myself::OwnItemCount(talker,3777));
					myself::DeleteItem1(talker,3778,myself::OwnItemCount(talker,3778));
					myself::DeleteItem1(talker,3779,myself::OwnItemCount(talker,3779));
					myself::DeleteItem1(talker,3780,myself::OwnItemCount(talker,3780));
					myself::DeleteItem1(talker,3781,myself::OwnItemCount(talker,3781));
					myself::DeleteItem1(talker,3782,myself::OwnItemCount(talker,3782));
					myself::DeleteItem1(talker,3783,myself::OwnItemCount(talker,3783));
					myself::DeleteItem1(talker,3784,myself::OwnItemCount(talker,3784));
					myself::DeleteItem1(talker,3785,myself::OwnItemCount(talker,3785));
					myself::DeleteItem1(talker,3786,myself::OwnItemCount(talker,3786));
					myself::DeleteItem1(talker,3787,myself::OwnItemCount(talker,3787));
					myself::DeleteItem1(talker,3788,myself::OwnItemCount(talker,3788));
					myself::DeleteItem1(talker,3789,myself::OwnItemCount(talker,3789));
					myself::DeleteItem1(talker,3790,myself::OwnItemCount(talker,3790));
					myself::DeleteItem1(talker,3791,myself::OwnItemCount(talker,3791));
					myself::DeleteItem1(talker,3792,myself::OwnItemCount(talker,3792));
					myself::DeleteItem1(talker,3793,myself::OwnItemCount(talker,3793));
					myself::DeleteItem1(talker,3794,myself::OwnItemCount(talker,3794));
					myself::DeleteItem1(talker,3795,myself::OwnItemCount(talker,3795));
					myself::DeleteItem1(talker,3796,myself::OwnItemCount(talker,3796));
					myself::DeleteItem1(talker,3797,myself::OwnItemCount(talker,3797));
					myself::DeleteItem1(talker,3798,myself::OwnItemCount(talker,3798));
					myself::DeleteItem1(talker,3799,myself::OwnItemCount(talker,3799));
					myself::DeleteItem1(talker,3800,myself::OwnItemCount(talker,3800));
					myself::DeleteItem1(talker,3801,myself::OwnItemCount(talker,3801));
					myself::DeleteItem1(talker,3802,myself::OwnItemCount(talker,3802));
					myself::DeleteItem1(talker,3803,myself::OwnItemCount(talker,3803));
					myself::DeleteItem1(talker,3804,myself::OwnItemCount(talker,3804));
					myself::DeleteItem1(talker,3805,myself::OwnItemCount(talker,3805));
					myself::DeleteItem1(talker,3806,myself::OwnItemCount(talker,3806));
					myself::DeleteItem1(talker,3807,myself::OwnItemCount(talker,3807));
					myself::DeleteItem1(talker,3808,myself::OwnItemCount(talker,3808));
					myself::DeleteItem1(talker,3809,myself::OwnItemCount(talker,3809));
					myself::DeleteItem1(talker,3810,myself::OwnItemCount(talker,3810));
					if( myself::OwnItemCount(talker,3694) < 20 )
					{
						myself::ShowPage(talker,"grey_q0335_16.htm");
					}
					else
					{
						myself::ShowPage(talker,"grey_q0335_17.htm");
						i0 = gg::Rand(10);
						myself::GiveItem1(talker,57,20000);
					}
				}
			}
			else if( reply == 4 )
			{
				myself::ShowPage(talker,"grey_q0335_18.htm");
			}
		}
		super;
	}

}
