if (player instanceof L2PcInstance)
{
CharInfo info1 = new CharInfo((L2PcInstance)player);
player.broadcastPacket(info1);
UserInfo info2 = new UserInfo((L2PcInstance)player);
player.sendPacket(info2);
}
else if(player instanceof L2NpcInstance)
{
NpcInfo info1 = new NpcInfo((L2NpcInstance)player, null);
player.broadcastPacket(info1);