Skip to content

Delete Recipes From Database

Featured Replies

How can i do method to delete all recipe from any crafter?

 

public static void DeleteRecpe(L2PcInstance activeChar)
{
        try (Connection con = L2DatabaseFactory.getInstance().getConnection())
        {
        	PreparedStatement statement = con.prepareStatement("DELETE FROM character_recipebook WHERE char_obj_id=?");
        	statement.setInt(1, activeChar.getObjectId());
        	statement.execute();
        	statement.close();
        }
        catch (Exception e)
        {
                _log.log(Level.WARNING,"Something went wrong", e);
        }
}

Its something like this ? 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.