con = L2DatabaseFactory.getInstance().getConnection();
statement = con.prepareStatement("UPDATE forts SET state = ?, castleId = ? WHERE id = ?");
statement.setInt(1, getFortState());
statement.setInt(2, getCastleId());
statement.setInt(3, getId());
statement.execute();
statement.close();
}
catch(Exception e)
{
System.out.println("Exception: setFortState(int state, int castleId): " + e.getMessage());