Examples of checkIfInZone()


Examples of l2p.gameserver.model.entity.residence.Residence.checkIfInZone()

    Residence castle = CastleManager.getInstance().getCastleByIndex(activeChar.getClan().getHasCastle());
    if(door == null || castle == null)
    {
      return false;
    }
    if(target.equals("doors") && activeChar.isClanLeader() && castle.checkIfInZone(door.getX(), door.getY()))
    {
      if(command.startsWith("open"))
      {
        door.openMe();
      }
View Full Code Here

Examples of l2p.gameserver.model.entity.residence.Residence.checkIfInZone()

  {
    Residence castle;
    for(int i = 1; i <= getCastles().size(); i++)
    {
      castle = getCastles().get(i);
      if(castle != null && castle.checkIfInZone(x, y))
      {
        return i;
      }
    }
    return -1;
View Full Code Here

Examples of lineage2.gameserver.model.entity.residence.Castle.checkIfInZone()

      return;
    }
   
    final Castle castle = player.getCastle();
    final MerchantGuard guard = castle.getMerchantGuard(item.getItemId());
    if ((guard == null) || !castle.checkIfInZone(loc, ReflectionManager.DEFAULT) || player.isActionBlocked(Zone.BLOCKED_ACTION_DROP_MERCHANT_GUARD))
    {
      player.sendPacket(SystemMsg.YOU_CANNOT_POSITION_MERCENARIES_HERE, ActionFail.STATIC);
      return;
    }
   
View Full Code Here

Examples of net.sf.l2j.gameserver.model.entity.Castle.checkIfInZone()

    {
        Castle castle;
        for (int i = 0; i < getCastles().size(); i++)
        {
            castle = getCastles().get(i);
            if (castle != null && castle.checkIfInZone(x, y, z)) return i;
        }
        return -1;
    }

    public final List<Castle> getCastles()
View Full Code Here

Examples of net.sf.l2j.gameserver.model.entity.Castle.checkIfInZone()

    {
      if(command.startsWith("open doors")&&target.equals("castle")&&(activeChar.isClanLeader())){
            L2DoorInstance door = (L2DoorInstance) activeChar.getTarget();
            Castle castle = CastleManager.getInstance().getCastleById(activeChar.getClan().getHasCastle());
            if (door == null || castle == null) return false;
            if (castle.checkIfInZone(door.getX(), door.getY(), door.getZ()))
          {
            door.openMe();
          }

      }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.entity.Castle.checkIfInZone()

      }
      else if(command.startsWith("close doors")&&target.equals("castle")&&(activeChar.isClanLeader())){
            L2DoorInstance door = (L2DoorInstance) activeChar.getTarget();
            Castle castle = CastleManager.getInstance().getCastleById(activeChar.getClan().getHasCastle());
            if (door == null || castle == null) return false;
            if (castle.checkIfInZone(door.getX(), door.getY(), door.getZ()))
          {
            door.closeMe();
          }

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