Windower/Lua

windower.send_ipc_message(command)
windower.register_event('ipc message', function (msg)
---   msg => "send target command"
end)

Lottery

  • https://github.com/Windower/Lua/blob/dev/addons/lottery/lottery.lua
    windower.register_event('outgoing chunk', function(id, data, modified, injected, blocked)
        if not blocked and id == 0x41 then
            windower.send_ipc_message('pass ' .. tostring(data:sub(5, 5):byte()))
        end
    end)
    windower.register_event('ipc message', function(message)
        if message:sub(1, 4) == 'pass' then
            windower.ffxi.pass_item(tonumber(message:sub(6)))
        end
    end)

これで同一PCの全キャラで pass させられる。 恐らく、id == 0x41 がアイテムロット操作で、data:sub(5, 5) はアイテム番号。