Examples of PetInfo


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

      }

      PetItemList pil = new PetItemList(pet);
      activeChar.sendPacket(pil);

      PetInfo pi = new PetInfo(pet);
      activeChar.sendPacket(pi);
      // The PetInfo packet wipes the PartySpelled (list of active spells' icons).  Re-add them
      pet.updateEffectIcons(true);
    }
    else
View Full Code Here

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

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

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

    L2Summon summon = null;
    if (this instanceof L2Summon)
    {
      summon = (L2Summon) this;
      player = summon.getOwner();
      summon.getOwner().sendPacket(new PetInfo(summon));
    }
   
    // Create the main packet if needed
    MagicEffectIcons mi = null;
    if (!partyOnly)
View Full Code Here

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

              smsg = null;
            }

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

      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
    if(pet instanceof L2PetInstance)
View Full Code Here

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

    /* Micht : Use of PetInfo for C5
    StatusUpdate su = new StatusUpdate(getActiveChar().getObjectId());
    su.addAttribute(StatusUpdate.EXP, getExp());
    getActiveChar().broadcastPacket(su);
    */
    getActiveChar().broadcastPacket(new PetInfo(getActiveChar()));
    // The PetInfo packet wipes the PartySpelled (list of active  spells' icons).  Re-add them
    getActiveChar().updateEffectIcons(true);

    return true;
  }
View Full Code Here

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

    su.addAttribute(StatusUpdate.MAX_MP, getMaxMp());
    getActiveChar().broadcastPacket(su);
    su = null;

    // Send a Server->Client packet PetInfo to the L2PcInstance
    getActiveChar().getOwner().sendPacket(new PetInfo(getActiveChar()));
    // The PetInfo packet wipes the PartySpelled (list of active  spells' icons).  Re-add them
    getActiveChar().updateEffectIcons(true);

    if(getActiveChar().getControlItem() != null)
    {
View Full Code Here

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

       
        _activeChar.setPet(petSummon);
       
        L2World.getInstance().storeObject(petSummon);
        petSummon.spawnMe(_activeChar.getX() + 50, _activeChar.getY() + 100, _activeChar.getZ());
        _activeChar.sendPacket(new PetInfo(petSummon));
        petSummon.startFeed(false);
        _item.setEnchantLevel(petSummon.getLevel());
       
        if (petSummon.getCurrentFed() <= 0)
        {
View Full Code Here

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

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

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

    }

    summon.setFollowStatus(true);
    summon.setShowSummonAnimation(false); // addVisibleObject created the info packets with summon animation
    // if someone comes into range now, the animation shouldnt show any more
    activeChar.sendPacket(new PetInfo(summon));
  }
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.