Examples of JoinPledge


Examples of com.l2jfrozen.gameserver.network.serverpackets.JoinPledge

      RequestJoinPledge requestPacket = (RequestJoinPledge) requestor.getRequest().getRequestPacket();
      L2Clan clan = requestor.getClan();
      // we must double check this cause during response time conditions can be changed, i.e. another player could join clan
      if (clan != null && clan.checkClanJoinCondition(requestor, activeChar, requestPacket.getPledgeType()))
      {
        JoinPledge jp = new JoinPledge(requestor.getClanId());
        activeChar.sendPacket(jp);
       
        activeChar.setPledgeType(requestPacket.getPledgeType());
       
        if (requestPacket.getPledgeType() == L2Clan.SUBUNIT_ACADEMY)
View Full Code Here

Examples of l2p.gameserver.serverpackets.JoinPledge

    }
    if(_response == 1)
    {
      if(activeChar.canJoinClan())
      {
        activeChar.sendPacket(new JoinPledge(requestor.getClanId()));
        L2Clan clan = requestor.getClan();
        clan.addClanMember(activeChar);
        activeChar.setClan(clan);
        clan.getClanMember(activeChar.getName()).setPlayerInstance(activeChar);
        if(clan.isAcademy(activeChar.getPledgeType()))
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.JoinPledge

      player.sendPacket(SystemMsg.AFTER_LEAVING_OR_HAVING_BEEN_DISMISSED_FROM_A_CLAN_YOU_MUST_WAIT_AT_LEAST_A_DAY_BEFORE_JOINING_ANOTHER_CLAN);
      return;
    }
    try
    {
      player.sendPacket(new JoinPledge(requestor.getClanId()));
      int pledgeType = request.getInteger("pledgeType");
      SubUnit subUnit = clan.getSubUnit(pledgeType);
      if (subUnit == null)
      {
        return;
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.JoinPledge

      RequestJoinPledge requestPacket = (RequestJoinPledge) requestor.getRequest().getRequestPacket();
          L2Clan clan = requestor.getClan();
      // we must double check this cause during response time conditions can be changed, i.e. another player could join clan
      if (clan.checkClanJoinCondition(requestor, activeChar, requestPacket.getPledgeType()))
          {
        JoinPledge jp = new JoinPledge(requestor.getClanId());
        activeChar.sendPacket(jp);

        activeChar.setPledgeType(requestPacket.getPledgeType());
        if(requestPacket.getPledgeType() == L2Clan.SUBUNIT_ACADEMY)
        {
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.