Package lineage2.gameserver.model.pledge

Examples of lineage2.gameserver.model.pledge.Alliance


     * Method runImpl.
     */
    @Override
    public void runImpl()
    {
      final NpcInstance actor = getActor();
      if (actor.getNpcState() == 1)
      {
        actor.setNpcState(2);
      }
      else
      {
        actor.setNpcState(1);
      }
    }
View Full Code Here


      }
    }
    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

    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

    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

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

      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

      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

    _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

    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

        _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

TOP

Related Classes of lineage2.gameserver.model.pledge.Alliance

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.