Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Party$UpdatePositionTask


      captain.addStatFunc(new FuncMul(Stats.MAGIC_DEFENCE, 0x30, this, 5));
      captain.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, player, Rnd.get(1, 100));
    }
    if(teleto != null)
    {
      L2Party party = player.getParty();
      if(party != null)
      {
        for(L2Player partyMember : party.getPartyMembers())
        {
          partyMember.teleToLocation(teleto);
        }
      }
      else
View Full Code Here


      {
        activeChar.sendMessage("You cannot log out while you are a participant in a festival.");
        activeChar.sendActionFailed();
        return;
      }
      L2Party playerParty = activeChar.getParty();
      if(playerParty != null)
      {
        playerParty.broadcastMessageToPartyMembers(activeChar.getName() + " has been removed from the upcoming festival.");
      }
    }
    if(activeChar.isInOlympiadMode())
    {
      activeChar.sendMessage(new CustomMessage("l2p.gameserver.clientpackets.Logout.Olympiad", activeChar));
View Full Code Here

      if(Boolean.TRUE)
      {
        activeChar.sendMessage("Sorry, but party duels are currently disabled. If you know coords of duel stadium pleace contact developers.");
        return;
      }
      L2Party activeCharParty = activeChar.getParty();
      // Player must be in a party & the party leader
      if(activeCharParty == null || activeCharParty.isLeader(activeChar))
      {
        activeChar.sendMessage("You have to be the leader of a party in order to request a party duel.");
        return;
      }
      // Target must be in a party
      else if(!targetChar.isInParty())
      {
        activeChar.sendPacket(Msg.SINCE_THE_PERSON_YOU_CHALLENGED_IS_NOT_CURRENTLY_IN_A_PARTY_THEY_CANNOT_DUEL_AGAINST_YOUR_PARTY);
        return;
      }
      // Target may not be of the same party
      else if(activeCharParty.getPartyMembers().contains(targetChar))
      {
        activeChar.sendMessage("This player is a member of your own party.");
        return;
      }
      // Check if every player is ready for a duel
      for(L2Player temp : activeCharParty.getPartyMembers())
      {
        if(!Duel.checkIfCanDuel(activeChar, temp, false))
        {
          activeChar.sendMessage("Not all the members of your party are ready for a duel.");
          return;
View Full Code Here

      transaction.cancel();
      activeChar.sendPacket(Msg.TIME_EXPIRED, Msg.ActionFail);
      return;
    }
    L2Player requestor = transaction.getOtherPlayer(activeChar);
    L2Party party = requestor.getParty();
    transaction.cancel();
    if(party == null || party.getPartyLeader() == null)
    {
      activeChar.sendPacket(Msg.ActionFail);
      requestor.sendPacket(new JoinParty(0));
      return;
    }
    SystemMessage problem = activeChar.canJoinParty(requestor);
    if(problem != null)
    {
      activeChar.sendPacket(problem, Msg.ActionFail);
      requestor.sendPacket(new JoinParty(0));
      return;
    }
    requestor.sendPacket(new JoinParty(_response));
    if(_response == 1)
    {
      if(activeChar.isInZone(OlympiadStadia))
      {
        activeChar.sendPacket(Msg.A_PARTY_CANNOT_BE_FORMED_IN_THIS_AREA);
        requestor.sendPacket(Msg.A_PARTY_CANNOT_BE_FORMED_IN_THIS_AREA);
        return;
      }
      if(party.getMemberCount() >= L2Party.MAX_SIZE)
      {
        activeChar.sendPacket(Msg.PARTY_IS_FULL);
        requestor.sendPacket(Msg.PARTY_IS_FULL);
        return;
      }
      activeChar.joinParty(party);
    }
    else
      //activate garbage collection if there are no other members in party (happens when we were creating new one)
      if(party.getMemberCount() == 1)
      {
        requestor.setParty(null);
      }
  }
View Full Code Here

  {
    if(!partyLeader.isInParty())
    {
      return;
    }
    L2Party _party = partyLeader.getParty();
    if(_party == null)
    {
      return;
    }
    if(!_party.isInCommandChannel())
    {
      return;
    }
    members = new GArray<PartyMemberInfo>();
    for(L2Player _member : _party.getPartyMembers())
    {
      members.add(new PartyMemberInfo(_member.getName(), _member.getObjectId(), _member.getClassId().getId()));
    }
  }
View Full Code Here

    if(target.isInTransaction())
    {
      activeChar.sendPacket(new SystemMessage(SystemMessage.S1_IS_BUSY_PLEASE_TRY_AGAIN_LATER).addString(target.getName()));
      return;
    }
    L2Party activeParty = activeChar.getParty();
    if(activeParty.isInCommandChannel())
    {
      // Приглашение в уже существующий СС
      // Приглашать в СС может только лидер CC
      if(activeParty.getCommandChannel().getChannelLeader() != activeChar)
      {
        activeChar.sendPacket(Msg.YOU_DO_NOT_HAVE_AUTHORITY_TO_INVITE_SOMEONE_TO_THE_COMMAND_CHANNEL);
        return;
      }
      sendInvite(activeChar, target);
View Full Code Here

    if(pkiller == null || pkilled == null)
    {
      return;
    }
    Quest q = QuestManager.getQuest(_734_PierceThroughAShield.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

            prison.initSpawn(type3[Rnd.get(type3.length)], false);
            break;
          case BrandTheExile:
          case CommanderKoenig:
          case GergTheHunter:
            L2Party party = st.getPlayer().getParty();
            if(party != null)
            {
              for(L2Player member : party.getPartyMembers())
              {
                QuestState qs = member.getQuestState(getClass());
                if(qs != null && qs.isStarted())
                {
                  qs.giveItems(DungeonLeaderMark, RewardMarksCount / party.getMemberCount());
                  qs.playSound(SOUND_ITEMGET);
                  qs.getPlayer().sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber(5));
                }
              }
            }
View Full Code Here

    if(pkiller == null || pkilled == null)
    {
      return;
    }
    Quest q = QuestManager.getQuest(_735_MakeSpearsDull.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

      qs.setState(STARTED);
      qs.playSound(SOUND_ACCEPT);
    }
    else if(event.equalsIgnoreCase("ai_is_time_attack_reward_q0695_12.htm"))
    {
      L2Party party = player.getParty();
      if(party != null)
      {
        if(party.isLeader(player))
        {
          for(L2Player member : player.getParty().getPartyMembers())
          {
            QuestState qsp = member.getQuestState(this._name);
            if(qsp != null && qsp.getCond() == 2)
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.