ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Need help to track if player has active dur. ability during (onCombatEvent function) (https://www.esoui.com/forums/showthread.php?t=6516)

ArtOfShred 09/14/16 06:25 AM

Need help to track if player has active dur. ability during (onCombatEvent function)
 
Hey there, I'm doing some modifications to LUI atm, and I've managed to successfully make a fake debuff tracker that tracks certain debuffs without an active effect display like mob Hamstrung attacks.

However the duration is based off the ability ID, and if I purge the ability (which is also correctly removing the debuff from display), the duration of all debuffs applied in the next 6 seconds is cut in half, so if this fake debuff is applied again, it does not show the proper halved duration.

Is there some way to check and see if there is an active effect based on abilityId currently active on the player? I need to implement this check into the onCombatEvent function ideally.

If I can figure out how to do that then I can have two statements:

if source ~= "" and target == playerName then
*draw buff at normal duration*
if source ~= "" and target == playerName & (PURGE ABILTIYID IS ACTIVE ON PLAYER) then
*draw buff at half duration*

Thanks!


All times are GMT -6. The time now is 07:30 AM.

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