Package net.sf.l2j.gameserver.serverpackets

Examples of net.sf.l2j.gameserver.serverpackets.SystemMessage.addNpcName()


                int mobId = ((L2NpcInstance)attacker).getTemplate().idTemplate;

                if (Config.DEBUG)
                    _log.fine("mob id:" + mobId);

                smsg.addNpcName(mobId);
            }
            else if (attacker instanceof L2Summon)
            {
                int mobId = ((L2Summon)attacker).getTemplate().idTemplate;
View Full Code Here


            }
            else if (attacker instanceof L2Summon)
            {
                int mobId = ((L2Summon)attacker).getTemplate().idTemplate;

                smsg.addNpcName(mobId);
            }
            else
            {
                smsg.addString(attacker.getName());
            }
View Full Code Here

        if (attacker != null)
        {
            SystemMessage sm = new SystemMessage(SystemMessageId.PET_RECEIVED_S2_DAMAGE_BY_S1);
            if (attacker instanceof L2NpcInstance)
                sm.addNpcName(((L2NpcInstance)attacker).getTemplate().idTemplate);
            else
                sm.addString(attacker.getName());
            sm.addNumber((int)value);
            getActiveChar().getOwner().sendPacket(sm);
View Full Code Here

    {
        super.reduceCurrentHp(damage, attacker);
        SystemMessage sm = new SystemMessage(SystemMessageId.SUMMON_RECEIVED_DAMAGE_S2_BY_S1);
        if (attacker instanceof L2NpcInstance)
        {
            sm.addNpcName(((L2NpcInstance) attacker).getTemplate().npcId);
        }
        else
        {
            sm.addString(attacker.getName());
        }
View Full Code Here

        SystemMessage sm = new SystemMessage(SystemMessageId.AVOIDED_S1S_ATTACK);
       
        if (this instanceof L2Summon)
        {
          int mobId = ((L2Summon) this).getTemplate().npcId;
          sm.addNpcName(mobId);
        }
        else
        {
          sm.addString(getName());
        }
View Full Code Here

        target.sendPacket(sump);
        SystemMessage sm = new SystemMessage(SystemMessageId.S2_MP_HAS_BEEN_DRAINED_BY_S1);
        if (activeChar instanceof L2NpcInstance)
        {
          int mobId = ((L2NpcInstance)activeChar).getNpcId();
          sm.addNpcName(mobId);
        }
        else if (activeChar instanceof L2Summon)
        {
          int mobId = ((L2Summon)activeChar).getNpcId();
          sm.addNpcName(mobId);
View Full Code Here

          sm.addNpcName(mobId);
        }
        else if (activeChar instanceof L2Summon)
        {
          int mobId = ((L2Summon)activeChar).getNpcId();
          sm.addNpcName(mobId);
        }
        else
        {
          sm.addString(activeChar.getName());
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.