So, been looking around.
Anyone know of an addon that functions like MobInfo2 that's compatible with 4.0.1?
Sadly, not a big fan of not knowing what the enemies health is, :P Not a fan of MobInfo3 either. ._.
So, been looking around.
Anyone know of an addon that functions like MobInfo2 that's compatible with 4.0.1?
Sadly, not a big fan of not knowing what the enemies health is, :P Not a fan of MobInfo3 either. ._.
Unitframe addons, and tooltip modification addons will usually cater to the health information better than mobinfo did.
Any specific ones? >_>;
Isn't that already an out-of-the-box game setting somewhere now to show the targets health?
TipTac is often suggested as a tooltip replacement, and having used it myself I found it worked fairly well.
Pitbull 4 I am currently using as my unit frames, and while I will say the customisation is not the most intuitive, it can be pretty powerful.
TipTac @ Curse.
Pitbull4 @ Curse.
I am not in the position to use either myself atm, due to the EU realms still being down, but both are indicated as compatable with 4.0.1 and having been updated during the last 11-12 hours at the time of this post.
Well, I'm not changing my unit frames just to have the info... and tiptac is simply tooltips, XD
Anyone have any other ideas about getting an addon similar to MobInfo?
You haven't needed an addon to show target health for ages. You can turn on numerical health values in the default wow interface.
I believe it's this option: http://www.madnesslabs.com/wow/image...StatusText.jpg
Forces the enemy target frame health text to show on hostile units and displays both full amount and percent.Code:local function round(num, places) return tonumber(string.format("%."..(places or 0).."f",num)) end local function short(num) if num > 10000000 then return round(num/1000000, 1).."m" elseif num > 10000 then return round(num/1000, 1).."k" else return num end end TFUtils = CreateFrame("Frame") local tftfhbt = TargetFrameTextureFrameHealthBarText local tfh = tftfhbt.Hide local tfs = tftfhbt.Show local tfs2 = function(self) self:SetAlpha(1) tfs(self) end local tfh2 = function(self) self:SetAlpha(0.7) tfs(self) end local tfst = tftfhbt.SetText function tftfhbt:SetText() if UnitExists("target") then local uh, uhm = UnitHealth("target"), UnitHealthMax("target") local pct = round(uh/uhm*100, 1) tfst(self, short(uh).."/"..short(uhm).." ("..pct.."%)") else tfst(self, "") end end local emptyfunc = function() end TFUtils:SetScript("OnEvent", function() tftfhbt.Hide = UnitCanAttack("player", "target") and tfh2 or tfh tftfhbt.Show = UnitCanAttack("player", "target") and tfs2 or tfs tftfhbt[(UnitCanAttack("player", "target") or tftfhbt:GetParent():IsMouseOver()) and "Show" or "Hide"](tftfhbt) if not UnitCanAttack("player", "target") then tftfhbt:SetAlpha(1) end if not tftfhbt:GetParent():IsMouseOver() then tftfhbt:Hide() end end) TFUtils:RegisterEvent("UNIT_FACTION") TFUtils:RegisterEvent("PLAYER_TARGET_CHANGED")
Untested. How to use. Report back with issues.
Last edited by lawomous; 2012-01-16 at 06:47 AM.
Thanks, I'll try it and tell ya how it works
EDIT: It works perfect. :3 I thank you very much. It actually shows more detailed percentages than MobInfo does too, XD
I was wondering if there's any Chance of altering it so that it shows mana in the same way, as well as friendly targets?
Last edited by Myzou; 2010-10-14 at 01:41 PM.
Untested again.Code:local function round(num, places) return tonumber(string.format("%."..(places or 0).."f",num)) end local function short(num) if num > 10000000 then return round(num/1000000, 1).."m" elseif num > 10000 then return round(num/1000, 1).."k" else return num end end TFUtils = CreateFrame("Frame") --force target frame health text to show local tftfhbt = TargetFrameTextureFrameHealthBarText local tfh = tftfhbt.Hide local tfs = tftfhbt.Show local tfs2 = function(self) self:SetAlpha(1) tfs(self) end local tfh2 = function(self) self:SetAlpha(0.7) tfs(self) end local tfst = tftfhbt.SetText function tftfhbt:SetText() if UnitExists("target") then local uh, uhm = UnitHealth("target"), UnitHealthMax("target") local pct = round(uh/uhm*100, 1) tfst(self, short(uh).."/"..short(uhm).." ("..pct.."%)") else tfst(self, "") end end local emptyfunc = function() end local tftfmbt = TargetFrameTextureFrameManaBarText local tfms = tftfmbt.Show local tfms2 = function(self) self:SetAlpha(1) tfms(self) end local tfmh2 = function(self) self:SetAlpha(0.7) tfms(self) end local tfmst = tftfmbt.SetText function tftfmbt:SetText() if UnitExists("target") and UnitPowerMax("target")>0 then local up, upm = UnitPower("target"), UnitPowerMax("target") local pct = round(up, upm*100, 1) tfmst(self, short(up).."/"..short(upm).." ("..pct.."%)") else tfmst(self, "") end end TFUtils:SetScript("OnEvent", function() --[[tftfhbt.Hide = UnitCanAttack("player", "target") and tfh2 or tfh tftfhbt.Show = UnitCanAttack("player", "target") and tfs2 or tfs--]] tftfhbt.Hide = tfh2 tftfhbt.Show = tfs2 tftfhbt[(UnitCanAttack("player", "target") or tftfhbt:GetParent():IsMouseOver()) and "Show" or "Hide"](tftfhbt) if not UnitCanAttack("player", "target") then tftfhbt:SetAlpha(1) end if not tftfhbt:GetParent():IsMouseOver() then tftfhbt:Hide() end tftfmbt.Hide = tfmh2 tftfmbt.Show = tfms2 tftfmbt[(UnitCanAttack("player", "target") or tftfmbt:GetParent():IsMouseOver()) and "Show" or "Hide"](tftfmbt) if not UnitCanAttack("player", "target") then tftfmbt:SetAlpha(1) end if not tftfmbt:GetParent():IsMouseOver() then tftfmbt:Hide() end end) TFUtils:RegisterEvent("UNIT_FACTION") TFUtils:RegisterEvent("PLAYER_TARGET_CHANGED")
Last edited by lawomous; 2012-01-16 at 06:48 AM.
Hey Treeston
The first 1 works perfectly except for 2 things:
It doesnt show mana and mana percentages
And u have to hover over them in order to make it show. Also said: Its transparent unless hovering over, can we make it show all the time?
The 2nd u posted I understand should show mana however it shows nothing and peoples name frame goes gray/white.
Any way you can fix it? Cause I really love theese addons and cant play without them
I'll check it.
EDIT:Code:local function round(num, places) return tonumber(string.format("%."..(places or 0).."f",num)) end local function short(num) if num > 10000000 then return round(num/1000000, 1).."m" elseif num > 10000 then return round(num/1000, 1).."k" else return num end end TFUtils = CreateFrame("Frame") --force target frame health text to show local tftfhbt = TargetFrameTextureFrameHealthBarText local tfh = tftfhbt.Hide local tfs = tftfhbt.Show local tfs2 = function(self) self:SetAlpha(1) tfs(self) end local tfh2 = function(self) self:SetAlpha(1) tfs(self) end local tfst = tftfhbt.SetText function tftfhbt:SetText() if UnitExists("target") then local uh, uhm = UnitHealth("target"), UnitHealthMax("target") local pct = round(uh/uhm*100, 1) tfst(self, short(uh).."/"..short(uhm).." ("..pct.."%)") else tfst(self, "") end end local emptyfunc = function() end local tftfmbt = TargetFrameTextureFrameManaBarText local tfms = tftfmbt.Show local tfms2 = function(self) self:SetAlpha(1) tfms(self) end local tfmh2 = function(self) self:SetAlpha(1) tfms(self) end local tfmst = tftfmbt.SetText function tftfmbt:SetText() if UnitExists("target") and UnitPowerMax("target")>0 then local up, upm = UnitPower("target"), UnitPowerMax("target") local pct = round(up/upm*100, 1) tfmst(self, short(up).."/"..short(upm).." ("..pct.."%)") else tfmst(self, "") end end TFUtils:SetScript("OnEvent", function() --[[tftfhbt.Hide = UnitCanAttack("player", "target") and tfh2 or tfh tftfhbt.Show = UnitCanAttack("player", "target") and tfs2 or tfs--]] tftfhbt.Hide = tfh2 tftfhbt.Show = tfs2 --tftfhbt[(UnitCanAttack("player", "target") or tftfhbt:GetParent():IsMouseOver()) and "Show" or "Hide"](tftfhbt) tftfhbt:Show() if not UnitCanAttack("player", "target") then tftfhbt:SetAlpha(1) end if not tftfhbt:GetParent():IsMouseOver() then tftfhbt:Hide() end tftfmbt.Hide = tfmh2 tftfmbt.Show = tfms2 tftfmbt[(UnitCanAttack("player", "target") or tftfmbt:GetParent():IsMouseOver()) and "Show" or "Hide"](tftfmbt) tftfmbt:Show() if not UnitCanAttack("player", "target") then tftfmbt:SetAlpha(1) end if not tftfmbt:GetParent():IsMouseOver() then tftfmbt:Hide() end end) TFUtils:RegisterEvent("UNIT_FACTION") TFUtils:RegisterEvent("PLAYER_TARGET_CHANGED")
How to use
Last edited by mmocba105e19de; 2012-04-08 at 05:16 PM. Reason: php highlighting is misleading, use [code] instead.
Ill test it after my raid. Thx a lot
Thanks a lot, this actually worked. And the addon usage is a whole log smaller than Mobinfo too.
Very nice work! *salute*
PS: just a little question though, and I'm a noob at trying to find it out myself :$
But is it in any way possible to show your own health + percentage too (same for rage)
Cause I have the option to either show % or health. But if i pick percentage my rage will show as "0%" instead of "../100" :s
Thanks on beforehand
Last edited by mmoc1290266118; 2010-11-04 at 01:00 PM.
You're welcome *yawn*. I'll check back tomorrow.
(The second I say this trolls are gonna come out of hiding. I just know it.)
They better not O.o
And thanks, I'll keep track of this topic then
Glad I'm not the only one who wanted something like this.
One issue I had with the first code you gave was that it gave a "*This Code* has been blocked by something with the Blizzard default GUI" or something similar, whenever you tried to click off a debuff, then said ignore the message, or disable the addon. Not sure if it does it with the new code though, I will test throughout the night.
The clicking off of a debuff became a protected function, and one that would not be available if there was anything beyond very basic filtering or sorting of your buffs.
If you have any buffs display addon then that is very likely the reason for the inteference, since the code there does not have any reason to modify that as far as I know.