Thread Tools Display Modes
06/21/21, 01:29 AM   #1
g0dpain
AddOn Author - Click to view addons
Join Date: Jun 2021
Posts: 2
Reviving

Hello all,

I'm keeping it short:
Is there an event or similiar to grab information of reviving someone else?

I am new to addon creation, so please have mercy

Thanks in advance!
  Reply With Quote
06/21/21, 01:51 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
https://wiki.esoui.com/Main_Page
-> Right top side -> Getting Started
You should read a bit about lua and ESO lua there to make yourself comfortable with it
Here is a forum thread for new devs as well:
https://www.esoui.com/forums/showthread.php?t=8413

Events are listed here:
https://wiki.esoui.com/Events
But the most up2date list of API functions, events etc. will be found here:
https://wiki.esoui.com/APIVersion -> Scroll to the current API version on live/pts (depending on which server you code and test) and check the txt file link at "API TXT Documentation"

Your event would be something around "Life and Death", maybe
EVENT_UNIT_DEATH_STATE_CHANGED (number eventCode, string unitTag, boolean isDead)
You should filter the event so that it does not fire for EVERY unit as a unit is even any enemy:
https://wiki.esoui.com/AddFilterForEvent
Filters are applied before lua code and are speeding everything up, so that the event callbacks in your lua code do not fire for nothing.
e.g. REGISTER_FILTER_UNIT_TAG_PREFIX with the unitTag prefix = "group" for group members

Reviving events:
EVENT_RESURRECT_REQUEST (number eventCode, string requesterCharacterName, number timeLeftToAccept, string requesterDisplayName)
EVENT_RESURRECT_REQUEST_REMOVED (number eventCode)
EVENT_START_SOUL_GEM_RESURRECTION (number eventCode, number durationMs)
EVENT_RESURRECT_RESULT (number eventCode, string targetCharacterName, ResurrectResult result, string targetDisplayName)

The possible ResurrectResult constants can be found withint the API documentation txt file.

Last edited by Baertram : 06/21/21 at 04:12 AM.
  Reply With Quote
06/21/21, 02:13 AM   #3
g0dpain
AddOn Author - Click to view addons
Join Date: Jun 2021
Posts: 2
Originally Posted by Baertram View Post
https://wiki.esoui.com/Main_Page
-> Right top side -> Getting Started
You should read a bit about lua and ESO lua there to make yourself comfortable with it
Here is a forum thread for new devs as well:
https://www.esoui.com/forums/showthread.php?t=8413

Events are listed here:
https://wiki.esoui.com/Events
But the most up2date list of API functions, events etc. will be found here:
https://wiki.esoui.com/APIVersion -> Scroll to the current API version on live/pts (depending on which server you code and test) and check the txt file link at "API TXT Documentation"

Your event would be something around "Life and Death", maybe
EVENT_UNIT_DEATH_STATE_CHANGED (number eventCode, string unitTag, boolean isDead)
You should filter the event so that it does not fire for EVERY unit as a unit is even any enemy:
https://wiki.esoui.com/AddFilterForEvent
Filters are applied before lua code and are speeding everything up, so that the event callbacks in your lua code do not fire for nothing.
e.g. REGISTER_FILTER_UNIT_TAG_PREFIX with the unitTag prefix = "group" for group members

Reviving events:
EVENT_RESURRECT_REQUEST (number eventCode, string requesterCharacterName, number timeLeftToAccept, string requesterDisplayName)
EVENT_RESURRECT_REQUEST_REMOVED (number eventCode)
EVENT_START_SOUL_GEM_RESURRECTION (number eventCode, number durationMs)
EVENT_RESURRECT_RESULT (number eventCode, string targetCharacterName, ResurrectResult result, string targetDisplayName)
Thank you very much for this detailed response!
After work I will look into it
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Reviving

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