Advertisement
Guest User

Untitled

a guest
Apr 10th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. config = require('config')
  2. require('strings')
  3. require('luau')
  4. texts = require('texts')
  5. require("resources/slots")
  6. buffs = require('res/buffs')
  7. job_abilities = require('res/abilities')
  8. spells = require('res/spells')
  9. jobs = require('res/jobs')
  10. items = require('res/items')
  11. isbusy = require('isbusy')
  12.  
  13. _addon.name = 'Libtest'
  14. _addon.author = 'Andreas Sheriff'
  15. _addon.version = '1'
  16. _addon.commands = {'libtest', 'lt'}
  17.  
  18. windower.register_event('addon command', function(...)
  19. local args = {...}
  20. local cmd = ''
  21.  
  22. if table.length(args) > 0 then
  23. cmd = args[1]
  24.  
  25. if cmd == 'id' then
  26. do_id_target()
  27. elseif cmd == 'target' then
  28. do_target_by_id(args[2])
  29. end
  30. end
  31. end)
  32.  
  33. windower.register_event('load', function()
  34.  
  35. end)
  36.  
  37. windower.register_event('unload', function()
  38.  
  39. end)
  40.  
  41. function do_id_target()
  42. local target
  43.  
  44. target = windower.ffxi.get_mob_by_target('t')
  45.  
  46. if target then
  47. windower.add_to_chat(5, "ID: " .. tostring(target.id) .. " -- INDEX: " .. tostring(target.index))
  48. end
  49. end
  50.  
  51. function do_target_by_id(args[2])
  52.  
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement