Package net.sf.l2j.gameserver.model

Examples of net.sf.l2j.gameserver.model.L2Summon.unSummon()


      return;

    L2Summon summon = _playerInstance.getPet();

    if (summon != null)
      summon.unSummon(_playerInstance);

    for (L2Effect effect : _playerInstance.getAllEffects())
    {
      if (effect != null)
        effect.exit();
View Full Code Here


                  {
                    L2PcInstance summonOwner = null;
                    L2Summon summonPet = null;
                    summonOwner = ((L2Summon)target).getOwner();
                    summonPet = summonOwner.getPet();
                    summonPet.unSummon(summonOwner);
                        SystemMessage sm = new SystemMessage(SystemMessageId.LETHAL_STRIKE);
                summonOwner.sendPacket(sm);
                  }
                  else
                    {
View Full Code Here

              if(!activeChar.disarmWeapons()) return false;
                Ride mount = new Ride(activeChar.getObjectId(), Ride.ACTION_MOUNT, pet.getTemplate().npcId);
                Broadcast.toSelfAndKnownPlayersInRadius(activeChar, mount, 810000/*900*/);
                activeChar.setMountType(mount.getMountType());
                activeChar.setMountObjectID(pet.getControlItemId());
                pet.unSummon(activeChar);
            }
        }
        else if (activeChar.isRentedPet())
        {
          activeChar.stopRentPet();
View Full Code Here

        {
          L2Summon summon = player.getPet();
          summon.stopAllEffects();
         
          if (summon instanceof L2PetInstance)
            summon.unSummon(player);
          }
               
                /*if (player.getCubics() != null)
                {
                    for(L2CubicInstance cubic : player.getCubics().values())
View Full Code Here

          {
            L2PetInstance petInst = (L2PetInstance)pet;

            // if the pet is more than 40% fed
            if (petInst.getCurrentFed() > (petInst.getMaxFed() * 0.40))
              pet.unSummon(activeChar);
            else
              activeChar.sendPacket(new SystemMessage(SystemMessageId.YOU_CANNOT_RESTORE_HUNGRY_PETS));
          }
        }
      }
View Full Code Here

          if(!activeChar.disarmWeapons()) return;
          Ride mount = new Ride(activeChar.getObjectId(), Ride.ACTION_MOUNT, pet.getTemplate().npcId);
          activeChar.broadcastPacket(mount);
          activeChar.setMountType(mount.getMountType());
          activeChar.setMountObjectID(pet.getControlItemId());
          pet.unSummon(activeChar);
        }
      }
      else if (activeChar.isRentedPet())
      {
        activeChar.stopRentPet();
View Full Code Here

      activeChar.sendPacket(new RecipeShopManageList(activeChar, false));
      break;
    case 52: // unsummon
      if (pet != null && pet instanceof L2SummonInstance)
        pet.unSummon(activeChar);
      break;
    case 53: // move to target
      if (target != null && pet != null && pet != target && !pet.isMovementDisabled())
      {
        pet.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO,
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.