Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2Party


              }

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

              if(_teamEvent){
                int offset = Config.CTF_SPAWN_OFFSET;
                player.teleToLocation(_teamsX.get(_teams.indexOf(player._teamNameCTF))+Rnd.get(offset), _teamsY.get(_teams.indexOf(player._teamNameCTF))+Rnd.get(offset), _teamsZ.get(_teams.indexOf(player._teamNameCTF)));
View Full Code Here


    else if (status == DORMANT)
    {
      boolean party_check_success = true;
      boolean party_check = Config.K1_KAMA_CHECKPARTY;
     
      L2Party party = player.getParty();     
      if (party_check) {
       
        if ((!player.isInParty() || !player.getParty().isLeader(player)) || (player.getParty().getMemberCount() < Config.K1_KAMA_PARTY_SIZE)) {
          htmltext = "<html><body>You have to be LEADER of "+ Config.K1_KAMA_PARTY_SIZE +" member party.</body></html>";
          party_check_success = false;
        }
       
        if (player.isInParty() && player.getPvpKills() < Config.K1_KAMA_PVP_NEEDS) {
          htmltext = "<html><body>You need to have "+ Config.K1_KAMA_PVP_NEEDS +" Pvps.</body></html>";
          party_check_success = false;
        }
       
        if (player.isInParty() && player.isKamalokaStatus()) {
          htmltext = "<html><body>You can't join now wait some hours.</body></html>";
          TimeLimit.sendInfo(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.isKamalokaStatus()) {
              htmltext = "<html><body>Some party member can't join 4S Mission 1 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.sendInfo(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 (_hwidlist.contains(memberHwid)) {
              StatusChecker.checkStatuses(member);
              htmltext = "<html><body>Some Party member hwid is under 4S Mission 1 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, 600, false, false))
                continue;
             
              synchronized(_PlayersInside)
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)
    {
      _KillMinion++;
      if (_KillMinion == 1)
      {
        for (L2PcInstance member : party.getPartyMembers())
        {
          member.sendPacket(new ExShowScreenMessage("First Knight down, keep going !", 6*1000));
        }
      }
      if (_KillMinion == 4)
      {
        for (L2PcInstance member : party.getPartyMembers())
        {
          member.sendPacket(new ExShowScreenMessage("Almost near to final boss !!", 6*1000));
        }
      }
      if (Config.K1_MUST_MINIBOSSES_KILLED) {
        if ((_KillMinion == 4) && (_KillMinion2 == 1) && (_KillMinion3 == 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)
    {
      _KillMinion2++;
      if (_KillMinion2 == 1)
      {
        for (L2PcInstance member : party.getPartyMembers())
        {
          member.sendPacket(new ExShowScreenMessage("Another monster down! Good luck!", 6*1000));
        }
      }
      if (Config.K1_MUST_MINIBOSSES_KILLED) {
        if ((_KillMinion == 4) && (_KillMinion2 == 1) && (_KillMinion3 == 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)
    {
      _KillMinion3 ++;
      if (_KillMinion3 == 1)
      {
        if (Config.K1_MUST_MINIBOSSES_KILLED) {
          if ((_KillMinion == 4) && (_KillMinion2 == 1) && (_KillMinion3 == 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

    else if (status == DORMANT)
    {
      boolean party_check_success = true;
      boolean party_check = Config.K2_KAMA_CHECKPARTY;
     
      L2Party party = player.getParty();
     
      if (party_check) {
       
        if ((!player.isInParty() || !player.getParty().isLeader(player)) || (player.getParty().getMemberCount() < Config.K2_KAMA_PARTY_SIZE)) {
          htmltext = "<html><body>You have to be LEADER of "+ Config.K2_KAMA_PARTY_SIZE +" member party.</body></html>";
          party_check_success = false;
        }
       
        if (player.isInParty() && player.getPvpKills() < Config.K2_KAMA_PVP_NEEDS) {
          htmltext = "<html><body>You need to have "+ Config.K2_KAMA_PVP_NEEDS +" Pvps.</body></html>";
          party_check_success = false;
        }
       
        if (player.isInParty() && player.isKamaloka2Status()) {
          htmltext = "<html><body>You can't join now wait some hours.</body></html>";
          TimeLimit.sendInfo2(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.isKamaloka2Status()) {
              htmltext = "<html><body>Some party member can't join 4S Mission 2 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.sendInfo2(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 (_hwidlist2.contains(memberHwid)) {
              StatusChecker.checkStatuses(member);
              htmltext = "<html><body>Some Party member hwid is under 4S Mission 2 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(_PlayersInside2) {
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)
    {
      _KillMinions++;
      if (_KillMinions == 1)
      {
        for (L2PcInstance member : party.getPartyMembers())
        {
          member.sendPacket(new ExShowScreenMessage("First Knight down, keep going !", 6*1000));
        }
      }
      if (_KillMinions == 4)
      {
        for (L2PcInstance member : party.getPartyMembers())
        {
          member.sendPacket(new ExShowScreenMessage("Almost near to final boss !!", 6*1000));
        }
      }
      if (Config.K2_MUST_MINIBOSSES_KILLED) {
        if ((_KillMinions == 4) && (_KillMinions2 == 1) && (_KillMinions3 == 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)
    {
      _KillMinions2++;
      if (_KillMinions2 == 1)
      {
        for (L2PcInstance member : party.getPartyMembers())
        {
          member.sendPacket(new ExShowScreenMessage("Another monster down! Good luck!", 6*1000));
        }
      }
      if (Config.K2_MUST_MINIBOSSES_KILLED) {
        if ((_KillMinions == 4) && (_KillMinions2 == 1) && (_KillMinions3 == 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)
    {
      _KillMinions3 ++;
      if (_KillMinions3 == 1)
      {
        if (Config.K2_MUST_MINIBOSSES_KILLED) {
          if ((_KillMinions == 4) && (_KillMinions2 == 1) && (_KillMinions3 == 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

      {
        player.sendMessage("You cannot Logout while you are a participant in a Festival.");
        return false;
      }
     
      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

    if(activeChar.isInParty())
    {
      if (activeChar.getParty().isLeader(activeChar) && activeChar.getParty().isInCommandChannel())
      {
        L2CommandChannel channel = activeChar.getParty().getCommandChannel();
        L2Party party = activeChar.getParty();
        channel.removeParty(party);

        party.getLeader().sendPacket(new SystemMessage(SystemMessageId.LEFT_COMMAND_CHANNEL));
        channel.broadcastToChannelMembers(new SystemMessage(SystemMessageId.S1_PARTY_LEFT_COMMAND_CHANNEL).addString(party.getLeader().getName()));

        party = null;
        channel = null;
        return true;
      }
View Full Code Here

      return false;

    if(!activeChar.isInParty())
      return false;

    L2Party playerParty = activeChar.getParty();
    int memberCount = playerParty.getMemberCount();
    int lootDistribution = playerParty.getLootDistribution();
    String partyLeader = playerParty.getPartyMembers().get(0).getName();

    playerParty = null;

    activeChar.sendPacket(new SystemMessage(SystemMessageId.PARTY_INFORMATION));
View Full Code Here

      {
        player.sendMessage("You cannot Logout while you are a participant in a Festival.");
        return false;
      }
     
      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

        player.sendPacket(ActionFailed.STATIC_PACKET);
        sendPacket(RestartResponse.valueOf(false));
        return;
      }

      L2Party playerParty = player.getParty();
      if(playerParty != null)
      {
        player.getParty().broadcastToPartyMembers(SystemMessage.sendString(player.getName() + " has been removed from the upcoming festival."));
      }
    }
View Full Code Here

TOP

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

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.