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.
2K
Get Items/Effects under mouse #31
336b | 11 lines.
hotkey("f5", "get items/effects under mouse", function()
    local tile = getTileUnderCursor()
    if tile then
        for i, fx in ipairs(tile:getEffects()) do
            warn("fx: " .. fx:getId())
        end
        for i, fx in ipairs(tile:getItems()) do
            warn("item: " .. fx:getId())
        end
    end
end)
- remove | + add

26 May 2021
Ads