Last active
January 10, 2023 22:30
-
-
Save gwbischof/c9276f3d95c335fcbadeb8cc0a1edd38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_addon.name = 'targetid' | |
_addon.author = 'Mapogo' | |
_addon.version = '1.0' | |
_addon.language = 'English' | |
require('luau') | |
texts = require('texts') | |
old_mob_id = 0 | |
windower.register_event('prerender', function() | |
local mob = windower.ffxi.get_mob_by_target('st') or windower.ffxi.get_mob_by_target('t') | |
if mob and mob.id > 0 then | |
if old_mob_id ~= mob.id then | |
windower.add_to_chat(2, mob.name .. " " .. mob.id .. " " .. mob.index) | |
old_mob_id = mob.id | |
end | |
end | |
end) | |
--[[ | |
This will display the name, id, index of a target in the log window. | |
Place this file here: ../addons/targetid/targetid.lua | |
to start it you have to type: //lua load targetid | |
to stop: //lua unload targetid | |
--]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment