class 1 collector_yumi : citizen
{
parameter:
	int	EXPRate = 1;

handler:
	EventHandler TALK_SELECTED(talker)
	{
		if( _from_choice == 0 )
		{
			if( talker.level >= 46 && myself::HaveMemo(talker,121) == 1 && myself::GetOneTimeQuestFlag(talker,121) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Pavel the Giant - In Progress");
			}
			if( _choiceN > 1 )
			{
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 )
		{
			if( _code == 0 )
			{
				if( _from_choice == 0 || ( myself::HaveMemo(talker,121) == 1 && myself::GetOneTimeQuestFlag(talker,121) == 0 ) )
				{
					myself::SetCurrentQuestID(121);
					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,"collector_yumi_q0121_01.htm");
				}
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,reply,talker)
	{
		if( ask == 121 )
		{
			if( reply == 1 )
			{
				myself::RemoveMemo(talker,121);
				myself::SoundEffect(talker,"ItemSound.quest_finish");
				myself::SetOneTimeQuestFlag(talker,121,1);
				myself::IncrementParam(talker,0,( 10000 * EXPRate ));
				myself::ShowPage(talker,"collector_yumi_q0121_02.htm");
			}
		}
	}

}
