You just need to add all items to the looting, add a category to them (you can use the same category you use to deposit items in your depot) and edit the category in the script below.
local categoryStack = 's'
local categoryNonStack = 'n'
-- Do not edit below --
local items = {}
npctalk('hi', 'trade') wait(500,1000)
foreach lootingitem m 'sn' do
table.insert(items, m.id)
end
for _, sellItems in ipairs(items) do
while tradecount('sell', sellItems) > 0 do
sellitems(sellItems, tradecount('sell', sellItems))
end
end
Post here if any problem