Quantcast How do I add debuffs for myself for oUF P3lim? - WoWInterface
Thread Tools Display Modes
07-10-10, 10:02 PM   #1
pauen
A Theradrim Guardian
 
pauen's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2009
Posts: 68
How do I add debuffs for myself for oUF P3lim?

i managed to add the buffs but im not sure how to add the debuffs. :/
oh and i forgot , i want to remove the target of target debuffs and pet buffs/auras/debuffs
__________________
54/17/0
PvP Male Orc Arms Warrior

---------------------
Glyph of Mortal Strike
Glyph of Execution
Glyph of Rending

---------------------
Glyph of Charge
Glyph of Battle
Glyph of Bloodrage

Last edited by pauen : 07-10-10 at 11:18 PM.
  Reply With Quote
07-10-10, 10:07 PM   #2
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
self.Buffs = buffs
self.Debuffs = debuffs
__________________
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
07-10-10, 10:15 PM   #3
pauen
A Theradrim Guardian
 
pauen's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2009
Posts: 68
Originally Posted by Dawn View Post
self.Buffs = buffs
self.Debuffs = debuffs
uh kinda i think, its not telling WoW where, how big, where to grow and how much buffs/debuffs to give out.
didnt work.
__________________
54/17/0
PvP Male Orc Arms Warrior

---------------------
Glyph of Mortal Strike
Glyph of Execution
Glyph of Rending

---------------------
Glyph of Charge
Glyph of Battle
Glyph of Bloodrage
  Reply With Quote
07-10-10, 11:18 PM   #4
Sojik
A Wyrmkin Dreamwalker
 
Sojik's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 53
Try replacing
Code:
    if(unit == 'focus' or unit:find('target')) then
        local name = health:CreateFontString(nil, 'OVERLAY')
        name:SetPoint('LEFT', health, 2, 0)
        name:SetPoint('RIGHT', healthValue, 'LEFT')
        name:SetFont(FONT, 8, 'OUTLINE')
        name:SetJustifyH('LEFT')
        self:Tag(name, '[p3lim:name< ][|cff0090ff>rare<|r]')

        local debuffs = CreateFrame('Frame', nil, self)
        debuffs.spacing = 4
        debuffs.initialAnchor = 'TOPLEFT'
        debuffs.PostCreateIcon = PostCreateAura
        self.Debuffs = debuffs

        if(unit == 'target') then
            debuffs.num = 20
            debuffs.size = 19.4
            debuffs['growth-y'] = 'DOWN'
            debuffs.PostUpdateIcon = PostUpdateDebuff
            debuffs:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', 0, -4)
        else
            debuffs.num = 3
            debuffs.size = 19

            health:SetAllPoints()
            self:SetAttribute('initial-height', 19)
            self:SetAttribute('initial-width', 161)
        end

        if(unit == 'focus') then
            debuffs:SetPoint('TOPLEFT', self, 'TOPRIGHT')
            debuffs.onlyShowPlayer = true
        elseif(unit ~= 'target') then
            debuffs:SetPoint('TOPRIGHT', self, 'TOPLEFT', -4, 0)
            debuffs.initialAnchor = 'TOPRIGHT'
            debuffs['growth-x'] = 'LEFT'
        end

        debuffs:SetSize(230, debuffs.size)
    end
with
Code:
    if(unit ~= 'pet') then
        local debuffs = CreateFrame('Frame', nil, self)
        debuffs.spacing = 4
        debuffs.initialAnchor = 'TOPLEFT'
        debuffs.PostCreateIcon = PostCreateAura
        self.Debuffs = debuffs

        if(unit == 'player' or unit == 'target') then
            debuffs.num = 20
            debuffs.size = 19.4
            debuffs['growth-y'] = 'DOWN'
            debuffs.PostUpdateIcon = PostUpdateDebuff

            if(unit == 'player') then
                debuffs:SetPoint('TOPRIGHT', self, 'BOTTOMRIGHT', 0, -4)
                debuffs.initialAnchor = 'TOPRIGHT'
                debuffs['growth-x'] = 'LEFT'
            else
                debuffs:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', 0, -4)
            end
        else
            debuffs.num = 3
            debuffs.size = 19

            health:SetAllPoints()
            self:SetAttribute('initial-height', 19)
            self:SetAttribute('initial-width', 161)

            if(unit == 'focus') then
                debuffs:SetPoint('TOPLEFT', self, 'TOPRIGHT')
                debuffs.onlyShowPlayer = true
            else
                debuffs:SetPoint('TOPRIGHT', self, 'TOPLEFT', -4, 0)
                debuffs.initialAnchor = 'TOPRIGHT'
                debuffs['growth-x'] = 'LEFT'
            end
        end

        if(unit ~= 'player') then
            local name = health:CreateFontString(nil, 'OVERLAY')
            name:SetPoint('LEFT', health, 2, 0)
            name:SetPoint('RIGHT', healthValue, 'LEFT')
            name:SetFont(FONT, 8, 'OUTLINE')
            name:SetJustifyH('LEFT')
            self:Tag(name, '[p3lim:name< ][|cff0090ff>rare<|r]')
        end

        debuffs:SetSize(230, debuffs.size)
    end

Last edited by Sojik : 07-10-10 at 11:38 PM.
  Reply With Quote
07-10-10, 11:31 PM   #5
pauen
A Theradrim Guardian
 
pauen's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2009
Posts: 68
Originally Posted by Sojik View Post
Try replacing
Code:
    if(unit == 'focus' or unit:find('target')) then
        local name = health:CreateFontString(nil, 'OVERLAY')
        name:SetPoint('LEFT', health, 2, 0)
        name:SetPoint('RIGHT', healthValue, 'LEFT')
        name:SetFont(FONT, 8, 'OUTLINE')
        name:SetJustifyH('LEFT')
        self:Tag(name, '[p3lim:name< ][|cff0090ff>rare<|r]')

        local debuffs = CreateFrame('Frame', nil, self)
        debuffs.spacing = 4
        debuffs.initialAnchor = 'TOPLEFT'
        debuffs.PostCreateIcon = PostCreateAura
        self.Debuffs = debuffs

        i
i shortened down the code.. but i copied and pasted and didnt work.
__________________
54/17/0
PvP Male Orc Arms Warrior

---------------------
Glyph of Mortal Strike
Glyph of Execution
Glyph of Rending

---------------------
Glyph of Charge
Glyph of Battle
Glyph of Bloodrage
  Reply With Quote
07-10-10, 11:43 PM   #6
Sojik
A Wyrmkin Dreamwalker
 
Sojik's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 53
Originally Posted by pauen View Post
i shortened down the code.. but i copied and pasted and didnt work.
I did another edit after your post. I forgot a quotation mark in the beginning. Try now.
  Reply With Quote
07-11-10, 12:11 AM   #7
pauen
A Theradrim Guardian
 
pauen's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2009
Posts: 68
Originally Posted by Sojik View Post
I did another edit after your post. I forgot a quotation mark in the beginning. Try now.
it worked! thanks
__________________
54/17/0
PvP Male Orc Arms Warrior

---------------------
Glyph of Mortal Strike
Glyph of Execution
Glyph of Rending

---------------------
Glyph of Charge
Glyph of Battle
Glyph of Bloodrage
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » How do I add debuffs for myself for oUF P3lim?

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