Thread Tools Display Modes
10-25-13, 01:40 PM   #1
MakeVio
A Deviate Faerie Dragon
Join Date: Aug 2012
Posts: 18
Shielding

I'll just keep it short and simple. I play priest PvP and PvE all the time, and one of the things I have always keep cautious of is how much more my shield can absorb. Is there any where to calculate how much your shield can absorb until it's depleted? And maybe when the shield is applied, it shows how much health it is shielding, and slowly goes down as it's drained. Or have it's own separate bar with a value of how much is left.
 
10-25-13, 04:51 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
doesn't it already show as a buff on yourself ?
__________________
 
10-26-13, 09:08 PM   #3
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
Spent the last couple of days looking into this off and on during my vacation time in South Florida in between sunbathing and playing in my friends pool. But I digress.

Anyway, there is a newish event that allows you to monitor any absorbtion values.

UNIT_ABSORB_AMOUNT_CHANGED

Then use the UnitGetTotalAbsorbs("player") to find out how much has been absorbed.

With that knowledge and some attempts at cooldowns and durations for the buff the screenshot attached shows my mini addon working somewhat. It still glitches with cooldown and duration monitoring. And it won't let me set a color for some reason.
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_102713_025710.jpg
Views:	605
Size:	189.2 KB
ID:	7912  
__________________
 
10-28-13, 08:09 PM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
Give this lil attachment a go. I have added some locals at the top of the file that can be used to change the sizes of the bar/button and font and it is now movable and the cooldown/duration timers work correctly from what I could see. Theoretically changing the shieldspell value to the spellID for the one your class needs should work fine but not tested thoroughly for that just for the priest Power Word: Shield spell.
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_102913_015056.jpg
Views:	576
Size:	271.1 KB
ID:	7919  
Attached Files
File Type: zip XShieldMonitor.zip (2.6 KB, 529 views)
__________________
 
10-29-13, 12:28 PM   #5
MakeVio
A Deviate Faerie Dragon
Join Date: Aug 2012
Posts: 18
Interesting, works. Nice!

Here's an example if anyone wants to see, it's off to the left


 
10-29-13, 03:31 PM   #6
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
Not sure how long it will be to get this set up as an official addon but having every class at my beck and call ill hopefully get something rugged up for it to work for all classes. For now it's here for those that need it and if Scott can see how the functionality can fit straight into nui go right ahead
__________________
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » nUI: Suggestion Box » Shielding

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