Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2Party$PositionBroadcast


      {
        player.sendMessage("You cannot Logout while you are a participant in a Festival.");
        return;
      }
     
      L2Party playerParty = player.getParty();
      if (playerParty != null)
        player.getParty().broadcastToPartyMembers(SystemMessage.sendString(player.getName() + " has been removed from the upcoming Festival."));
    }
   
    if (player.isFlying())
View Full Code Here


  {
    SystemMessage msg;
   
    if (!target.isProcessingRequest())
    {
      requestor.setParty(new L2Party(requestor, _itemDistribution));
     
      requestor.onTransactionRequest(target);
      target.sendPacket(new AskJoinParty(requestor.getName(), _itemDistribution));
      requestor.getParty().setPendingInvitation(true);
     
View Full Code Here

  {
    L2PcInstance player = getClient().getActiveChar();
    if (player == null)
      return;

    L2Party party = player.getParty();
   
    if (party != null)
    {
      if (party.isInDimensionalRift() && !party.getDimensionalRift().getRevivedAtWaitingRoom().contains(player))
        player.sendMessage("You can't exit party when you are in Dimensional Rift.");
      else
      {
        party.removePartyMember(player);
       
        if (player.isInPartyMatchRoom())
        {
          PartyMatchRoom _room = PartyMatchRoomList.getInstance().getPlayerRoom(player);
          if (_room != null)
View Full Code Here

      return;

    //activeChar is in a Party?
    if(activeChar.isInParty())
    {
      L2Party activeParty = activeChar.getParty();
      //activeChar is PartyLeader? && activeChars Party is already in a CommandChannel?
      if (activeParty.getLeader().equals(activeChar))
      {
        // if activeChars Party is in CC, is activeChar CCLeader?
        if(activeParty.isInCommandChannel() && activeParty.getCommandChannel().getChannelLeader().equals(activeChar))
        {
          //in CC and the CCLeader
          //target in a party?
          if(player.isInParty())
          {
            //targets party already in a CChannel?
            if(player.getParty().isInCommandChannel())
              activeChar.sendPacket(new SystemMessage(SystemMessageId.S1_ALREADY_MEMBER_OF_COMMAND_CHANNEL).addString(player.getName()));
            else
              askJoinMPCC(activeChar, player);
          }
          else
            activeChar.sendMessage(player.getName() + " doesn't have party and cannot be invited to Command Channel.");

        }
        else if(activeParty.isInCommandChannel() && !activeParty.getCommandChannel().getChannelLeader().equals(activeChar))
          activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_INVITE_TO_COMMAND_CHANNEL));
        else
        {
          //target in a party?
          if(player.isInParty())
View Full Code Here

        }
       
        // Remove player from his party
        if (player.getParty() != null)
        {
          L2Party party = player.getParty();
          party.removePartyMember(player);
        }

        player.checkItemRestriction();

        // Remove shot automation
View Full Code Here

      return null;

    if(player.getParty() == null || player.getParty().getPartyMembers().size() == 0)
      return player;

    L2Party party = player.getParty();

    return party.getPartyMembers().get(Rnd.get(party.getPartyMembers().size()));
  }
View Full Code Here

    if(var == null)
      return getRandomPartyMember(player);

    // normal cases...if the player is not in a party, check the player's state
    QuestState temp = null;
    L2Party party = player.getParty();

    // if this player is not in a party, just check if this player instance matches the conditions itself
    if(party == null || party.getPartyMembers().size() == 0)
    {
      temp = player.getQuestState(getName());
      if(temp != null && temp.get(var) != null && ((String) temp.get(var)).equalsIgnoreCase(value))
        return player; // match

      return null; // no match
    }

    // if the player is in a party, gather a list of all matching party members (possibly
    // including this player)
    FastList<L2PcInstance> candidates = new FastList<L2PcInstance>();

    // get the target for enforcing distance limitations.
    L2Object target = player.getTarget();
    if(target == null)
    {
      target = player;
    }

    for(L2PcInstance partyMember : party.getPartyMembers())
    {
      temp = partyMember.getQuestState(getName());
      if(temp != null && temp.get(var) != null && ((String) temp.get(var)).equalsIgnoreCase(value) && partyMember.isInsideRadius(target, 1500, true, false))
      {
        candidates.add(partyMember);
View Full Code Here

    else if (status == DORMANT)
    {
      boolean party_check_success = true;
      boolean party_check = Config.K3_KAMA_CHECKPARTY;
     
      L2Party party = player.getParty();
     
      if (party_check) {
       
        if ((!player.isInParty() || !player.getParty().isLeader(player)) || (player.getParty().getMemberCount() < Config.K3_KAMA_PARTY_SIZE)) {
          htmltext = "<html><body>You have to be LEADER of "+ Config.K3_KAMA_PARTY_SIZE +" member party.</body></html>";
          party_check_success = false;
        }
       
        if (player.isInParty() && player.getPvpKills() < Config.K3_KAMA_PVP_NEEDS) {
          htmltext = "<html><body>You need to have "+ Config.K3_KAMA_PVP_NEEDS +" Pvps.</body></html>";
          party_check_success = false;
        }
       
        if (player.isInParty() && player.isKamaloka3Status()) {
          htmltext = "<html><body>You can't join now wait some hours.</body></html>";
          TimeLimit.sendInfo3(player);
          party_check_success = false;
        }
       
        if (player.isInParty()) {         
          for (L2PcInstance member : party.getPartyMembers())
          {
            if (member != member.getParty().getLeader()) {
              if (!Config.K1_ALLOW_HWIDBOX_KAMA) {
                if (player.getHWid()!=null && player.getHWid().length()!=0) {
                  if(L2GameClient.isSameHWID(player.getHWid(),member.getHWid())) {
                    htmltext = "<html><body>Only one character per PC is available</body></html>";
                    party_check_success = false;
                  }
                  else if(player._inEventTvT || player._inEventDM || player._inEventRaid)
                  {
                    htmltext = "<html><body>You cannot join while register in another event!</body></html>";
                    party_check_success = false;
                  }
                  else if(member._inEventTvT ||member._inEventDM || member._inEventRaid)
                  {
                    htmltext = "<html><body>Your party members is already register in another event!</body></html>";
                    party_check_success = false;
                  }
                  else if(Olympiad.getInstance().isRegistered(player) || player.isInOlympiadMode())
                  {
                    htmltext = "<html><body>You're registered in olympiad!</body></html>";
                    party_check_success = false;
                  }
                  else if(Olympiad.getInstance().isRegistered(member) || member.isInOlympiadMode())
                  {
                    htmltext = "<html><body>Your party members is registered in olympiad!</body></html>";
                    party_check_success = false;
                  }
                  else if(LastManStanding.players.contains(player))
                  {
                    htmltext = "<html><body>You are registered in LMS event.</body></html>";
                    party_check_success = false;
                  }
                  else if(LastManStanding.players.contains(member))
                  {
                    htmltext = "<html><body>Your party member is registered in LMS event.</body></html>";
                    party_check_success = false;
                  }
                  else if(player.isAio() || member.isAio())
                  {
                    htmltext = "<html><body>Aio buffers cannot join!</body></html>";
                    party_check_success = false;
                  }
                }
              }
            }
           
            if (member.getPvpKills() < Config.K1_KAMA_PVP_NEEDS) {
              htmltext = "<html><body>Some party member can't join in event because he dont have "+Config.K1_KAMA_PVP_NEEDS+" pvps </body></html>";
              party_check_success = false;
            }
           
            if (member.isKamaloka3Status()) {
              htmltext = "<html><body>Some party member can't join 4S Mission 3 event. He is in time restriction.<br><center>Or try again in 3 seconds. Hwids has been refreshed.</center></body></html>";
              StatusChecker.checkStatuses(member);
              TimeLimit.sendInfo3(member);
              party_check_success = false;
            }
           
            if (!member.isInsideRadius(npc, 500, false, false)) {
              htmltext = "<html><body>All members must be near to 4S Manager.</body></html>";
              party_check_success = false;
            }
           
            String memberHwid = member.getHWid();           
            if (_hwidlist3.contains(memberHwid)) {
              StatusChecker.checkStatuses(member);
              htmltext = "<html><body>Some Party member hwid is under 4S Mission 3 time restriction.<br><center>Or try again in 3 seconds. Hwids has been refreshed.</center></body></html>";
              party_check_success = false;
            }
          }
        }
      }
     
      if (party_check_success) {

          if (player.getParty() != null) {
            GrandBossManager.getInstance().setBossStatus(KAMABOSS, OCCUPIED);
           
            for (L2PcInstance member : party.getPartyMembers())
            {
              if (!member.isInsideRadius(npc, 700, false, false))
                continue;
             
              synchronized(_PlayersInside3) {
View Full Code Here

    if(state == null)
      return getRandomPartyMember(player);

    // normal cases...if the player is not in a partym check the player's state
    QuestState temp = null;
    L2Party party = player.getParty();
    // if this player is not in a party, just check if this player instance matches the conditions itself
    if(party == null || party.getPartyMembers().size() == 0)
    {
      temp = player.getQuestState(getName());
      if(temp != null && temp.getState() == state)
        return player; // match

      return null; // no match
    }

    // if the player is in a party, gather a list of all matching party members (possibly
    // including this player)
    FastList<L2PcInstance> candidates = new FastList<L2PcInstance>();

    // get the target for enforcing distance limitations.
    L2Object target = player.getTarget();
    if(target == null)
    {
      target = player;
    }

    for(L2PcInstance partyMember : party.getPartyMembers())
    {
      temp = partyMember.getQuestState(getName());

      if(temp != null && temp.getState() == state && partyMember.isInsideRadius(target, 1500, true, false))
      {
View Full Code Here

 
  @Override
  public String onKill (L2NpcInstance npc, L2PcInstance killer, boolean isPet)
  {
    Integer status = GrandBossManager.getInstance().getBossStatus(KAMABOSS);
    L2Party party = killer.getParty();

   
    if (npc.getNpcId() == KAMABOSS && status == OCCUPIED)
    {
      startQuestTimer("kama_death", 1000, npc, null);     
    }
   
    else if (npc.getNpcId() == MINI1)
    {
      _KilMinion++;
      if (_KilMinion == 1)
      {
        for (L2PcInstance member : party.getPartyMembers())
        {
          member.sendPacket(new ExShowScreenMessage("First Knight down, keep going !", 6*1000));
        }
      }
      if (_KilMinion == 4)
      {
        for (L2PcInstance member : party.getPartyMembers())
        {
          member.sendPacket(new ExShowScreenMessage("Almost near to final boss !!", 6*1000));
        }
      }
      if (Config.K3_MUST_MINIBOSSES_KILLED) {
        if ((_KilMinion == 4) && (_KilMinion2 == 1) && (_KilMinion3 == 1))
        {
          for (L2PcInstance member : party.getPartyMembers())
          {
            member.sendPacket(new ExShowScreenMessage("Final Boss has been spawned!", 6*1000));
          }
          startQuestTimer("kama_spawn", 1000, npc, null);
          startQuestTimer("minions_death", 1000, npc, null);
        }
      }
    }
   
    else if (npc.getNpcId() == MINI2)
    {
      _KilMinion2++;
      if (_KilMinion2 == 1)
      {
        for (L2PcInstance member : party.getPartyMembers())
        {
          member.sendPacket(new ExShowScreenMessage("Another monster down! Good luck!", 6*1000));
        }
      }
      if (Config.K3_MUST_MINIBOSSES_KILLED) {
        if ((_KilMinion == 4) && (_KilMinion2 == 1) && (_KilMinion3 == 1))
        {
          for (L2PcInstance member : party.getPartyMembers())
          {
            member.sendPacket(new ExShowScreenMessage("Final Boss has been spawned!", 6*1000));
          }
          startQuestTimer("kama_spawn", 1000, npc, null);
          startQuestTimer("minions_death", 1000, npc, null);
        }
      }
     
    }
   
    else if (npc.getNpcId() == MINI3)
    {
      _KilMinion3 ++;
      if (_KilMinion3 == 1)
      {
        if (Config.K3_MUST_MINIBOSSES_KILLED) {
          if ((_KilMinion == 4) && (_KilMinion2 == 1) && (_KilMinion3 == 1))
          {
            for (L2PcInstance member : party.getPartyMembers())
            {
              member.sendPacket(new ExShowScreenMessage("Final Boss has been spawned!", 6*1000));
            }
            startQuestTimer("kama_spawn", 1000, npc, null);
            startQuestTimer("minions_death", 1000, npc, null);
          } else {
            for (L2PcInstance member : party.getPartyMembers())
            {
              member.sendPacket(new ExShowScreenMessage("Kill all Minions before spawn Final boss!", 6*1000));
            }
          }
        } else {
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.L2Party$PositionBroadcast

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.