Download
(1 Kb)
Download
Updated: 02-18-10 02:04 PM
Pictures
File Info
Updated:02-18-10 02:04 PM
Created:02-18-10 02:04 PM
Downloads:2,094
Favorites:26
MD5:
ncHoverName
Version: 1.0
by: nightcracker [More]
ncHoverName is a little addon that shows the name of the mob/player you are hovering over in the WorldFrame. Class coloring and reaction coloring is enabled. The name is aligned 20px above your cursor.

Upcoming features:
- None
Suggest features!

Usage:
Install & go. No config.
Optional Files (0)


Post A Reply Comment Options
Unread 04-28-11, 05:18 PM  
ReverendD
A Rage Talon Dragon Guard
 
ReverendD's Avatar
AddOn Author - Click to view AddOns

Forum posts: 343
File comments: 53
Uploads: 1
Update?

Will this addon be updated for 4.1? really missing it.
__________________
"Computers have enabled people to make more mistakes faster than almost any invention in history, with the possible exception of tequila and hand guns" - Mitch Ratcliffe
“A computer once beat me at chess, but it was no match for me at kick boxing” - Emo Phillips
ReverendD is offline Report comment to moderator  
Reply With Quote
Unread 08-11-10, 03:41 PM  
Lord_Doom
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 9
Uploads: 1
First of all love this addon

But there is a minor annoyance, little bug with a lua error that pops up if you have your mouse over a unit(aka player, target, etc) right when the cinematic for the LK plays after you defeat him. The problem is that you have no mouse cursor to close the lua error window when trying to watch it and hitting escape closes the window plus the cinematic lol.

Wish I would have copied the lua error report but totally forgot to do so, will get it next time. Again not really a huge issue just thought I would let you know.
Last edited by Lord_Doom : 08-11-10 at 03:42 PM.
Lord_Doom is offline Report comment to moderator  
Reply With Quote
Unread 04-25-10, 07:27 AM  
ckramme
Premium Member
 
ckramme's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 190
File comments: 168
Uploads: 1
Niiiiiice Well done
ckramme is offline Report comment to moderator  
Reply With Quote
Unread 04-25-10, 05:22 AM  
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view AddOns

Forum posts: 714
File comments: 429
Uploads: 31
Originally posted by ckramme
Anyone added a ToT name to this beauty?
I tried looking at some tooltip addons to see how they did ToT, but didn't understand I single thing I read
Replace ncHoverName.lua with this file and your good to go:
http://gist.github.com/gists/378332/download

Also added level on mobs and players higher/lower then you.
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.
nightcracker is offline Report comment to moderator  
Reply With Quote
Unread 04-24-10, 04:36 PM  
ckramme
Premium Member
 
ckramme's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 190
File comments: 168
Uploads: 1
Anyone added a ToT name to this beauty?
I tried looking at some tooltip addons to see how they did ToT, but didn't understand I single thing I read
ckramme is offline Report comment to moderator  
Reply With Quote
Unread 04-11-10, 08:12 PM  
rain3x
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 19
Uploads: 7
Originally posted by nightcracker
And this is exactly the reason why I don't put in all the features they want, I want them to edit the code themselves so they learn a little
I've modified mods before, so I didn't really learn much xD

Also, here's an alternate version of the modification.

Code:
	local name = UnitName("mouseover")
	local level = UnitLevel("mouseover")
	local guild = GetGuildInfo("mouseover")
	local PVP = UnitIsPVP("mouseover")
	local AFK = UnitIsAFK("mouseover")
	local DND = UnitIsDND("mouseover")
	local prefix = ""
	local xiferp = ""
	local sub = " ["
	local sun = "]"
	local bus = ""
	local nus = ""
	local dliug = ""
	local isFriend = UnitIsFriend("player","mouseover")
	local classi = ""
	
	if ( UnitClassification("mouseover") == "worldboss" ) then classi = " World Boss" end
	if ( UnitClassification("mouseover") == "elite" ) then classi = " Elite" end
	if ( UnitClassification("mouseover") == "rare" ) then classi = " Rare" end
	if ( UnitClassification("mouseover") == "rareelite" ) then classi = " Rare Elite" end
	if PVP and not UnitIsFriend("player","mouseover") then xiferp = "<KILL> " end
	if guild then dliug = GetGuildInfo("mouseover") end
	if guild then bus = " <" end
	if guild then nus = ">" end
	if AFK then prefix = "<AFK> " end
	if DND then prefix = "<DND> " end
	
	self.text:SetTextColor(getcolor())
	self.text:SetText(xiferp..prefix..name..sub..level..classi..sun..bus..dliug..nus)
This makes NPCS look like this instead of the previous:

NPC Name [Level Rare/Elite/Rare Elite/World Boss]
rain3x is offline Report comment to moderator  
Reply With Quote
Unread 04-11-10, 11:40 AM  
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view AddOns

Forum posts: 714
File comments: 429
Uploads: 31
And this is exactly the reason why I don't put in all the features they want, I want them to edit the code themselves so they learn a little
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.
nightcracker is offline Report comment to moderator  
Reply With Quote
Unread 04-11-10, 01:31 AM  
rain3x
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 19
Uploads: 7
I've been working on modifying this, not to rerelease it, but to fit it to my needs. Maybe however you'd like to add flagged status, level, and rare/elite classification. Would be awesome =]

Here's my current solution (I realize I used roundabout ways to achieve what I wanted, but it's better than nothing =P):



Code:
	local name = UnitName("mouseover")
	local level = UnitLevel("mouseover")
	local guild = GetGuildInfo("mouseover")
	local PVP = UnitIsPVP("mouseover")
	local AFK = UnitIsAFK("mouseover")
	local DND = UnitIsDND("mouseover")
	local prefix = ""
	local xiferp = ""
	local sub = " ["
	local sun = "]"
	local bus = ""
	local nus = ""
	local dliug = ""
	local isFriend = UnitIsFriend("player","mouseover")
	local classi = ""
	local clq = ""
	local clw = ""
	
	if ( UnitClassification("mouseover") == "worldboss" ) then classi = "World Boss" end
	if ( UnitClassification("mouseover") == "elite" ) then classi = "Elite" end
	if ( UnitClassification("mouseover") == "rare" ) then classi = "Rare" end
	if ( UnitClassification("mouseover") == "rareelite" ) then classi = "Rare Elite" end
	if classi == "Rare" then clq = "[" end
	if classi == "Rare" then clw = "] " end
	if classi == "Rare Elite" then clq = "[" end
	if classi == "Rare Elite" then clw = "] " end
	if classi == "Elite" then clq = "[" end
	if classi == "Elite" then clw = "] " end
	if classi == "World Boss" then clq = "[" end
	if classi == "World Boss" then clw = "] " end
	if PVP and not UnitIsFriend("player","mouseover") then xiferp = "<KILL> " end
	if guild then dliug = GetGuildInfo("mouseover") end
	if guild then bus = " <" end
	if guild then nus = ">" end
	if AFK then prefix = "<AFK> " end
	if DND then prefix = "<DND> " end
	
	self.text:SetTextColor(getcolor())
	self.text:SetText(xiferp..prefix..clq..classi..clw..name..sub..level..sun..bus..dliug..nus)
This makes it appear like:

<PVP (if the unit is not friendly and is flagged)><DND/AFK> Name [Level] <Guild Name>



NPCs will simply show

[Classification if rare or better] NPC Name [Level]




(Cleaned it up a bit, now it would look more like this: [Rare] Bjarn [Level]
Last edited by rain3x : 04-11-10 at 06:36 PM.
rain3x is offline Report comment to moderator  
Reply With Quote
Unread 04-05-10, 08:01 AM  
ckramme
Premium Member
 
ckramme's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 190
File comments: 168
Uploads: 1
Recently started using this and it is actually quite useful not to have an entire tooltip at the mouse as I used to.

I like the level+classification idea.

One thing I'd like to see added was maybe their target. Along the lines of (80) Awsumally -> You
Its the one thing I miss in PvP.
Last edited by ckramme : 04-05-10 at 09:20 AM.
ckramme is offline Report comment to moderator  
Reply With Quote
Unread 03-18-10, 05:44 PM  
Flaster
A Fallenroot Satyr
 
Flaster's Avatar

Forum posts: 20
File comments: 13
Uploads: 0
Originally posted by nightcracker
No problem
Good day. I like your addon "ncHoverName" .Very useful mod, but absent level, and Maybe Healt. Level and healt on the right side. at least lvl please. sorry, I do not speak much English
Flaster is offline Report comment to moderator  
Reply With Quote
Unread 03-03-10, 02:06 PM  
RyuYou
A Kobold Labourer

Forum posts: 1
File comments: 26
Uploads: 0
Wonder if...2

Originally posted by nightcracker
By taking looks at other people's code and trying to modify it(just like you are now). This helped me a lot too: http://www.wowwiki.com/World_of_Warcraft_API
No, I am asking and you are providing me with the coding
This is the Code I found, but how do you get a symbol
"local classification = UnitClassification(unit);"
or is it more like this?
" if ( UnitClassification("target") == "worldboss" ) then
-- If unit is a world boss show skull regardless of level
TargetLevelText:Hide();
TargetHighLevelTexture:Show();
end"
I am cold?

" if ( UnitClassification("target") == "elite" ) then
-- If unit is a world boss show + regardless of level
TargetLevelText:Sow();
TargetHighLevelTexture:Show();
end"
or did I just break it?
Last edited by RyuYou : 03-03-10 at 02:16 PM.
RyuYou is offline Report comment to moderator  
Reply With Quote
Unread 03-03-10, 01:44 PM  
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view AddOns

Forum posts: 714
File comments: 429
Uploads: 31
Re: Re: Re: Re: Re: Re: Wonder if...

Originally posted by RyuYou
That's so cool, but sorry I forgot, about the Elite symbol, whats the code for elite and was thinking some like this "(80+) nightcracker
"+" being the symbol for elite

Where did you learn to code LUA files?
By taking looks at other people's code and trying to modify it(just like you are now). This helped me a lot too: http://www.wowwiki.com/World_of_Warcraft_API
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.
nightcracker is offline Report comment to moderator  
Reply With Quote
Unread 03-03-10, 01:38 PM  
RyuYou
A Kobold Labourer

Forum posts: 1
File comments: 26
Uploads: 0
Re: Re: Re: Re: Re: Wonder if...

Originally posted by RyuYou
The Threat thing was for more of a Party/Group/Raid, I am healer, just checking
I only wanted to hide the name so I would know that it is the target
That's so cool, but sorry I forgot, about the Elite symbol, whats the code for elite and was thinking some like this "(80+) nightcracker
"+" being the symbol for elite

Where did you learn to code LUA files?
RyuYou is offline Report comment to moderator  
Reply With Quote
Unread 03-03-10, 01:05 PM  
RyuYou
A Kobold Labourer

Forum posts: 1
File comments: 26
Uploads: 0
Re: Re: Re: Re: Wonder if...

Originally posted by nightcracker
Replace the contents of ncHoverName.lua with this contents of this file: http://pastey.net/133726+

Threat is not included since if you want to hide your target, why the heck do you want to know the threat you have on other units? I won't add this, not even for request, I'm sorry.
The Threat thing was for more of a Party/Group/Raid, I am healer, just checking
I only wanted to hide the name so I would know that it is the target
Last edited by RyuYou : 03-03-10 at 01:15 PM.
RyuYou is offline Report comment to moderator  
Reply With Quote
Unread 03-03-10, 01:00 PM  
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view AddOns

Forum posts: 714
File comments: 429
Uploads: 31
Re: Re: Re: Wonder if...

Originally posted by RyuYou
Ok, can you show me the code for "(80) Nightcracker" instead
also, is the threat thing impossible or can you show me code for it?
or the code for hiding the target name
Replace the contents of ncHoverName.lua with this contents of this file: http://pastey.net/133726+

Threat is not included since if you want to hide your target, why the heck do you want to know the threat you have on other units? I won't add this, not even for request, I'm sorry.
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.
nightcracker is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: