Thread Tools Display Modes
10-28-09, 11:39 AM   #1
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
debuff/combo points

hello i have a question about combo points as a mage can i take the combo points from the rogue and set it as arcane blast debuffs on the target using some kind of code?

thanks in advance

here is somone that alrdy made it for other unit frames but not oUF Curse.com
__________________

Tukui | Github

Last edited by jasje : 10-28-09 at 01:12 PM.
  Reply With Quote
10-28-09, 04:46 PM   #2
Waverian
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 188
Use a custom tag.

Drycoded:

lua Code:
  1. local class = select(2, UnitClass("player"))
  2.  
  3. oUF.TagEvents["[mylayoutcombo]"] = "UNIT_COMBO_POINTS UNIT_TARGET UNIT_AURA"
  4. oUF.Tags["[mylayoutcombo]"] = function(unit)
  5.     -- this probably isn't necessary
  6.     if unit ~= "player" then return end
  7.    
  8.     return class == "ROGUE" and oUF.Tags['[cpoints]'](unit) or class == "MAGE" and select(4, UnitBuff("player", GetSpellInfo(36032)))
  9. end

Last edited by Waverian : 10-28-09 at 04:52 PM.
  Reply With Quote
10-28-09, 05:45 PM   #3
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
Mhm, this is a pretty good idea.
  Reply With Quote
10-29-09, 10:03 AM   #4
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
the code u added didnt work
@ dawn can u make a code on how to add this to a oUF?
__________________

Tukui | Github
  Reply With Quote
10-29-09, 10:12 AM   #5
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Have you tried ArcaneComboPoints? It doesn't list oUF but it should work with it. Every time you get the Arcane Blast debuff it triggers the event UNIT_COMBO_POINTS for all frames registered to it. It also "hooks" GetComboPoints() to return the number of Arcane Blast stacks.
  Reply With Quote
10-29-09, 11:35 AM   #6
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
yes ive tryed it and no it doesnt work
__________________

Tukui | Github
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » debuff/combo points


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