Package l2p.gameserver.model.entity.residence

Examples of l2p.gameserver.model.entity.residence.Castle


      {
        if(command.startsWith("open_doors"))
        {
          StringTokenizer st = new StringTokenizer(command.substring(10), ", ");
          st.nextToken(); // Bypass first value since its castleid/hallid
          Castle castle = getCastle();
          while(st.hasMoreTokens())
          {
            castle.openDoor(player, Integer.parseInt(st.nextToken()));
          }
        }
        else if(command.startsWith("close_doors"))
        {
          StringTokenizer st = new StringTokenizer(command.substring(11), ", ");
          st.nextToken(); // Bypass first value since its castleid/hallid
          if(condition == 2)
          {
            Castle castle = getCastle();
            while(st.hasMoreTokens())
            {
              castle.closeDoor(player, Integer.parseInt(st.nextToken()));
            }
          }
        }
      }
      else
View Full Code Here


    {
      return Cond_Castle_Owner;
    }
    if(player.getClan() != null)
    {
      Castle castle = getCastle();
      if(castle != null && castle.getId() >= 0)
      {
        if(castle.getOwnerId() == player.getClanId())
        {
          if(castle.getSiege().isInProgress() || TerritorySiege.isInProgress())
          {
            if(Config.SIEGE_OPERATE_DOORS)
            {
              if(Config.SIEGE_OPERATE_DOORS_LORD_ONLY && !player.isCastleLord(castle.getId()))
              {
                return Cond_Busy_Because_Of_Siege;
              }
              return Cond_Castle_Owner;
            }
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.entity.residence.Castle

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.