Examples of checkIfInZone()


Examples of com.l2jfrozen.gameserver.model.entity.siege.Castle.checkIfInZone()

      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();
      }

      door = null;
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.entity.siege.Castle.checkIfInZone()

      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();
      }
      door = null;
      castle = null;
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.entity.siege.Castle.checkIfInZone()

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

Examples of com.l2jfrozen.gameserver.model.entity.siege.Fort.checkIfInZone()

  {
    Fort fort;
    for(int i = 0; i < getForts().size(); i++)
    {
      fort = getForts().get(i);
      if(fort != null && fort.checkIfInZone(x, y, z))
      {
        fort = null;
        return i;
      }
    }
View Full Code Here

Examples of l2p.gameserver.instancemanager.ZoneManager.checkIfInZone()

      return false;
    }
    ZoneManager zoneManager = ZoneManager.getInstance();
    for(ForbiddenZones forbiddenZone : ForbiddenZones.values())
    {
      if(forbiddenZone.checkZ ? zoneManager.checkIfInZone(forbiddenZone.type, x, y, z) : zoneManager.checkIfInZone(forbiddenZone.type, x, y))
      {
        player.sendPacket(Msg.YOU_CANNOT_USE_MY_TELEPORTS_TO_REACH_THIS_AREA);
        return false;
      }
    }
View Full Code Here

Examples of l2p.gameserver.instancemanager.ZoneManager.checkIfInZone()

      return false;
    }
    ZoneManager zoneManager = ZoneManager.getInstance();
    for(ForbiddenZones forbiddenZone : ForbiddenZones.values())
    {
      if(forbiddenZone.checkZ ? zoneManager.checkIfInZone(forbiddenZone.type, x, y, z) : zoneManager.checkIfInZone(forbiddenZone.type, x, y))
      {
        player.sendPacket(Msg.YOU_CANNOT_USE_MY_TELEPORTS_TO_REACH_THIS_AREA);
        return false;
      }
    }
View Full Code Here

Examples of l2p.gameserver.model.L2Zone.checkIfInZone()

    if(getSiegeUnit() != null && getSiegeUnit().checkIfInZone(x, y))
    {
      return true;
    }
    L2Zone zone = getZone();
    return zone != null && zone.checkIfInZone(x, y);
  }

  /**
   * Announce to player.<BR><BR>
   *
 
View Full Code Here

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

    }
    int castleIndex = clan.getHasCastle();
    if(castleIndex != 0)
    {
      Castle castle = CastleManager.getInstance().getCastleByIndex(castleIndex);
      if(castle != null && castle.checkIfInZone(getX(), getY()))
      {
        setInResidence(ResidenceType.Castle);
        return;
      }
    }
View Full Code Here

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

    }
    int clanHallIndex = clan.getHasHideout();
    if(clanHallIndex != 0)
    {
      ClanHall clansHall = ClanHallManager.getInstance().getClanHall(clanHallIndex);
      if(clansHall != null && clansHall.checkIfInZone(getX(), getY()))
      {
        setInResidence(ResidenceType.Clanhall);
        return;
      }
    }
View Full Code Here

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

    }
    int fortressIndex = clan.getHasFortress();
    if(fortressIndex != 0)
    {
      Fortress fort = FortressManager.getInstance().getFortressByIndex(fortressIndex);
      if(fort != null && fort.checkIfInZone(getX(), getY()))
      {
        setInResidence(ResidenceType.Fortress);
        return;
      }
    }
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.