class 1 kierre : citizen
{
handler:
	EventHandler TALK_SELECTED(fhtml0,talker)
	{
		if( _from_choice == 0 )
		{
			if( myself::HaveMemo(talker,115) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"The Other Side of Truth");
			}
			else if( myself::GetMemoState(talker,115) == 8 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"The Other Side of Truth (continue...)");
			}
			else
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"The Other Side of Truth");
			}
			if( _choiceN > 1 )
			{
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 )
		{
			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;
			}
			else
			{
				switch(_code)
				{
					case 0:
					{
						myself::ShowPage(talker,"noquest.htm");
						break;
					}
					case 1:
					{
						myself::SetCurrentQuestID(115);
						myself::GiveItem1(talker,8082,1);
						myself::SetMemoState(talker,115,9);
						myself::SetJournal(talker,115,9);
						myself::CreateOnePrivate(1032019,"suspicious_man",0,1);
						myself::SoundEffect(talker,"ItemSound.quest_itemget");
						myself::ShowPage(talker,"kierre_q115_001.htm");
						break;
					}
				}
				return;
			}
		}
	}

}
