Examples of unSummon()


Examples of com.l2jfrozen.gameserver.model.L2Summon.unSummon()

              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

Examples of com.l2jfrozen.gameserver.model.L2Summon.unSummon()

            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);

            if(activeChar.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND) != null || activeChar.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LRHAND) != null)
            {
              if(activeChar.isFlying())
              {
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Summon.unSummon()

          {
            activeChar.sendMessage("You cannot despawn a summon during combat."); // Message like L2OFF
          }
          else
          {
            pet.unSummon(activeChar);
          }
        }
        break;
      case 53: // move to target
        if(target != null && pet != null && pet != target && !pet.isMovementDisabled())
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Summon.unSummon()

        {
          L2Summon summon = player.getPet();
          summon.stopAllEffects();
         
          if (summon instanceof L2PetInstance)
            summon.unSummon(player);
        }

        // Remove Tamed Beast
        if (player.getTrainedBeast() != null)
        {
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Summon.unSummon()

                  for(L2Effect e : summon.getAllEffects())
                    if(e != null)
                      e.exit(true);

                  if(summon instanceof L2PetInstance)
                    summon.unSummon(player);
                }
              }

              if(Config.CTF_ON_START_REMOVE_ALL_EFFECTS)
              {
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Summon.unSummon()

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

Examples of com.l2jfrozen.gameserver.model.L2Summon.unSummon()

        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);
        mount = null;

        if(activeChar.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND) != null || activeChar.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LRHAND) != null)
        {
          if(activeChar.setMountType(0))
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Summon.unSummon()

                {
                  L2Summon summon = player.getPet();
                  summon.stopAllEffects();
                 
                  if (summon instanceof L2PetInstance)
                    summon.unSummon(player);
                }
              }
             
              if (Config.DM_ON_START_REMOVE_ALL_EFFECTS)
              {
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Summon.unSummon()

                  L2Summon summon = player.getPet();
                 
                  summon.stopAllEffects();
                 
                  if(summon instanceof L2PetInstance)
                    summon.unSummon(player);
                }
              }

              if(Config.TVT_ON_START_REMOVE_ALL_EFFECTS)
              {
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Summon.unSummon()

                for (L2Effect e : summon.getAllEffects())
                  if (e != null)
                    e.exit();

                if (summon instanceof L2PetInstance)
                  summon.unSummon(player);
              }
            }

            if (Config.RAID_ON_START_REMOVE_ALL_EFFECTS)
            {
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.