Thread Tools Display Modes
01/07/18, 01:51 AM   #1
Ni Lucian
Join Date: Jan 2018
Posts: 7
Events.

Is the only source for events
Code:
https://wiki.esoui.com/Events
. If so, is there anyway to pull NPC data? And character data? Based on who your recticle is on and if I can pull data on either all or NPCs in your zone.
  Reply With Quote
01/07/18, 03:36 AM   #2
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
I'm guessing these: https://wiki.esoui.com/Events#UI_Reticle

Combined with calls to functions starting at "DoesUnitExist" in the API article that contain the unitTag parameter, which can be set to 'reticleover' would get you a decent amount of info.


The latter portion of your question seems to be a separate question pertaining to pulling data from some database rather than looking directly at the targets? No.


I've been up way too late so I can't be bothered to test this, but even if it's not quite right it should give you something to work off of:
Lua Code:
  1. function TargetFunc(eventCode)
  2.     d(GetUnitDisplayName('reticleover'))
  3. end
  4.  
  5. EVENT_MANAGER:RegisterForEvent(AddonName, EVENT_RETICLE_TARGET_CHANGED , TargetFunc)

Last edited by Rhyono : 01/07/18 at 03:47 AM.
  Reply With Quote
01/13/18, 06:38 AM   #3
Ni Lucian
Join Date: Jan 2018
Posts: 7
Thank you. Helped open the door to understanding LUA's calls for me.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Events.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off