class 1 johnson : guard_stand
{
handler:
	EventHandler TALK_SELECTED(i0,talker)
	{
		if( _from_choice == 0 )
		{
			if( myself::HaveMemo(talker,104) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Spirit of Mirrors (Continue)");
			}
			if( _choiceN > 1 )
			{
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 )
		{
			if( _code == 0 )
			{
				if( _from_choice == 0 || myself::HaveMemo(talker,104) )
				{
					myself::SetCurrentQuestID(104);
					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,"johnson_q0104_01.htm");
					i0 = myself::GetMemoStateEx(talker,104,1);
					myself::SetMemoStateEx(talker,104,1,( i0 + 1 ));
					if( myself::GetMemoStateEx(talker,104,1) == 110 )
					{
						myself::SetFlagJournal(talker,104,2);
					}
				}
			}
			return;
		}
		super;
	}

}
