ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Events. (https://www.esoui.com/forums/showthread.php?t=7541)

Ni Lucian 01/07/18 01:51 AM

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.

Rhyono 01/07/18 03:36 AM

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)

Ni Lucian 01/13/18 06:38 AM

Thank you. Helped open the door to understanding LUA's calls for me.


All times are GMT -6. The time now is 04:41 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI