class 1 sir_karrel_vasper : citizen
{
handler:
	EventHandler TALK_SELECTED(talker)
	{
		if( _from_choice == 0 )
		{
			if( myself::HaveMemo(talker,402) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Path to a Knight");
			}
			if( myself::HaveMemo(talker,402) == 1 && myself::OwnItemCount(talker,1271) > 0 && ( ( ( ( ( myself::OwnItemCount(talker,1162) + myself::OwnItemCount(talker,1163) ) + myself::OwnItemCount(talker,1164) ) + myself::OwnItemCount(talker,1165) ) + myself::OwnItemCount(talker,1166) ) + myself::OwnItemCount(talker,1167) ) < 3 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Path to a Knight (Continue)");
			}
			if( myself::HaveMemo(talker,402) == 1 && myself::OwnItemCount(talker,1271) > 0 && ( ( ( ( ( myself::OwnItemCount(talker,1162) + myself::OwnItemCount(talker,1163) ) + myself::OwnItemCount(talker,1164) ) + myself::OwnItemCount(talker,1165) ) + myself::OwnItemCount(talker,1166) ) + myself::OwnItemCount(talker,1167) ) == 3 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Path to a Knight (Continue)");
			}
			if( myself::HaveMemo(talker,402) == 1 && myself::OwnItemCount(talker,1271) > 0 && ( ( ( ( ( myself::OwnItemCount(talker,1162) + myself::OwnItemCount(talker,1163) ) + myself::OwnItemCount(talker,1164) ) + myself::OwnItemCount(talker,1165) ) + myself::OwnItemCount(talker,1166) ) + myself::OwnItemCount(talker,1167) ) > 3 && ( ( ( ( ( myself::OwnItemCount(talker,1162) + myself::OwnItemCount(talker,1163) ) + myself::OwnItemCount(talker,1164) ) + myself::OwnItemCount(talker,1165) ) + myself::OwnItemCount(talker,1166) ) + myself::OwnItemCount(talker,1167) ) < 6 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Path to a Knight (Continue)");
			}
			if( myself::HaveMemo(talker,402) == 1 && myself::OwnItemCount(talker,1271) > 0 && ( ( ( ( ( myself::OwnItemCount(talker,1162) + myself::OwnItemCount(talker,1163) ) + myself::OwnItemCount(talker,1164) ) + myself::OwnItemCount(talker,1165) ) + myself::OwnItemCount(talker,1166) ) + myself::OwnItemCount(talker,1167) ) == 6 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"Path to a Knight (Continue)");
			}
			if( myself::HaveMemo(talker,229) == 1 && myself::OwnItemCount(talker,3324) >= 1 && myself::OwnItemCount(talker,3325) >= 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 5;
				myself::AddChoice(5,"Test of Witchcraft (Continue)");
			}
			if( myself::HaveMemo(talker,229) == 1 && myself::OwnItemCount(talker,3324) >= 1 && myself::OwnItemCount(talker,3327) >= 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 6;
				myself::AddChoice(6,"Test of Witchcraft (Continue)");
			}
			if( myself::HaveMemo(talker,229) == 1 && myself::OwnItemCount(talker,3324) >= 1 && myself::OwnItemCount(talker,3330) >= 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 7;
				myself::AddChoice(7,"Test of Witchcraft (Continue)");
			}
			if( myself::HaveMemo(talker,229) == 1 && myself::OwnItemCount(talker,3324) >= 1 && myself::OwnItemCount(talker,3029) >= 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 8;
				myself::AddChoice(8,"Test of Witchcraft (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,402) == 0 )
					{
						myself::SetCurrentQuestID(402);
						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,"sir_karrel_vasper_q0402_01.htm");
						}
						else
						{
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 1:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,402) == 1 && myself::OwnItemCount(talker,1271) > 0 && ( ( ( ( ( myself::OwnItemCount(talker,1162) + myself::OwnItemCount(talker,1163) ) + myself::OwnItemCount(talker,1164) ) + myself::OwnItemCount(talker,1165) ) + myself::OwnItemCount(talker,1166) ) + myself::OwnItemCount(talker,1167) ) < 3 ) )
					{
						myself::SetCurrentQuestID(402);
						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,"sir_karrel_vasper_q0402_09.htm");
					}
					break;
				}
				case 2:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,402) == 1 && myself::OwnItemCount(talker,1271) > 0 && ( ( ( ( ( myself::OwnItemCount(talker,1162) + myself::OwnItemCount(talker,1163) ) + myself::OwnItemCount(talker,1164) ) + myself::OwnItemCount(talker,1165) ) + myself::OwnItemCount(talker,1166) ) + myself::OwnItemCount(talker,1167) ) == 3 ) )
					{
						myself::SetCurrentQuestID(402);
						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,"sir_karrel_vasper_q0402_10.htm");
					}
					break;
				}
				case 3:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,402) == 1 && myself::OwnItemCount(talker,1271) > 0 && ( ( ( ( ( myself::OwnItemCount(talker,1162) + myself::OwnItemCount(talker,1163) ) + myself::OwnItemCount(talker,1164) ) + myself::OwnItemCount(talker,1165) ) + myself::OwnItemCount(talker,1166) ) + myself::OwnItemCount(talker,1167) ) > 3 && ( ( ( ( ( myself::OwnItemCount(talker,1162) + myself::OwnItemCount(talker,1163) ) + myself::OwnItemCount(talker,1164) ) + myself::OwnItemCount(talker,1165) ) + myself::OwnItemCount(talker,1166) ) + myself::OwnItemCount(talker,1167) ) < 6 ) )
					{
						myself::SetCurrentQuestID(402);
						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,"sir_karrel_vasper_q0402_11.htm");
					}
					break;
				}
				case 4:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,402) == 1 && myself::OwnItemCount(talker,1271) > 0 && ( ( ( ( ( myself::OwnItemCount(talker,1162) + myself::OwnItemCount(talker,1163) ) + myself::OwnItemCount(talker,1164) ) + myself::OwnItemCount(talker,1165) ) + myself::OwnItemCount(talker,1166) ) + myself::OwnItemCount(talker,1167) ) == 6 ) )
					{
						myself::SetCurrentQuestID(402);
						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,"sir_karrel_vasper_q0402_12.htm");
							myself::IncrementParam(talker,0,3200);
							myself::IncrementParam(talker,1,7260);
							myself::DeleteItem1(talker,1162,myself::OwnItemCount(talker,1162));
							myself::DeleteItem1(talker,1163,myself::OwnItemCount(talker,1163));
							myself::DeleteItem1(talker,1164,myself::OwnItemCount(talker,1164));
							myself::DeleteItem1(talker,1165,myself::OwnItemCount(talker,1165));
							myself::DeleteItem1(talker,1166,myself::OwnItemCount(talker,1166));
							myself::DeleteItem1(talker,1167,myself::OwnItemCount(talker,1167));
							myself::DeleteItem1(talker,1168,myself::OwnItemCount(talker,1168));
							myself::DeleteItem1(talker,1172,myself::OwnItemCount(talker,1172));
							myself::DeleteItem1(talker,1176,myself::OwnItemCount(talker,1176));
							myself::DeleteItem1(talker,1170,myself::OwnItemCount(talker,1170));
							myself::DeleteItem1(talker,1174,myself::OwnItemCount(talker,1174));
							myself::DeleteItem1(talker,1178,myself::OwnItemCount(talker,1178));
							myself::DeleteItem1(talker,1169,myself::OwnItemCount(talker,1169));
							myself::DeleteItem1(talker,1171,myself::OwnItemCount(talker,1171));
							myself::DeleteItem1(talker,1173,myself::OwnItemCount(talker,1173));
							myself::DeleteItem1(talker,1175,myself::OwnItemCount(talker,1175));
							myself::DeleteItem1(talker,1177,myself::OwnItemCount(talker,1177));
							myself::DeleteItem1(talker,1179,myself::OwnItemCount(talker,1179));
							myself::DeleteItem1(talker,1271,myself::OwnItemCount(talker,1271));
							myself::GiveItem1(talker,1161,1);
							myself::RemoveMemo(talker,402);
							myself::AddLog(2,talker,402);
							myself::SoundEffect(talker,"ItemSound.quest_finish");
						}
					}
					break;
				}
				case 5:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,229) == 1 && myself::OwnItemCount(talker,3324) >= 1 && myself::OwnItemCount(talker,3325) >= 1 ) )
					{
						myself::SetCurrentQuestID(229);
						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,"sir_karrel_vasper_q0229_01.htm");
					}
					break;
				}
				case 6:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,229) == 1 && myself::OwnItemCount(talker,3324) >= 1 && myself::OwnItemCount(talker,3327) >= 1 ) )
					{
						myself::SetCurrentQuestID(229);
						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,"sir_karrel_vasper_q0229_04.htm");
					}
					break;
				}
				case 7:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,229) == 1 && myself::OwnItemCount(talker,3324) >= 1 && myself::OwnItemCount(talker,3330) >= 1 ) )
					{
						myself::SetCurrentQuestID(229);
						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,"sir_karrel_vasper_q0229_05.htm");
							myself::DeleteItem1(talker,3330,1);
							myself::GiveItem1(talker,3029,1);
							myself::SetFlagJournal(talker,229,7);
						}
					}
					break;
				}
				case 8:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,229) == 1 && myself::OwnItemCount(talker,3324) >= 1 && myself::OwnItemCount(talker,3029) >= 1 ) )
					{
						myself::SetCurrentQuestID(229);
						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,"sir_karrel_vasper_q0229_06.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler QUEST_ACCEPTED(quest_id,talker)
	{
		if( quest_id == 402 )
		{
			myself::SetCurrentQuestID(402);
			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::AddLog(1,talker,402);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::GiveItem1(talker,1271,1);
				myself::ShowPage(talker,"sir_karrel_vasper_q0402_08.htm");
				myself::SetFlagJournal(talker,402,1);
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,fhtml0,quest_id,reply,talker)
	{
		if( ask == 402 )
		{
			myself::SetCurrentQuestID(402);
			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 == 402 )
		{
			if( reply == 1 )
			{
				if( talker.occupation == 0 )
				{
					if( talker.level >= 19 )
					{
						if( myself::OwnItemCount(talker,1161) > 0 )
						{
							myself::ShowPage(talker,"sir_karrel_vasper_q0402_04.htm");
						}
						else
						{
							myself::ShowPage(talker,"sir_karrel_vasper_q0402_05.htm");
						}
					}
					else
					{
						myself::ShowPage(talker,"sir_karrel_vasper_q0402_02.htm");
					}
				}
				else if( talker.occupation == 4 )
				{
					myself::ShowPage(talker,"sir_karrel_vasper_q0402_02a.htm");
				}
				else
				{
					myself::ShowPage(talker,"sir_karrel_vasper_q0402_03.htm");
				}
			}
		}
		if( ask == 402 )
		{
			myself::SetCurrentQuestID(402);
			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 == 402 )
		{
			if( reply == 2 )
			{
				myself::FHTML_SetFileName(fhtml0,"sir_karrel_vasper_q0402_07.htm");
				myself::FHTML_SetInt(fhtml0,"quest_id",402);
				myself::ShowFHTML(talker,fhtml0);
			}
		}
		if( ask == 402 )
		{
			myself::SetCurrentQuestID(402);
			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 == 402 )
		{
			if( reply == 3 )
			{
				myself::ShowPage(talker,"sir_karrel_vasper_q0402_15.htm");
			}
		}
		if( ask == 402 )
		{
			myself::SetCurrentQuestID(402);
			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 == 402 )
		{
			if( reply == 4 && myself::OwnItemCount(talker,1271) > 0 && ( ( ( ( ( myself::OwnItemCount(talker,1162) + myself::OwnItemCount(talker,1163) ) + myself::OwnItemCount(talker,1164) ) + myself::OwnItemCount(talker,1165) ) + myself::OwnItemCount(talker,1166) ) + myself::OwnItemCount(talker,1167) ) == 3 )
			{
				if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
				{
					talker.quest_last_reward_time = myself::GetCurrentTick();
					myself::ShowPage(talker,"sir_karrel_vasper_q0402_13.htm");
					myself::IncrementParam(talker,0,3200);
					if( myself::OwnItemCount(talker,1166) >= 1 && myself::OwnItemCount(talker,1167) >= 1 )
					{
						myself::IncrementParam(talker,1,6000);
					}
					else if( myself::OwnItemCount(talker,1166) >= 1 || myself::OwnItemCount(talker,1167) >= 1 )
					{
						myself::IncrementParam(talker,1,3500);
					}
					else
					{
						myself::IncrementParam(talker,1,2260);
					}
					myself::DeleteItem1(talker,1162,myself::OwnItemCount(talker,1162));
					myself::DeleteItem1(talker,1163,myself::OwnItemCount(talker,1163));
					myself::DeleteItem1(talker,1164,myself::OwnItemCount(talker,1164));
					myself::DeleteItem1(talker,1165,myself::OwnItemCount(talker,1165));
					myself::DeleteItem1(talker,1166,myself::OwnItemCount(talker,1166));
					myself::DeleteItem1(talker,1167,myself::OwnItemCount(talker,1167));
					myself::DeleteItem1(talker,1168,myself::OwnItemCount(talker,1168));
					myself::DeleteItem1(talker,1172,myself::OwnItemCount(talker,1172));
					myself::DeleteItem1(talker,1176,myself::OwnItemCount(talker,1176));
					myself::DeleteItem1(talker,1170,myself::OwnItemCount(talker,1170));
					myself::DeleteItem1(talker,1174,myself::OwnItemCount(talker,1174));
					myself::DeleteItem1(talker,1178,myself::OwnItemCount(talker,1178));
					myself::DeleteItem1(talker,1169,myself::OwnItemCount(talker,1169));
					myself::DeleteItem1(talker,1171,myself::OwnItemCount(talker,1171));
					myself::DeleteItem1(talker,1173,myself::OwnItemCount(talker,1173));
					myself::DeleteItem1(talker,1175,myself::OwnItemCount(talker,1175));
					myself::DeleteItem1(talker,1177,myself::OwnItemCount(talker,1177));
					myself::DeleteItem1(talker,1179,myself::OwnItemCount(talker,1179));
					myself::DeleteItem1(talker,1271,myself::OwnItemCount(talker,1271));
					myself::GiveItem1(talker,1161,1);
					myself::RemoveMemo(talker,402);
					myself::AddLog(2,talker,402);
					myself::SoundEffect(talker,"ItemSound.quest_finish");
				}
			}
		}
		if( ask == 402 )
		{
			myself::SetCurrentQuestID(402);
			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 == 402 )
		{
			if( reply == 5 && myself::OwnItemCount(talker,1271) > 0 && ( ( ( ( ( myself::OwnItemCount(talker,1162) + myself::OwnItemCount(talker,1163) ) + myself::OwnItemCount(talker,1164) ) + myself::OwnItemCount(talker,1165) ) + myself::OwnItemCount(talker,1166) ) + myself::OwnItemCount(talker,1167) ) > 3 && ( ( ( ( ( myself::OwnItemCount(talker,1162) + myself::OwnItemCount(talker,1163) ) + myself::OwnItemCount(talker,1164) ) + myself::OwnItemCount(talker,1165) ) + myself::OwnItemCount(talker,1166) ) + myself::OwnItemCount(talker,1167) ) < 6 )
			{
				if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
				{
					talker.quest_last_reward_time = myself::GetCurrentTick();
					myself::ShowPage(talker,"sir_karrel_vasper_q0402_14.htm");
					myself::IncrementParam(talker,0,3200);
					if( myself::OwnItemCount(talker,1166) >= 1 && myself::OwnItemCount(talker,1167) >= 1 )
					{
						myself::IncrementParam(talker,1,7260);
					}
					else if( myself::OwnItemCount(talker,1166) >= 1 || myself::OwnItemCount(talker,1167) >= 1 )
					{
						myself::IncrementParam(talker,1,4760);
					}
					else
					{
						myself::IncrementParam(talker,1,2260);
					}
					myself::DeleteItem1(talker,1162,myself::OwnItemCount(talker,1162));
					myself::DeleteItem1(talker,1163,myself::OwnItemCount(talker,1163));
					myself::DeleteItem1(talker,1164,myself::OwnItemCount(talker,1164));
					myself::DeleteItem1(talker,1165,myself::OwnItemCount(talker,1165));
					myself::DeleteItem1(talker,1166,myself::OwnItemCount(talker,1166));
					myself::DeleteItem1(talker,1167,myself::OwnItemCount(talker,1167));
					myself::DeleteItem1(talker,1168,myself::OwnItemCount(talker,1168));
					myself::DeleteItem1(talker,1172,myself::OwnItemCount(talker,1172));
					myself::DeleteItem1(talker,1176,myself::OwnItemCount(talker,1176));
					myself::DeleteItem1(talker,1170,myself::OwnItemCount(talker,1170));
					myself::DeleteItem1(talker,1174,myself::OwnItemCount(talker,1174));
					myself::DeleteItem1(talker,1178,myself::OwnItemCount(talker,1178));
					myself::DeleteItem1(talker,1169,myself::OwnItemCount(talker,1169));
					myself::DeleteItem1(talker,1171,myself::OwnItemCount(talker,1171));
					myself::DeleteItem1(talker,1173,myself::OwnItemCount(talker,1173));
					myself::DeleteItem1(talker,1175,myself::OwnItemCount(talker,1175));
					myself::DeleteItem1(talker,1177,myself::OwnItemCount(talker,1177));
					myself::DeleteItem1(talker,1179,myself::OwnItemCount(talker,1179));
					myself::DeleteItem1(talker,1271,myself::OwnItemCount(talker,1271));
					myself::GiveItem1(talker,1161,1);
					myself::RemoveMemo(talker,402);
					myself::AddLog(2,talker,402);
					myself::SoundEffect(talker,"ItemSound.quest_finish");
				}
			}
		}
		if( ask == 229 )
		{
			myself::SetCurrentQuestID(229);
			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 == 229 )
		{
			if( reply == 1 )
			{
				myself::ShowPage(talker,"sir_karrel_vasper_q0229_02.htm");
			}
			if( reply == 2 )
			{
				if( myself::OwnItemCount(talker,3325) >= 1 )
				{
					if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
					{
						talker.quest_last_reward_time = myself::GetCurrentTick();
						myself::ShowPage(talker,"sir_karrel_vasper_q0229_03.htm");
						myself::DeleteItem1(talker,3325,1);
						myself::GiveItem1(talker,3327,1);
					}
				}
			}
		}
		super;
	}

}
