Examples of PetInfo


Examples of lineage2.gameserver.network.serverpackets.PetInfo

  @Override
  public void onActionTargeted(final Player player, boolean forced)
  {
    if(getPlayer() == player)
    {
      player.sendPacket(new PetInfo(this).update());

      if(!player.isActionsDisabled())
      {
        player.sendPacket(new PetStatusShow(this));
      }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.PetInfo

        activeChar.sendPacket(new MagicSkillUser(activeChar, 2046, 1, 1000, 600000));
        activeChar.sendPacket(new SystemMessage(SystemMessageId.SUMMON_A_PET));
            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());

        ThreadPoolManager.getInstance().scheduleGeneral(new PetSummonFinalizer(activeChar, petSummon), 900);
View Full Code Here

Examples of net.sf.l2j.gameserver.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 net.sf.l2j.gameserver.serverpackets.PetInfo

        su.addAttribute(StatusUpdate.MAX_HP, getMaxHp());
        su.addAttribute(StatusUpdate.MAX_MP, getMaxMp());
        getActiveChar().broadcastPacket(su);

        // 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)
          getActiveChar().getControlItem().setEnchantLevel(getLevel());
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.PetInfo

                L2Summon summon = (L2Summon) object;

                // Check if the L2PcInstance is the owner of the Pet
                if (getActiveChar().equals(summon.getOwner()))
                {
                    getActiveChar().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)
                    {
                        getActiveChar().sendPacket(new PetItemList((L2PetInstance) summon));
View Full Code Here

Examples of net.sf.l2j.gameserver.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 net.sf.l2j.gameserver.serverpackets.PetInfo

        pet.getInventory().equipItem(item);

      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 net.sf.l2j.gameserver.serverpackets.PetInfo

            target.sendPacket(smsg);
          }
         
          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 net.sf.l2j.gameserver.serverpackets.PetInfo

        summon.spawnMe(activeChar.getX()+50, activeChar.getY()+100, activeChar.getZ());

      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

Examples of net.sf.l2j.gameserver.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));
          }
          else
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.