02/27/23, 09:33 AM | #1 |
|
How to track "CinderShot" debuff with Dreadsail Reef Helper?
Hello, I would like to have help to integrate an alert in Qcell's Dreadsail Reef Helper to track the CinderShot debuff in DSR trash, Qcell not playing the game anymore redirected me to Esoui forum.
I tried to make some changes to the addon but it doesn't work, so I don't know what I have to do to get the alert to appear when I have the debuff on me. In the data file, I added this line in the trash part of the file: Lua Code:
in the Trash file, I added these lines here: Lua Code:
Since Code Combat Alert puts an sound alert when we have the debuff, I was inspired by its code to try to have the alert I want. Lua Code:
I made several attempts, but I never manage to get the debuff displayed. I tried to integrate the 4 debuff IDs I found on EsoLogs : Lua Code:
I also tried by noting the cast ID: Lua Code:
Hoping someone will be able to help me to integrate the alert of this debuff. Thanks in advance, MGSnakes |
02/27/23, 10:13 AM | #2 |
Did you check on your player that this debuf is actually shown at the player as a buff?
if the buff is not there you cannot listen for it at the events. If you click C to show the player buffs it shows you all the buffs you currently got, as names. The abilityIds of them are not shown. You either need an addon like Srendar and enable the debug to show the current player buffs ids behind the name. Or you can list them to chat via some code like this (by e.g. using a slash command /playerbuffs that runs this function "ShowPlayerBuffs"): Lua Code:
If you have found the correct abilityId or buffId that is shown as the playerbuff you can then simply do a test via an event EVENT_EFFECT_CHANGED using a filter like this, to react on it: Lua Code:
-> See https://wiki.esoui.com/AddFilterForEvent Edit: I'm not sure where you got that ACTION_RESULT_EFFECT_GAINED constant from but in the current API documentation the 2nd parameter of the EVET_EFFECT_CHANGED event is using the type EffectResult which can be one of these: Code:
h5. EffectResult * EFFECT_RESULT_FADED * EFFECT_RESULT_FULL_REFRESH * EFFECT_RESULT_GAINED * EFFECT_RESULT_TRANSFER * EFFECT_RESULT_UPDATED Last edited by Baertram : 02/27/23 at 10:32 AM. |
|
02/27/23, 10:38 AM | #3 | |
|
When I'm alone in the instance, I only have this debuff that appears but when we are a complete group, and 4 players can have the debuff simultaneously, there are these 4 IDs: 170401, 170399, 170396, 170392. For ACTION_RESULT_EFFECT_GAINED, this is what is used in Code Combat Alert for the sound alert https://prnt.sc/wSdnl20zhiN7 I just copied a functional code to adapt it to what I wanted in the Qcell addon EDIT: I tried the test code you provided https://prnt.sc/NvUHjnTvnI_o Last edited by mgsnakes : 02/27/23 at 10:54 AM. |
|
02/27/23, 12:16 PM | #4 | |
If there is already a sound alert in CCA (and CCA needs to be active anyways as Qcells isnt working without it), it maybe makes sense to just add the text alert within CCA. |
||
03/01/23, 06:06 AM | #5 | |
|
The only alert I could get when I have the debuff on me is by using the test code given by Baertram and I have the alert in the chat. When I try to modify his test code to see if I can get an alert, the alert does not appear |
|
03/01/23, 08:29 AM | #6 |
If you tried it withing CCA, can you send the code snipped for that specific ability?
|
|
03/01/23, 10:43 AM | #7 | |
|
Lua Code:
As I am not a dev, I just added a line for the alert under the sound alert that already exists |
|
03/01/23, 11:20 AM | #8 |
Mh, that is weird.
The line looks correct and it also worked for me if I just copied your code and tested it. Can you test it with no other addon than CCA enabled. (Also how exactly do you test it? ) |
|
03/01/23, 11:47 AM | #9 | |
|
|
|
ESOUI » AddOns » AddOn Help/Support » How to track "CinderShot" debuff with Dreadsail Reef Helper? |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|