Download
(47Kb)
Download
Updated: 04-25-09 03:45 PM
Pictures
File Info
Updated:04-25-09 03:45 PM
Created:unknown
Downloads:4,888
Favorites:61
MD5:

DressToKill

Version: r29
by: Cladhaire [More]

DressToKill is a very simple add which aims to take the guesswork out of choosing the "best" equipment for a given situation. Rather than including a complicated item parsing library that can break and change over time it sacrifices speed for accuracy.

Main benefits:

  • Rather than needing to know how much attack power each unit of strength gives you, you just simply test attack power.
  • This addon encourages you to consider the EFFECTIVE stats (such as attack power, crit, +healing, etc.) rather than the confusing raw statistics.
  • Farging fun to watch ;-)

Commands:
  • /dress is the primary slash command, and will automatically execute the selected evaluation.
  • /dress config can be used to open the interface options, or you can get them from the Blizzard Interface Options menu
  • /dress <name of weight function> can be used to execute a specific weight function from a macro or slash command. For example /dress Attack Power will evaluate using the Attack Power function.
  • /dress debug - Opens a window in the interface options screen that provides more detailed information about the selection process.

This addon moves through each inventory slot, finding the local optimum given a particular "weight" function. For example the following function can be used to create a healing/mana outfit, weighting every unit of +healing at 1.0, and every unit of mana as 0.7.

Code:
local healing = GetSpellBonusHealing()
local mana = UnitManaMax("player")
return (healing * 1.0) + (mana * 0.7)
The weight functions are also passed the link of the item being evaluated. For example, the following code will create a outfit for the highest possible health, requiring that the item "Regal Protectorate" be chosen:

Code:
local name = GetItemInfo(link)
if name == "Regal Protectorate" then
  return math.huge
end
local health = UnitHealthMax("player")
return health
The way this addon works can be pretty tempermental and is effected by your buffs and shapeshifts. Therefore if you want to test for armor contribution in Bear Form, you need to be in Bear Form in order for the results to be accurate. You also should not try to modify your inventory or bags while this addon is working.

This is an early release of a working addon, so there may be bugs that need to be worked out. Please let me know if you have any issues.

It's been pointed out to the there is another addon that does something similar on the wowace repository (http://svn.wowace.com/wowace/trunk/GearEvaluator/), but after looking at it this addon uses item scanning, and there doesnt' seem to be much support for the various evaluator functions. I plan to continue updating mine as necessary.

Credits:
Aska on StormReaver(EU) - Name
Krka - For all Indents and Purposes
[Ammo] - Base code for the options screen

------------------------------------------------------------------------
r29 | Cladhaire-15704 | 2009-04-25 21:41:27 +0100 (Sat, 25 Apr 2009) | 2 lines

Updating DressToKill to actually work correctly

------------------------------------------------------------------------
r28 | Cladhaire-15704 | 2008-12-11 17:22:07 +0000 (Thu, 11 Dec 2008) | 2 lines

* Fix the opening of the options menu

------------------------------------------------------------------------
r27 | Cladhaire-15704 | 2008-11-18 16:00:15 +0000 (Tue, 18 Nov 2008) | 2 lines

* Clean up some leaked globals, bad jnwhiteh!

------------------------------------------------------------------------
r26 | Cladhaire-15704 | 2008-11-18 15:50:58 +0000 (Tue, 18 Nov 2008) | 2 lines

* Recover from errors when the API tells us to equip something in a slot (such a
s 3.0.X where it says a 2-Hander can go in the offhand due to Titan's Grip)

------------------------------------------------------------------------
r25 | Cladhaire-15704 | 2008-09-08 21:17:50 +0100 (Mon, 08 Sep 2008) | 2 lines

Added error checking for ERR_CANT_EQUIP_SKILL

------------------------------------------------------------------------
r24 | Cladhaire-15704 | 2008-08-23 08:37:30 +0100 (Sat, 23 Aug 2008) | 2 lines

Fixed a rather nasty bug that would prevent you from equipping any boe items

------------------------------------------------------------------------
r23 | Cladhaire-15704 | 2008-08-22 12:44:31 +0100 (Fri, 22 Aug 2008) | 2 lines

Fixed an error that can occur when equipping an item with a higher required level

------------------------------------------------------------------------
r22 | Cladhaire-15704 | 2008-08-17 14:53:12 +0100 (Sun, 17 Aug 2008) | 2 lines

Re-add debug messages to the chat frame, when ending a round

------------------------------------------------------------------------
r21 | Cladhaire-15704 | 2008-08-17 14:50:17 +0100 (Sun, 17 Aug 2008) | 2 lines

Remove the base from weapon scores

------------------------------------------------------------------------
r20 | Cladhaire-15704 | 2008-08-17 14:45:27 +0100 (Sun, 17 Aug 2008) | 2 lines

Fixing a typo, compile before you commit jerkheadface

------------------------------------------------------------------------
r19 | Cladhaire-15704 | 2008-08-17 14:42:30 +0100 (Sun, 17 Aug 2008) | 2 lines

Fix an error that can occur when only one trinket slot has a winner

------------------------------------------------------------------------
r18 | Cladhaire-15704 | 2008-08-17 14:31:15 +0100 (Sun, 17 Aug 2008) | 2 lines

Adding error messages to debug function, fixed a typo

------------------------------------------------------------------------
r17 | Cladhaire-15704 | 2008-08-17 14:26:26 +0100 (Sun, 17 Aug 2008) | 2 lines

Fixed the scoring for mainhand/offhand weapons, at least I think

------------------------------------------------------------------------
r16 | Cladhaire-15704 | 2008-08-17 14:21:08 +0100 (Sun, 17 Aug 2008) | 2 lines

Adding more debug messages for when we're equipping

------------------------------------------------------------------------
r15 | Cladhaire-15704 | 2008-08-17 14:11:58 +0100 (Sun, 17 Aug 2008) | 2 lines

Changes the way the offhand score is calculated

------------------------------------------------------------------------
r14 | Cladhaire-15704 | 2008-08-17 13:58:57 +0100 (Sun, 17 Aug 2008) | 2 lines

Added more debug messages, along with a 'Copy Log' button

------------------------------------------------------------------------
r13 | Cladhaire-15704 | 2008-08-17 13:21:46 +0100 (Sun, 17 Aug 2008) | 2 lines

Make the start "winner" score (- math.huge) instead of 0

------------------------------------------------------------------------
r12 | Cladhaire-15704 | 2008-08-17 11:20:29 +0100 (Sun, 17 Aug 2008) | 2 lines

Fix for mainhand/offhand code, and added a debug frame

------------------------------------------------------------------------
r11 | Cladhaire-15704 | 2008-08-16 12:03:33 +0100 (Sat, 16 Aug 2008) | 2 lines

Dry-coded support for equipped mainhand and offhand weapon combinations

------------------------------------------------------------------------
r10 | Cladhaire-15704 | 2008-08-16 11:52:37 +0100 (Sat, 16 Aug 2008) | 2 lines

Drycode of mainhand and offhand weapon support

------------------------------------------------------------------------
r9 | Cladhaire-15704 | 2008-08-15 19:16:53 +0100 (Fri, 15 Aug 2008) | 2 lines

Added DressToKill:SetDebug(value) which will enable/disable debug message depending on what you pass it. This works for one session only.

------------------------------------------------------------------------
r8 | Cladhaire-15704 | 2008-08-15 12:05:39 +0100 (Fri, 15 Aug 2008) | 2 lines

Fixed an error that occured when trying to equip an item the player doesn't have the proficiency for

------------------------------------------------------------------------
r7 | Cladhaire-15704 | 2008-08-15 08:17:26 +0100 (Fri, 15 Aug 2008) | 2 lines

Pass the item slot to the weight function and fix an error when opening interface options instead of using /dr
ess config

------------------------------------------------------------------------
r6 | Cladhaire-15704 | 2008-08-14 16:23:44 +0100 (Thu, 14 Aug 2008) | 2 lines

Fix font path

------------------------------------------------------------------------
r5 | Cladhaire-15704 | 2008-08-14 16:19:05 +0100 (Thu, 14 Aug 2008) | 2 lines

Actually pass the link to the weight function

------------------------------------------------------------------------
r4 | Cladhaire-15704 | 2008-08-14 16:13:16 +0100 (Thu, 14 Aug 2008) | 2 lines

Fixed a few typos, and a bug


------------------------------------------------------------------------
r3 | Cladhaire-15704 | 2008-08-14 16:07:06 +0100 (Thu, 14 Aug 2008) | 2 lines

Added options screen among other features

------------------------------------------------------------------------
r2 | Cladhaire-15704 | 2008-08-14 13:25:03 +0100 (Thu, 14 Aug 2008) | 2 lines

Initial commit

------------------------------------------------------------------------
r1 | wowinterface | 2008-08-14 13:15:48 +0100 (Thu, 14 Aug 2008) | 1 line

Creating inital directory structure
------------------------------------------------------------------------
Post A Reply Comment Options
Unread 01-02-11, 06:07 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Does it not work?
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 12-24-10, 10:00 PM  
southren
A Defias Bandit

Forum posts: 2
File comments: 2
Uploads: 0
Are there any plans to update this addon for cata?
Report comment to moderator  
Reply With Quote
Unread 09-17-09, 12:11 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
You can get it using GetCombatRating(CR_HIT_SPELL), like:

Code:
local hitrating = GetCombatRating(CR_HIT_SPELL)
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 09-17-09, 11:12 AM  
Purity
A Deviate Faerie Dragon

Forum posts: 16
File comments: 170
Uploads: 0
How do I apply a hit cap? Hit is kind of useless beyond (289) for arcane, where as fire mages need (445) hit?
__________________
Report comment to moderator  
Reply With Quote
Unread 05-12-09, 01:35 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Originally posted by Purity
Thank you!

Also, I am not positive DTK is configured right for attack power in the trinkets slot. It keeps choosing a trinket that removes slow, sleep and movement impairing effects instead of a trinket that increases attackpower or crit. Kind of odd, so I just swap out the trinkets myself. I would put the name of the trinkets but the names escape me and I am not in the game atm. Anyone else had an issue with trinkets?

Great tool regardless and I highly recommend it to friends! Thank you again.
DTK really doesn't do anything other than run the weight function that you specify. You can open the interface options and go to the debug log to see precisely what is happening.
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 05-11-09, 10:21 PM  
Purity
A Deviate Faerie Dragon

Forum posts: 16
File comments: 170
Uploads: 0
Thank you!

Also, I am not positive DTK is configured right for attack power in the trinkets slot. It keeps choosing a trinket that removes slow, sleep and movement impairing effects instead of a trinket that increases attackpower or crit. Kind of odd, so I just swap out the trinkets myself. I would put the name of the trinkets but the names escape me and I am not in the game atm. Anyone else had an issue with trinkets?

Great tool regardless and I highly recommend it to friends! Thank you again.
__________________
Report comment to moderator  
Reply With Quote
Unread 05-11-09, 03:30 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Originally posted by Purity
HI there, Love this jewel!

I have been messing with it some and came up with this.
Code:
local base, pos, neg = UnitAttackPower(\"player\")\nlocal apower = base + pos - neg\nlocal health = UnitHealthMax(\"player\")\nlocal base, pos, neg = UnitArmor(\"player\")\nlocal armor = base + pos - neg\nreturn (apower * 1.0) + (health * 0.8) + (armor * 0.9)
I would like to ditch the health and replace with crit. Could anyone help me with the (local) line to add? Any help is appreciated! (I play a Blood DK)
GetCritChance() will return the crit chance of your char.
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 05-11-09, 03:16 AM  
Purity
A Deviate Faerie Dragon

Forum posts: 16
File comments: 170
Uploads: 0
HI there, Love this jewel!

I have been messing with it some and came up with this.
Code:
local base, pos, neg = UnitAttackPower(\"player\")\nlocal apower = base + pos - neg\nlocal health = UnitHealthMax(\"player\")\nlocal base, pos, neg = UnitArmor(\"player\")\nlocal armor = base + pos - neg\nreturn (apower * 1.0) + (health * 0.8) + (armor * 0.9)
I would like to ditch the health and replace with crit. Could anyone help me with the (local) line to add? Any help is appreciated! (I play a Blood DK)
__________________
Report comment to moderator  
Reply With Quote
Unread 05-06-09, 09:54 PM  
Shannae
A Murloc Raider
 
Shannae's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 39
Uploads: 1
Gah! I sooo needed this earlier.

<3 <3 <3
Report comment to moderator  
Reply With Quote
Unread 05-03-09, 11:05 AM  
southren
A Defias Bandit

Forum posts: 2
File comments: 2
Uploads: 0
I need help with this.

okay so i have this hunter. i am trying to set this mod up so that i can get the most crit. i can not figure out how to do this. yes i am a noob but will some one help me please
Last edited by southren : 05-03-09 at 11:06 AM.
Report comment to moderator  
Reply With Quote
Unread 04-29-09, 10:47 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Re: one more noob question

Originally posted by Whitelighter1
Is there somewhere that i can find a list of applicable local and stat commands

Im wanting to get some value sets put together for tanks ie. def block parry
i just dont know where to look for the command lines to pull those stats out.

thanks for any help you can give and for this great mod
http://wowwiki.com
http://wowprogramming.com/docs/api
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 04-29-09, 10:35 AM  
Whitelighter1
A Murloc Raider

Forum posts: 7
File comments: 2
Uploads: 0
one more noob question

Is there somewhere that i can find a list of applicable local and stat commands

Im wanting to get some value sets put together for tanks ie. def block parry
i just dont know where to look for the command lines to pull those stats out.

thanks for any help you can give and for this great mod
Report comment to moderator  
Reply With Quote
Unread 04-29-09, 08:18 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Re: Quick question

Originally posted by Whitelighter1
are enchants factored into the value system or is it just raw stat data?
Enchants that provide stat increases are factored in, that's the whole purpose of DressToKill. It actually looks at your real stats.
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 04-29-09, 08:06 AM  
Whitelighter1
A Murloc Raider

Forum posts: 7
File comments: 2
Uploads: 0
Quick question

are enchants factored into the value system or is it just raw stat data?
Report comment to moderator  
Reply With Quote
Unread 04-26-09, 02:53 AM  
Johndu
A Kobold Labourer
 
Johndu's Avatar

Forum posts: 0
File comments: 13
Uploads: 0
Cladhaire,

Do you know I love you?

<3 <3 <3
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.