if(Config.CHECK_KNOWN)
{
active_char.sendMessage("Added NPC: " + ((L2NpcInstance) object).getName());
}
active_char.sendPacket(new NpcInfo((L2NpcInstance) object, active_char));
}
else if(object instanceof L2Summon)
{
L2Summon summon = (L2Summon) object;
// Check if the L2PcInstance is the owner of the Pet
if(active_char.equals(summon.getOwner()))
{
active_char.sendPacket(new PetInfo(summon));
// The PetInfo packet wipes the PartySpelled (list of active spells' icons). Re-add them
summon.updateEffectIcons(true);
if(summon instanceof L2PetInstance)
{
active_char.sendPacket(new PetItemList((L2PetInstance) summon));
}
}
else
{
active_char.sendPacket(new NpcInfo(summon, active_char));
}
summon = null;
}
else if(object instanceof L2PcInstance)