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.
166
Autoloot on Look #67
401b | 10 lines.
local doAutoLootLook = macro(5000, "Auto Loot on Look", "F1",  function() end)
onTextMessage(function(mode, text)
    if mode == 20 and text:find("You see") and doAutoLootLook:isOn() then
        local regex = [[You see (?:an|a)([a-z A-Z]*).]]
        local data = regexMatch(text, regex)[1]
        if data and data[2] then
            say('!autoloot add, ' ..data[2]:trim())
        end
    end
end)

08 Nov 2021