Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Summon.unSummon()


      if(player.getPet() != null)
      {
        L2Summon summon = player.getPet();
        if(summon.isPet())
        {
          summon.unSummon();
        }
        else
        {
          summon.getEffectList().stopAllEffects();
        }
View Full Code Here


    {
      return;
    }
    if(pet.isPet() || !onlyPets)
    {
      pet.unSummon();
    }
  }

  public static L2NpcInstance spawn(Location loc, int npcId)
  {
View Full Code Here

      }
      DatabaseUtils.closeDatabaseSR(statement, rset);
      L2Summon summon = owner.getPet();
      if(summon != null && summon.getObjectId() == petObjectId)
      {
        summon.unSummon();
      }
      L2Player player = owner.getPlayer();
      if(player != null && player.isMounted() && player.getMountObjId() == petObjectId)
      {
        player.setMount(0, 0, 0);
View Full Code Here

        return;
      }
      L2Summon summon = owner.getPet();
      if(summon != null && summon.getObjectId() == petObjectId)
      {
        summon.unSummon();
      }
      L2Player player = owner.getPlayer();
      if(player != null && player.isMounted() && player.getMountObjId() == petObjectId)
      {
        player.setMount(0, 0, 0);
View Full Code Here

        if(pet.isPet() && pet.getCurrentFed() < 0.55 * pet.getMaxFed())
        {
          activeChar.sendPacket(Msg.YOU_CANNOT_RESTORE_HUNGRY_PETS, Msg.ActionFail);
          break;
        }
        pet.unSummon();
        break;
      case 38: // Mount
        if(activeChar.getTransformation() != 0)
        {
          activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
View Full Code Here

        }
        else
        {
          activeChar.getEffectList().stopEffect(L2Skill.SKILL_EVENT_TIMER);
          activeChar.setMount(pet.getTemplate().npcId, pet.getObjectId(), pet.getLevel());
          pet.unSummon();
        }
        break;
      case 52: // Отзыв саммона
        if(pet.isInCombat())
        {
View Full Code Here

        {
          activeChar.sendPacket(Msg.A_PET_CANNOT_BE_SENT_BACK_DURING_BATTLE, Msg.ActionFail);
        }
        else
        {
          pet.unSummon();
        }
        break;
      case 53:
      case 54: // Передвинуть пета к цели
        if(target != null && pet != target && !pet.isMovementDisabled())
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.