class 1 devorin : citizen
{
parameter:
	string	fnHi = "nurse_devorin001.htm";

handler:
	EventHandler TALK_SELECTED(fhtml0,talker)
	{
		if( _from_choice == 0 )
		{
			if( talker.level >= 74 && myself::HaveMemo(talker,119) == 1 && myself::GetMemoState(talker,119) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Last Imperial Prince - In Progress");
			}
			if( _choiceN > 1 )
			{
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 )
		{
			if( _code == 0 )
			{
				if( _from_choice == 0 || ( talker.level >= 74 && myself::HaveMemo(talker,119) == 1 && myself::GetMemoState(talker,119) == 1 ) )
				{
					myself::SetCurrentQuestID(119);
					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,"nurse_devorin_q119_001.htm");
					myself::SetMemoState(talker,119,2);
					myself::AddLog(2,talker,119);
					myself::SetFlagJournal(talker,119,2);
				}
			}
			return;
		}
		super;
	}

}
