Examples of Alliance


Examples of lineage2.gameserver.model.pledge.Alliance

      }
    }
    for (Clan c : data)
    {
      String clanName = c.getName();
      Alliance alliance = c.getAlliance();
      if (alliance != null)
      {
        sm = new SystemMessage(SystemMessage.S1_S2_ALLIANCE).addString(clanName).addString(alliance.getAllyName());
      }
      else
      {
        sm = new SystemMessage(SystemMessage.S1_NO_ALLIANCE_EXISTS).addString(clanName);
      }
View Full Code Here

Examples of lineage2.gameserver.model.pledge.Alliance

    else
    {
      _name = player.getName();

      Clan clan = player.getClan();
      Alliance alliance = clan == null ? null : clan.getAlliance();
      //
      clan_id = clan == null ? 0 : clan.getClanId();
      clan_crest_id = clan == null ? 0 : clan.getCrestId();
      large_clan_crest_id = clan == null ? 0 : clan.getCrestLargeId();
      //
      ally_id = alliance == null ? 0 : alliance.getAllyId();
      ally_crest_id = alliance == null ? 0 : alliance.getAllyCrestId();

      cw_level = 0;
      title = player.getTitle();
    }
View Full Code Here

Examples of lineage2.gameserver.model.pledge.Alliance

    clan_rank = clan.getRank();
    clan_rep = clan.getReputationScore();
    crest_id = clan.getCrestId();
    ally_id = clan.getAllyId();
    atwar = clan.isAtWar();
    Alliance ally = clan.getAlliance();
    if (ally != null)
    {
      ally_name = ally.getAllyName();
      ally_crest = ally.getAllyCrestId();
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.pledge.Alliance

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Alliance ally = player.getAlliance();
    if (ally == null)
    {
      return;
    }
    int clancount = 0;
View Full Code Here

Examples of lineage2.gameserver.model.pledge.Alliance

      requestor.sendPacket(Msg.YOU_HAVE_FAILED_TO_INVITE_A_CLAN_INTO_THE_ALLIANCE);
      return;
    }
    try
    {
      Alliance ally = requestor.getAlliance();
      activeChar.sendPacket(Msg.YOU_HAVE_ACCEPTED_THE_ALLIANCE);
      activeChar.getClan().setAllyId(requestor.getAllyId());
      activeChar.getClan().updateClanInDB();
      ally.addAllyMember(activeChar.getClan(), true);
      ally.broadcastAllyStatus();
    }
    finally
    {
      request.done();
    }
View Full Code Here

Examples of lineage2.gameserver.model.pledge.Alliance

      writeS(clan.getLeaderName());
      writeD(clan.getCrestId());
      writeD(defenderClan._time);
      writeD(defenderClan._type);
      writeD(clan.getAllyId());
      Alliance alliance = clan.getAlliance();
      if (alliance != null)
      {
        writeS(alliance.getAllyName());
        writeS(alliance.getAllyLeaderName());
        writeD(alliance.getAllyCrestId());
      }
      else
      {
        writeS(StringUtils.EMPTY);
        writeS(StringUtils.EMPTY);
View Full Code Here

Examples of lineage2.gameserver.model.pledge.Alliance

    _hasFortress = clan.getHasFortress();
    _rank = clan.getRank();
    _reputation = clan.getReputationScore();
    _atClanWar = clan.isAtWarOrUnderAttack();

    Alliance ally = clan.getAlliance();

    if (ally != null)
    {
      _allianceObjectId = ally.getAllyId();
      _allianceName = ally.getAllyName();
      _allianceCrestId = ally.getAllyCrestId();
    }

    _members = new ArrayList<PledgePacketMember>(sub.size());

    for (UnitMember m : sub.getUnitMembers())
View Full Code Here

Examples of lineage2.gameserver.model.pledge.Alliance

    if (owner != null)
    {
      _isLeader = player.isGM() || owner.getLeaderId(Clan.SUBUNIT_MAIN_CLAN) == player.getObjectId();
      _ownerName = owner.getName();
      _leaderName = owner.getLeaderName(Clan.SUBUNIT_MAIN_CLAN);
      Alliance ally = owner.getAlliance();
      if (ally != null)
      {
        _allyId = ally.getAllyId();
        _allyName = ally.getAllyName();
      }
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.pledge.Alliance

        _title = player.getTitle();
        _title_color = player.getTitleColor();
      }

      Clan clan = player.getClan();
      Alliance alliance = clan == null ? null : clan.getAlliance();
      //
      clan_id = clan == null ? 0 : clan.getClanId();
      clan_crest_id = clan == null ? 0 : clan.getCrestId();
      large_clan_crest_id = clan == null ? 0 : clan.getCrestLargeId();
      //
      ally_id = alliance == null ? 0 : alliance.getAllyId();
      ally_crest_id = alliance == null ? 0 : alliance.getAllyCrestId();

      cw_level = 0;
    }

    if (player.isMounted())
View Full Code Here

Examples of lineage2.gameserver.model.pledge.Alliance

      writeS(clan.getName());
      writeS(clan.getLeaderName());
      writeD(clan.getCrestId());
      writeD((int) (siegeClan.getDate() / 1000L));

      Alliance alliance = clan.getAlliance();
      writeD(clan.getAllyId());
      if (alliance != null)
      {
        writeS(alliance.getAllyName());
        writeS(alliance.getAllyLeaderName());
        writeD(alliance.getAllyCrestId());
      }
      else
      {
        writeS(StringUtils.EMPTY);
        writeS(StringUtils.EMPTY);
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.