Examples of NpcInfo


Examples of com.l2client.network.game.ServerPackets.NpcInfo

        break;
      case 0x0b:
        pa = new CharSelected();
        break;
      case 0x0c:
        pa = new NpcInfo();
        break;
      case 0x0d:
//        pa = new NewCharacterSuccess();
        break;
      case 0x0f:
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.NpcInfo

        {
          _activeChar.sendPacket(new StaticObject((L2StaticObjectInstance) object));
        }
        else if(object instanceof L2NpcInstance)
        {
          _activeChar.sendPacket(new NpcInfo((L2NpcInstance) object, _activeChar));
        }
        else if(object instanceof L2Summon)
        {
          L2Summon summon = (L2Summon) object;

          // Check if the L2PcInstance is the owner of the Pet
          if(_activeChar.equals(summon.getOwner()))
          {
            _activeChar.sendPacket(new PetInfo(summon));

            if(summon instanceof L2PetInstance)
            {
              _activeChar.sendPacket(new PetItemList((L2PetInstance) summon));
            }
          }
          else
          {
            _activeChar.sendPacket(new NpcInfo(summon, _activeChar));
          }

          // The PetInfo packet wipes the PartySpelled (list of active spells' icons).  Re-add them
          summon.updateEffectIcons(true);
        }
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.NpcInfo

      if(broadcastFull && getKnownList()!= null && getKnownList().getKnownPlayers()!=null)
      {
        for(L2PcInstance player : getKnownList().getKnownPlayers().values())
          if(player != null)
          {
            player.sendPacket(new NpcInfo((L2NpcInstance) this, player));
          }
      }
      else if(su != null)
      {
        broadcastPacket(su);
      }
    }
    else if(this instanceof L2Summon)
    {
      if(broadcastFull)
      {
        for(L2PcInstance player : getKnownList().getKnownPlayers().values())
          if(player != null)
          {
            player.sendPacket(new NpcInfo((L2Summon) this, player));
          }
      }
      else if(su != null)
      {
        broadcastPacket(su);
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.NpcInfo

            }

            if(this instanceof L2PcInstance && target instanceof L2Summon)
            {
              ((L2Summon) target).getOwner().sendPacket(new PetInfo((L2Summon) target));
              sendPacket(new NpcInfo((L2Summon) target, this));

              // The PetInfo packet wipes the PartySpelled (list of active spells' icons).  Re-add them
              ((L2Summon) target).updateEffectIcons(true);
            }
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.NpcInfo

      activeChar.sendPacket(new SystemMessage(SystemMessageId.NAMING_PETNAME_CONTAINS_INVALID_CHARS));
      return;
    }

    pet.setName(_name);
    pet.broadcastPacket(new NpcInfo(pet, activeChar));
    activeChar.sendPacket(new PetInfo(pet));
    // The PetInfo packet wipes the PartySpelled (list of active spells' icons).  Re-add them
    pet.updateEffectIcons(true);

    // set the flag on the control item to say that the pet has a name
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.NpcInfo

   
    // Send a Server->Client packet NpcInfo with state of abnormal effect to all L2PcInstance in the _KnownPlayers of the L2NpcInstance
    for (L2PcInstance player : getKnownList().getKnownPlayers().values())
      if (player != null)
      {
        player.sendPacket(new NpcInfo(this, player));
      }
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.NpcInfo

     
      _overheadDummy = addSpawn(29052,174232,-88020,-5110,16384,false,0);
      _overheadDummy.setIsInvul(false);
      _overheadDummy.setIsImobilised(true);
      _overheadDummy.setCollisionHeight(600);
      _Zone.broadcastPacket(new NpcInfo(_overheadDummy, null));
     
      _portraitDummy1 = addSpawn(29052, 172450, -87890, -5100, 16048,false,0);
      _portraitDummy1.setIsImobilised(true);
      _portraitDummy1.setIsInvul(false);
     
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.NpcInfo

        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)
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.NpcInfo

    if(owner != null)
    {
      _owner = owner;
      setTitle(owner.getName());
      // broadcast the new title
      broadcastPacket(new NpcInfo(this, owner));

      owner.setTrainedBeast(this);

      // always and automatically follow the owner.
      getAI().startFollow(_owner, 100);
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.NpcInfo

    for(L2PcInstance player : getKnownList().getKnownPlayers().values())
    {
      player.sendPacket(new RelationChanged(this, getRelation(player), isAutoAttackable(player)));
     
      if(getPet()!=null){
        getPet().broadcastPacket(new NpcInfo(getPet(), null));
      }
    }
  }
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.