BOOL IsNamed(PSPAWNINFO pSpawn)
{
CHAR szTemp[MAX_STRING]={0};
if (pSpawn->Type != SPAWN_NPC)
return false;
if (pSpawn->Class >= 20 && pSpawn->Class <= 35 ) // NPC GMs
return false;
if (pSpawn->Class == 41 ) // NPC merchants
return false;
if (pSpawn->Class == 60 || pSpawn->Class == 61 ) //Ldon Merchants/Recruiters
return false;
if (pSpawn->Class == 63 ) // Tribute Master
return false;
strcpy(szTemp,pSpawn->Name);
strtok(szTemp," ");
// Checking for mobs that have 'A' or 'An' as their first name
if (szTemp[0] == 'A')
{
if (szTemp[1] == '_')
return false;
else if (szTemp[1] == 'n')
if (szTemp[2] == '_')
return false;
}
if ( (!strnicmp(szTemp,"Guard",5)) ||
(!strnicmp(szTemp,"Defender",8)) ||
(!strnicmp(szTemp,"Soulbinder",10)) ||
(!strnicmp(szTemp,"Aura",4)) ||
(!strnicmp(szTemp,"Diaku",5)) )
return false;
if (isupper(szTemp[0]))
return true;
if (szTemp[0] == '#' )
return true;
return false;
}