Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Party$UpdatePositionTask


    String refName = getReflection().getName();
    if(refName.contains("Kamaloka"))
    {
      if(Config.ALT_KAMALOKA_LIMITS.equalsIgnoreCase("Leader"))
      {
        L2Party p = killer.getPlayer().getParty();
        if(p != null)
        {
          p.getPartyLeader().setVar(refName, String.valueOf(System.currentTimeMillis()));
        }
      }
      else
      {
        for(L2Player p : L2World.getAroundPlayers(L2ReflectionBossInstance.this))
        {
          if(p != null)
          {
            p.setVar(refName, String.valueOf(System.currentTimeMillis()));
          }
        }
      }
    }
    if(_manaRegen != null)
View Full Code Here


    if(pkiller == null || pkilled == null)
    {
      return;
    }
    Quest q = QuestManager.getQuest(_738_DestroyKeyTargets.class);
    L2Party party = pkiller.getParty();
    if(party == null)
    {
      takeQuest(q, pkilled, pkiller);
    }
    else
    {
      for(L2Player member : party.getPartyMembers())
      {
        if(member != null && member.isInRange(pkiller, 2000))
        {
          takeQuest(q, pkilled, member);
        }
View Full Code Here

    if(!topDamager.isPlayable())
    {
      return;
    }
    L2Player topDamagerPlayer = topDamager.getPlayer();
    L2Party associatedParty = topDamagerPlayer.getParty();
    if(associatedParty == null)
    {
      return;
    }
    L2Player partyLeader = associatedParty.getPartyLeader();
    if(partyLeader == null)
    {
      return;
    }
    L2ItemInstance bloodOfferings = ItemTable.getInstance().createItem(SevenSignsFestival.FESTIVAL_BLOOD_OFFERING);
View Full Code Here

      }
      player.setTarget(null);
      player.setIsInOlympiadMode(true);
      if(player.getParty() != null)
      {
        L2Party party = player.getParty();
        party.oustPartyMember(player);
      }
      L2Zone zone = ZoneManager.getInstance().getZoneById(L2Zone.ZoneType.OlympiadStadia, 3001 + _game.getId(), false);
      int[] tele = zone.getSpawns().get(_side - 1);
      player.teleToLocation(tele[0], tele[1], tele[2], 0);
      if(_type == CompType.TEAM_RANDOM || _type == CompType.TEAM)
View Full Code Here

          }
          if(party_waiting_list.size() == 0)
          {
            return;
          }
          L2Party next = party_waiting_list.get(Rnd.get(party_waiting_list.size() - 1));
          for(L2Player member : next.getPartyMembers())
          {
            if(member.getLevel() > getMaxLevel() || member.getLevel() < getMinLevel())
            {
              next.broadcastToPartyMembers(new SystemMessage(SystemMessage.C1S_LEVEL_REQUIREMENT_IS_NOT_SUFFICIENT_AND_CANNOT_BE_ENTERED).addName(member));
              return;
            }
            if(member.isCursedWeaponEquipped())
            {
              next.broadcastToPartyMembers(new SystemMessage(SystemMessage.C1S_QUEST_REQUIREMENT_IS_NOT_SUFFICIENT_AND_CANNOT_BE_ENTERED).addName(member));
              return;
            }
            int[] teleloc = getFreeWaitingRoom();
            if(teleloc[0] == 0)
            {
              Log.add("bug cannot find teleloc for coliseum id: " + getId(), "UC");
              return;
            }
            teleportToWaitingRoom(next, teleloc);
          }
          if(party_waiting_list.size() < 2)
          {
            return;
          }
          L2Party next2 = party_waiting_list.get(Rnd.get(party_waiting_list.size() - 1));
          while(next2 == next)
          {
            next2 = party_waiting_list.get(Rnd.get(party_waiting_list.size() - 1));
          }
          next = next2;
View Full Code Here

    {
      timer.cancel();
    }
    killRiftTimer = null;
    _completedRooms = null;
    L2Party party = getParty();
    if(party != null)
    {
      party.setDimensionalRift(null);
    }
    super.collapse();
  }
View Full Code Here

      {
        activeChar.sendMessage(new CustomMessage("l2p.gameserver.clientpackets.RequestRestart.Festival", activeChar));
        activeChar.sendPacket(RestartResponse.FAIL, Msg.ActionFail);
        return;
      }
      L2Party playerParty = activeChar.getParty();
      if(playerParty != null)
      {
        playerParty.broadcastMessageToPartyMembers(activeChar.getName() + " has been removed from the upcoming festival.");
      }
    }
    if(getClient() != null)
    {
      getClient().setState(GameClientState.AUTHED);
View Full Code Here

        if(_teamBasedRegisters.containsValue(noble.getObjectId()))
        {
          noble.sendPacket(new SystemMessage(SystemMessage.C1_IS_ALREADY_REGISTERED_ON_THE_WAITING_LIST_FOR_THE_NON_CLASS_LIMITED_MATCH_EVENT).addName(noble));
          return false;
        }
        L2Party party = noble.getParty();
        if(party == null || party.getMemberCount() != 3)
        {
          return false;
        } // TODO message
        for(L2Player member : party.getPartyMembers())
        {
          if(!member.isNoble())
          {
            noble.sendPacket(Msg.ONLY_NOBLESS_CAN_PARTICIPATE_IN_THE_OLYMPIAD);
            return false;
          }
        }
        _teamBasedRegisters.putAll(noble.getObjectId(), party.getPartyMembersObjIds());
        noble.sendPacket(Msg.YOU_HAVE_REGISTERED_ON_THE_WAITING_LIST_FOR_THE_NON_CLASS_LIMITED_TEAM_MATCH_EVENT);
        break;
      }
    }
    return true;
View Full Code Here

      if(player != null)
      {
        list.add(player);
        if(player.getParty() != null)
        {
          L2Party party = player.getParty();
          party.oustPartyMember(player);
        }
      }
    }
    if(list.size() <= 1)
    {
      return;
    }
    L2Player leader = list.get(0);
    if(leader == null)
    {
      return;
    }
    L2Party party = new L2Party(leader, 0);
    leader.setParty(party);
    for(L2Player player : list)
    {
      if(player != leader)
      {
View Full Code Here

    return true;
  }

  public static void destroyItems(L2Player player)
  {
    L2Party party = player.getParty();
    if(party != null)
    {
      for(L2Player pc : party.getPartyMembers())
      {
        pc.getInventory().destroyItemByItemId(SILVER_HEMOCYTE, 10, true);
      }
    }
    else
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.L2Party$UpdatePositionTask

Copyright © 2018 www.massapicom. 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.