Examples of Castle


Examples of net.sf.l2j.gameserver.model.entity.Castle

    {
        L2PcInstance activeChar = getClient().getActiveChar();
        if(activeChar == null) return;
        if (!activeChar.isClanLeader()) return;

        Castle castle = CastleManager.getInstance().getCastleById(_castleId);
        if (castle == null) return;

        if (_isJoining == 1)
        {
          if (System.currentTimeMillis() < activeChar.getClan().getDissolvingExpiryTime())
          {
            activeChar.sendPacket(new SystemMessage(SystemMessageId.CANT_PARTICIPATE_IN_SIEGE_WHILE_DISSOLUTION_IN_PROGRESS));
            return;
          }
            if (_isAttacker == 1)
                castle.getSiege().registerAttacker(activeChar);
            else
                castle.getSiege().registerDefender(activeChar);
        }
        else
            castle.getSiege().removeSiegeClan(activeChar);

        castle.getSiege().listRegisterClan(activeChar);
    }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.entity.Castle

        L2PcInstance player = (L2PcInstance)activeChar;

        if (player.getClan() == null || player.getClan().getLeaderId() != player.getObjectId()) return;

        Castle castle = CastleManager.getInstance().getCastle(player);
        if (castle == null || !checkIfOkToCastSealOfRule(player, castle, true)) return;

        try
        {
          if(targets[0] instanceof L2ArtefactInstance)
            castle.Engrave(player.getClan(), targets[0].getObjectId());
        }
        catch(Exception e)
        {}
    }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.entity.Castle

   
    // player has clan and is the clan leader, check the castle info
    if ((clan != null) && (clan.getLeader().getPlayerInstance() == this))
    {
      // if the clan has a castle and it is actually the queried castle, return true
      Castle castle = CastleManager.getInstance().getCastleByOwner(clan);
      if ((castle != null) && (castle == CastleManager.getInstance().getCastleById(castleId)))
      {
        return true;
      }
    }
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.