Show Nameplates when mobs are low than X% health

187 views
Skip to first unread message

Brutus

unread,
Sep 27, 2010, 5:00:16 AM9/27/10
to Tidy Plates
Hi, im playing as Demo warlock. Im using TidyPlates since Icecrown
release, and id like to know, if its possible to configure/implement
an option that only show enemy nameplates that have less than a
specific percentage of health. In my case, id like to show only
nameplates of mobs that have less than 35% health.

This feature, will help a lot at Halion 25 heroic fight, when i attack
low health adds to get a Decimation proc.

Thanks

Dan aka Binbwen

unread,
Sep 27, 2010, 6:41:49 AM9/27/10
to Tidy Plates
If you're using the Neon theme, you could open up the "TidyPlates_Neon
\DPS\Functions.lua" file, and scroll down to line 94.

That function, "DPSAlpha(unit)" controls the opacity of nameplates.
You can alter the function to reduce the opacity to 0 when mobs are
above 35%. Here's how...

The function looks like this:

local function DPSAlpha(unit)
if unit.isTarget then return 1
else
if unit.name == "Fanged Pit Viper" then return 0 end
if LocalVars.OpacityHideNeutral and unit.reaction == "NEUTRAL" then
return 0 end
if LocalVars.OpacityHideNonElites and not unit.isElite then return 0
end
if not UnitExists("target") then return 1 end
return LocalVars.OpacityNonTarget, true
end
end

Make it look like this:

local function DPSAlpha(unit)
if unit.isTarget then return 1
else
if (unit.health / unit.healthmax) > .35 then return 0 end -- ADD
THIS LINE
if unit.name == "Fanged Pit Viper" then return 0 end
if LocalVars.OpacityHideNeutral and unit.reaction == "NEUTRAL" then
return 0 end
if LocalVars.OpacityHideNonElites and not unit.isElite then return 0
end
if not UnitExists("target") then return 1 end
return LocalVars.OpacityNonTarget, true
end
end

Brutus

unread,
Sep 27, 2010, 9:34:40 PM9/27/10
to Tidy Plates
Hi, I added that line. It worket a bit, but still there is a problem.
When Adds spawn, all of them has 100% hp, so Nameplates arent show.
When they are below 35%, nameplates still doesnt show. If i press 'V'
key twice (to turn off and on), it refreshes, and nameplates of mobs
that are 35% ou low, are show.

Is there a way, to make like a refresh function?

Thanks

Dan aka Binbwen

unread,
Sep 28, 2010, 6:37:11 AM9/28/10
to Tidy Plates
Ah, that's definitely a bug; The function should be called when the
health is updated. I just made the changes to the core. The updates
should be available on Curse and Wowinterface when the admins approve
the file.

Brutus

unread,
Sep 28, 2010, 10:01:14 AM9/28/10
to Tidy Plates
Sry if I post it twice... Im posting again because I didnt see my last
message.

I downloaded the version 5.13.3 (R39) from WowInterface and made some
outdoors tests. It worked perfectly.
I'll do more tests at raid, and report if I find bugs.

Now Tidy is awesome for Demo Locks.
Thanks a lot for your help.

Brutus

unread,
Sep 28, 2010, 9:56:10 AM9/28/10
to Tidy Plates
Hi. I downloaded the version 5.13.3 (R39) from WowInterface and added
that line.
My raid is just at night, but I made some outdoors tests, and it just
worked PERFECTLY :P
I'll do more tests at raids, and report if I find bugs.

Tidy is awesome for demo locks now :D
Thanks a lot for your help.

Reply all
Reply to author
Forward
0 new messages