4142434445464748495051
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;
5758596061626364656667
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;
219220221222223224225226227228229
{ 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; } }