Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config = require('config')
- require('strings')
- require('luau')
- texts = require('texts')
- require("resources/slots")
- buffs = require('res/buffs')
- job_abilities = require('res/abilities')
- spells = require('res/spells')
- jobs = require('res/jobs')
- items = require('res/items')
- isbusy = require('isbusy')
- _addon.name = 'Libtest'
- _addon.author = 'Andreas Sheriff'
- _addon.version = '1'
- _addon.commands = {'libtest', 'lt'}
- windower.register_event('addon command', function(...)
- local args = {...}
- local cmd = ''
- if table.length(args) > 0 then
- cmd = args[1]
- if cmd == 'id' then
- do_id_target()
- elseif cmd == 'target' then
- do_target_by_id(args[2])
- end
- end
- end)
- windower.register_event('load', function()
- end)
- windower.register_event('unload', function()
- end)
- function do_id_target()
- local target
- target = windower.ffxi.get_mob_by_target('t')
- if target then
- windower.add_to_chat(5, "ID: " .. tostring(target.id) .. " -- INDEX: " .. tostring(target.index))
- end
- end
- function do_target_by_id(args[2])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement