if not g_game.isOnline() then
return
end
local itemsToDrop = {3364, 3365} -- populate this table with items IDs you would like to drop
local containers = g_game.getContainers()
for v, container in pairs(containers) do
if container:getItemsCount() > 0 then
local containerItems = container:getItems()
for j, item in pairs(containerItems) do
for k, itemId in pairs(itemsToDrop) do
if item:getId() == itemId then
g_game.moveItem(item, g_game.getLocalPlayer():getPosition(), item:getCount())
return
end
end
end
end
end
auto(1000)