class 1 scout_s_corpse : citizen
{
handler:
	EventHandler TALK_SELECTED(fhtml0,talker)
	{
		if( _from_choice == 0 )
		{
			if( talker.level >= 66 && myself::HaveMemo(talker,109) == 1 && myself::GetMemoState(talker,109) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"In Search of the Nest (Continue)");
			}
			if( talker.level >= 66 && myself::HaveMemo(talker,109) == 1 && myself::GetMemoState(talker,109) == 2 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"In Search of the Nest (Continue)");
			}
			if( _choiceN > 1 )
			{
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 )
		{
			switch(_code)
			{
				case 0:
				{
					if( _from_choice == 0 || ( talker.level >= 66 && myself::HaveMemo(talker,109) == 1 && myself::GetMemoState(talker,109) == 1 ) )
					{
						myself::SetCurrentQuestID(109);
						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::GiveItem1(talker,8083,1);
						myself::SetMemoState(talker,109,2);
						myself::SetFlagJournal(talker,109,2);
						myself::ShowPage(talker,"scout_s_corpse_q0109_001.htm");
					}
					break;
				}
				case 1:
				{
					if( _from_choice == 0 || ( talker.level >= 66 && myself::HaveMemo(talker,109) == 1 && myself::GetMemoState(talker,109) == 2 ) )
					{
						myself::SetCurrentQuestID(109);
						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,"scout_s_corpse_q0109_001.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

}
