Examples of addNpcName()


Examples of com.l2jfrozen.gameserver.network.serverpackets.SystemMessage.addNpcName()

        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

Examples of com.l2jfrozen.gameserver.network.serverpackets.SystemMessage.addNpcName()

        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

Examples of com.l2jfrozen.gameserver.network.serverpackets.SystemMessage.addNpcName()

          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

Examples of com.l2jfrozen.gameserver.network.serverpackets.SystemMessage.addNpcName()

    {
      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());
      }
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.SystemMessage.addNpcName()

        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

Examples of com.l2jfrozen.gameserver.network.serverpackets.SystemMessage.addNpcName()

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

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

Examples of com.l2jfrozen.gameserver.network.serverpackets.SystemMessage.addNpcName()

    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

Examples of l2p.gameserver.serverpackets.SystemMessage.addNpcName()

    if(!isDead())
    {
      SystemMessage sm = new SystemMessage(SystemMessage.THE_PET_RECEIVED_DAMAGE_OF_S2_CAUSED_BY_S1);
      if(attacker.isNpc())
      {
        sm.addNpcName(((L2NpcInstance) attacker).getTemplate().npcId);
      }
      else
      {
        sm.addString(attacker.getName());
      }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.SystemMessage.addNpcName()

    if (!isDead())
    {
      SystemMessage sm = new SystemMessage(SystemMessage.THE_PET_RECEIVED_DAMAGE_OF_S2_CAUSED_BY_S1);
      if (attacker.isNpc())
      {
        sm.addNpcName(((NpcInstance) attacker).getTemplate().npcId);
      }
      else
      {
        sm.addString(attacker.getName());
      }
View Full Code Here

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
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.