Your browser does not support JavaScript or its disabled!
Please turn it on, or be aware that some features on this website will not work correctly.
OTClient Code

These are codes that I have posted on various forums/discord.

Drop to Pos #1
UI.Button("Drop to Pos", function()
    local dropPos = { x = 300, y = 2056, z = 7 }
    local itemToDrop = 3031
    for _, container in pairs(g_game.getContainers()) do
        for __, item in ipairs(container:getItems()) do
            if item:getId() == itemToDrop then
                return g_game.move(item, dropPos , 1)
            end
        end
    end
end)
#LUA
01/01/2021