Exemple #1
0
void CQuiz::RemoveNPC()
{
	CMover* pMover = prj.GetMover( m_sNPC.idNpc );
	if( IsValidObj( pMover ) )
	{
		g_UserMng.AddCreateSfxObj( pMover, XI_SKILL_MER_ONE_SPECIALHIT02 );
		pMover->Delete();
	}
}
Exemple #2
0
void CCreateMonster::ProcessRemoveMonster()
{
	if( m_mapCreateMonsterInfo.empty() )
		return;

	DWORD dwTick = GetTickCount();

	for( MAPINFO::iterator it=m_mapCreateMonsterInfo.begin(); it!=m_mapCreateMonsterInfo.end(); it++ )
	{
		CREATE_MONSTER_INFO* pCreateMonsterInfo = &it->second;
		if( dwTick >= pCreateMonsterInfo->dwEndTick )
		{
			CMover* pMover = prj.GetMover( it->first );
			if( IsValidObj( pMover ) )
			{
				if( pMover->IsLive() && !pMover->IsDelete() )
				{
					pCreateMonsterInfo->chState = 'R';
					pMover->Delete();
				}
			}
		}
	}
}