Thread Tools Display Modes
01-31-11, 08:24 PM   #1
aiikachi
A Cyclonian
 
aiikachi's Avatar
Join Date: Jan 2007
Posts: 44
Purge-able auras, is it possible?

So I know that oUF has support for spellstealable auras, but what about purgeable/dispelable? Is this possible? Has it been done in another layout before?

after some searching, it seems that ouf_Phanx does something like this...would anyone be willing to help me figure out how to embed this functionality in my own layout?
__________________

Last edited by aiikachi : 02-01-11 at 10:28 AM.
  Reply With Quote
02-01-11, 11:25 AM   #2
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Just use a custom filter:
Code:
local customFilter = function(icons, unit, icon, name, rank, texture, count, dtype, duration, timeLeft, caster)
	if(dtype == 'Magic') then
		return true
	end
end
__________________
「貴方は1人じゃないよ」
  Reply With Quote
02-01-11, 05:16 PM   #3
Akkorian
A Flamescale Wyrmkin
 
Akkorian's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 111
Hi aiikachi,

If you want to highlight frames when their unit has a buff you can purge, like oUF_Phanx does, you can feel free to copy the “dispel.lua” file into your own layout. There are instructions at the top of the file. Let me know if you have any questions!
__________________
“Be humble, for you are made of earth. Be noble, for you are made of stars.”
  Reply With Quote
02-01-11, 08:04 PM   #4
villiv
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 14
Hi Akkorian, greeting from a passer‐by.

Just want to make it sure, does "UnitAura" return a dispel-type like "ENRAGE"?

I think you may test and code it but it's new to me and really good thing to know.
If any other dispel-types that "UnitAura" can return, could you please share your knowledge?

Thank you.
  Reply With Quote
02-01-11, 10:21 PM   #5
Akkorian
A Flamescale Wyrmkin
 
Akkorian's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 111
Hi villiv,

Unfortunately UnitAura doesn’t return “Enrage”. It only returns “Curse”, “Disease”, “Magic”, “Poison”, or an empty string (“”) for all other types. If you wanted to track Enrage effects, you’d have to keep a list of buffs to look for, or use tooltip scanning on empty-string-type buffs.
__________________
“Be humble, for you are made of earth. Be noble, for you are made of stars.”
  Reply With Quote
02-02-11, 12:58 AM   #6
villiv
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 14
Thanks for your quick reply, Akkorian.

I know you maintain oUF_Phanx with Phanx now. Maybe it's not your code but ...

in dispel.lua

Code:
local i = 1
while true do
	local name, _, _, _, type, _, _, _, stealable = UnitAura(unit, i, "HELPFUL")
	if not name then break end
	-- print("UnitAura", unit, i, tostring(name), tostring(type))
	if (canPurge and type == "MAGIC") or (canTranq and type == "ENRAGE") or (canSteal and stealable) then
		debuffType = type
		break
	end
	i = i + 1
end
As far I can see the code expects "Enrage" as a dispel-type (besides capital), so I asked. But I'm not good at coding anyway ...

Again, thank you for making it clear. (And sorry for my bad English. )
  Reply With Quote
02-02-11, 05:42 PM   #7
aiikachi
A Cyclonian
 
aiikachi's Avatar
Join Date: Jan 2007
Posts: 44
Thanks for the replies!

@Akkorian

It was specifically the purging of enrage effects, and pve buffs that my shaman could remove off hostiles. I tried adding dispel.lua to my layout, following the instructions, but nothing of what I wanted to do worked out--I think it's just beyond the scope of my know-how/skill D:
__________________
  Reply With Quote
02-03-11, 06:05 AM   #8
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
InlineAura does highlighting for dispellable effects through LibDispellable-1.0. It uses a list of known spellids for this to function which are mined.

The Blizz API only returns info for isStealable, which is the last return of UnitAura. At least as far as I know. And I know nothing
  Reply With Quote
02-03-11, 01:48 PM   #9
aiikachi
A Cyclonian
 
aiikachi's Avatar
Join Date: Jan 2007
Posts: 44
Well I found this mod: http://wow.curse.com/downloads/wow-a...pelborder.aspx which does exactly what I wanted--but getting it to work with ouf might be tricky. To make anything show up at all I have to change UnitAura to UnitBuff in ouf/elements/aura.lua (line 84)...which is a no no. What can I put in my own layout to make this work properly?


oh, I think I figured it out, just a bit of editing in the DispelBorder lua! 8D
__________________

Last edited by aiikachi : 02-03-11 at 01:55 PM.
  Reply With Quote
02-04-11, 06:19 PM   #10
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
Originally Posted by aiikachi View Post
Well I found this mod: http://wow.curse.com/downloads/wow-a...pelborder.aspx which does exactly what I wanted--but getting it to work with ouf might be tricky. To make anything show up at all I have to change UnitAura to UnitBuff in ouf/elements/aura.lua (line 84)...which is a no no. What can I put in my own layout to make this work properly?


oh, I think I figured it out, just a bit of editing in the DispelBorder lua! 8D
Just wanted to say that you might try to edit that addon instead of oUF.

Since you figured that out anyway, you might want to share what you changed? Others might find a use for it, too.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
02-06-11, 03:10 PM   #11
aiikachi
A Cyclonian
 
aiikachi's Avatar
Join Date: Jan 2007
Posts: 44
@dawn I found that the dispelborder.lua had commented out a hook to UnitAura. Uncommenting that, paired with adding a spellsteal overlay to my layout made it work just fine.
__________________
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Purge-able auras, is it possible?


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