Deadly Functions version 2.4
Installation: Extract the ZIP file to the Interface/Addons folder in the World of Warcraft folder. Be sure to keep the path info intact.
History: Nightmaiden's Smart Warrior (NSW) started out as a function inside SuperMacro's 7000-character extended space. I decided since I wrote it that it shouldn't be dependent on another addon to work, so I posted (as my Rogue, Nightmaiden) on the WoW UI and Macros forum asking how to make it into an addon. Kyesarri told me how and even included the exact text to put in each file. If it wasn't for that little Gnome, this addon wouldn't exist.
As time passed, I came up with more functions in SuperMacro, and on July 21, 2006 I decided to compile them all in one addon, using NSW as a basis, but renaming it Deadly Functions since I now post as DeadlyKris on all WoW forums and since it's more than just Warrior stuff.
Then came WoW 2.0.1, and 5 of the 6 functions were rendered obsolete. Deadly Functions 2.0 was written with just the TargetInfo() function intact. I didn't bother uploading it to any mod sites except the WoWInterface WoW beta site.
On December 11 2006, I wrote a new function and added it to Deadly Functions. It's called SkillInfo, and it allows you to see what level your skill is for any skill you know. I also added slash handlers for both functions - /ti and /targetinfo will run the TargetInfo function, and /si and /skillinfo will run the SkillInfo function. Note that /si and /skillinfo take a parameter that is the name of the skill (spelled exactly right, but case insensitive) and if that is missing or incorrect (i.e. it doesn't match a skill) will check to see that all the headers are expanded, if they're not it expands them, and will report which ones it expands.
A couple more points:
This doesn't take into account skill bonuses, it's only your current base skill
/script SkillInfo() will give usage instructions and expand all headers.
As far as TargetInfo goes, typing /ti or /targetinfo will run the function and display the return value in the default chat frame, otherwise it doesn't do anything if called by itself in the manner that the others are; rather, it compiles a short string describing the target.If the target is classified as a Boss, it lists the gender, the fact that it's a raid boss, and the name, and if the Boss is dead it notes that. An example from testing (note that the return value does not include the 'Target is ' part or the punctuation at the end):
Target is a male Raid Boss named Cairne Bloodhoof.
If the target is a non-boss NPC, it lists level, gender, mob type (some Beasts will return their family rather than simply "Beast" and Silithid mobs now report "mob" instead of "Not specified" - these changes are new in 2.2), and name:
Target is a level 1 male Critter named Hare.
Target is a level 46 Bear named Ironfur Bear.
If the player is more than 9 levels below the target, it will say the minimum possible level and note that the mob might be higher. An example from testing with my former (now deleted) 22 Rogue in Deadwind Pass:
Target is a level 32 or higher beast named Sky Shadow.
Another, random example:
Target is a level 70 or higher Elite Mechanical named Fel Reaver
That same mob from a level 61+ player's perspective:
Target is a level 70 Elite Mechanical named Fel Reaver
If the target is a player, it returns the player's Level, Gender, Race, Class, Name, and Guild:
Target is a level 60 Female Undead Warlock named Demonmistres of <Lighter Thieves>.
TargetInfo is now considered fully functional as of 2.2.
Usage:
/ti
Gives info about your target
/si <skillname>
Gives skill level with the specified skill
Version history:
1.0: Initial release.
1.1: Bug fix
2.0: Beta release - removed all but TargetInfo
2.1: Added SkillInfo, slash commands
2.2: Bug fix and a general rework of TargetInfo, made Skillinfo case-insensitive.
2.4: Updated TOC for 2.4 patch
Localizations: none