Where the file goes: close the Tibia client first, because it writes this file again when it exits. On Windows, paste %LOCALAPPDATA%\Tibia\packages\Tibia\characterdata into Explorer’s address bar. There is one numbered folder per character; yours is the one that changed last after you logged that character out. Keep a copy of its lootBlackWhitelist.json, then put the new one in its place. Each character has its own list. Which backpack a kind of loot goes to is kept on the game’s servers, so that part is still set in the client.
How it is worked out: this is a skip list. Quick Loot takes everything that is not on it, so new items and anything unexpected are never left on the ground. An item’s value is what an NPC pays for it, the same on every world. Market prices are not used, because they differ by world and by day; an item no NPC buys is looted unless you untick that box, and the button on any row overrules the rules. Data: TibiaWiki.