PDA

View Full Version : Helped with target debuffs



Ninetysx
10-16-2008, 05:01 PM
Hi there. Long time nurfed user here. I've been using Frigid frames for a while now but the debuff on targets is not behaving the same way as it used to in the previous version of nurfed.

http://forums.nurfed.com/downloads.php?do=file&id=35

This is how it used to behave. When I cast a debuff on a target, the debuff goes on the "buff1" spot since the target doesn't really have any "BUFFS" yet. As soon as the target gets a self buff (boss enrage/etc), that buff goes to the correct spot and it bumps the debuff one space down.

Right now with the code below, the debuff doesn't anchor right below the mana bar but instead goes to the $parentbuff31 spot right away. See screenshot below.

http://i128.photobucket.com/albums/p179/ninetysix2/debuff.jpg


Please help! Thanks in advance :) --- someone please fix frigid unit frames...thanks!!

buff1 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parent", "BOTTOMLEFT", 2, 2 } },
buff2 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff1", "TOPRIGHT", 0, 0 } },
buff3 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff2", "TOPRIGHT", 0, 0 } },
buff4 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff3", "TOPRIGHT", 0, 0 } },
buff5 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff4", "TOPRIGHT", 0, 0 } },
buff6 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff5", "TOPRIGHT", 0, 0 } },
buff7 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff6", "TOPRIGHT", 0, 0 } },
buff8 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff7", "TOPRIGHT", 0, 0 } },
buff9 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff8", "TOPRIGHT", 0, 0 } },
buff10 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff9", "TOPRIGHT", 0, 0 } },
buff11 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff10", "TOPRIGHT", 0, 0 } },
buff12 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff11", "TOPRIGHT", 0, 0 } },
buff13 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff12", "TOPRIGHT", 0, 0 } },
buff14 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff13", "TOPRIGHT", 0, 0 } },
buff15 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff14", "TOPRIGHT", 0, 0 } },
buff16 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff1", "BOTTOMLEFT", 0, 0 } },
buff17 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff16", "TOPRIGHT", 0, 0 } },
buff18 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff17", "TOPRIGHT", 0, 0 } },
buff19 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff18", "TOPRIGHT", 0, 0 } },
buff20 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff19", "TOPRIGHT", 0, 0 } },
buff21 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff20", "TOPRIGHT", 0, 0 } },
buff22 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff21", "TOPRIGHT", 0, 0 } },
buff23 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff22", "TOPRIGHT", 0, 0 } },
buff24 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff23", "TOPRIGHT", 0, 0 } },
buff25 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff24", "TOPRIGHT", 0, 0 } },
buff26 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff25", "TOPRIGHT", 0, 0 } },
buff27 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff26", "TOPRIGHT", 0, 0 } },
buff28 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff27", "TOPRIGHT", 0, 0 } },
buff29 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff28", "TOPRIGHT", 0, 0 } },
buff30 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff29", "TOPRIGHT", 0, 0 } },
buff31 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff16", "BOTTOMLEFT", 0, 0 } },
buff32 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff31", "TOPRIGHT", 0, 0 } },

debuff1 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentbuff31", "BOTTOMLEFT", 0, 0 } },
debuff2 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff1", "TOPRIGHT", 0, 0 } },
debuff3 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff2", "TOPRIGHT", 0, 0 } },
debuff4 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff3", "TOPRIGHT", 0, 0 } },
debuff5 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff4", "TOPRIGHT", 0, 0 } },
debuff6 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff5", "TOPRIGHT", 0, 0 } },
debuff7 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff6", "TOPRIGHT", 0, 0 } },
debuff8 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff7", "TOPRIGHT", 0, 0 } },
debuff9 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff8", "TOPRIGHT", 0, 0 } },
debuff10 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff9", "TOPRIGHT", 0, 0 } },
debuff11 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff10", "TOPRIGHT", 0, 0 } },
debuff12 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff11", "TOPRIGHT", 0, 0 } },
debuff13 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff12", "TOPRIGHT", 0, 0 } },
debuff14 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff13", "TOPRIGHT", 0, 0 } },
debuff15 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff14", "TOPRIGHT", 0, 0 } },
debuff16 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff1", "BOTTOMLEFT", 0, 0 } },
debuff17 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff16", "TOPRIGHT", 0, 0 } },
debuff18 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff17", "TOPRIGHT", 0, 0 } },
debuff19 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff18", "TOPRIGHT", 0, 0 } },
debuff20 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff19", "TOPRIGHT", 0, 0 } },
debuff21 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff20", "TOPRIGHT", 0, 0 } },
debuff22 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff21", "TOPRIGHT", 0, 0 } },
debuff23 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff22", "TOPRIGHT", 0, 0 } },
debuff24 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff23", "TOPRIGHT", 0, 0 } },
debuff25 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff24", "TOPRIGHT", 0, 0 } },
debuff26 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff25", "TOPRIGHT", 0, 0 } },
debuff27 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff26", "TOPRIGHT", 0, 0 } },
debuff28 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff27", "TOPRIGHT", 0, 0 } },
debuff29 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff28", "TOPRIGHT", 0, 0 } },
debuff30 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff29", "TOPRIGHT", 0, 0 } },
debuff31 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff16", "BOTTOMLEFT", 0, 0 } },
debuff32 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff31", "TOPRIGHT", 0, 0 } },
debuff33 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff32", "TOPRIGHT", 0, 0 } },
debuff34 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff33", "TOPRIGHT", 0, 0 } },
debuff35 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff34", "TOPRIGHT", 0, 0 } },
debuff36 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff35", "TOPRIGHT", 0, 0 } },
debuff37 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff36", "TOPRIGHT", 0, 0 } },
debuff38 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff37", "TOPRIGHT", 0, 0 } },
debuff39 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff38", "TOPRIGHT", 0, 0 } },
debuff40 = { template = "Nurfed_BuffTemp2", Anchor = { "TOPLEFT", "$parentdebuff39", "TOPRIGHT", 0, 0 } },

Ninetysx
10-17-2008, 12:58 AM
Okay...does this have anything to do with this line after the buffs/debuffs line?

events = { "UNIT_AURA" },
OnEvent = "if arg1 == this.unit then ffflushbuffs(this.unit) end",
vars = { unit = "target"--[[, ani = "glide"]] },--adds glide to the target frame and its ToT/ToTT

Apoco
10-17-2008, 03:44 AM
OnEvent = [[ local self, arg1 = ...;
if arg1 = self.unit then flushbuffs(self.unit) end ]]


The functions have to be in '[[' ']]'

Ninetysx
10-17-2008, 11:46 PM
Replacing:

OnEvent = "if arg1 == this.unit then ffflushbuffs(this.unit) end",

with:

OnEvent = [[ local self, arg1 = ...;
if arg1 = self.unit then flushbuffs(self.unit) end ]],

totally breaks the Target frame :(

Apoco
10-18-2008, 05:36 PM
Thats because it needs to be

if arg1 == self.unit :p

Ninetysx
10-19-2008, 06:33 PM
The debuff moving to the buff slot still doesnt' work :(

Apoco
10-19-2008, 11:37 PM
post the full layout and I'll try and take a look at it.

Ninetysx
10-20-2008, 02:19 AM
Thanks Apoco :)

This is how it used to work.

When you cast a debuff on the target, the debuff will show below the mana bar (where the target buff should be).

http://i128.photobucket.com/albums/p179/ninetysix2/debuffs.jpg


When the target gets a buff, it pushes the debuffs ONE line down.

http://i128.photobucket.com/albums/p179/ninetysix2/buffs.jpg

Here's the modified layout. I took out the combo codes since I couldn't get it to work...I"ll work on that some other time.

Thanks again :)


www.forgottenaspects.com/96/frigid.zip

Apoco
10-20-2008, 04:16 AM
http://ace.pastey.net/98913

(will work with the next build(3.01.1)

Ninetysx
10-20-2008, 05:06 AM
You are awesome! Looking forward to the next build :)

Ninetysx
10-24-2008, 03:03 AM
Any idea why the hp bars are dark gray? Thanks again.

a67rhf7823jn8747==