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
* 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)
That's because as indicated on the API page (http://wowprogramming.com/docs/api/GetSpellBonusHealing) that function only returns one value, so you don't need to go through the adding the base and positive minus the negative to get the actual value.
__________________
"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..."
Originally posted by Cladhaire What error are you getting?
Error: attempt to perform arithmetic on local 'pos' (a nil value)
AddOn: DressToKill
File: DressToKill.lua:387: [string "return function (link, slot) local hitratin..."]
Line: 3
Count: 1
__________________
"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..."
Originally posted by Cladhaire Updated to fix the issue with level requirements, skill requirements, and now the new API change where two-handers are "equippable" for everyone in the off-hand, ostensibly due to Titan's Grip.
__________________ How about a magic trick? [pulls out a pencil and sticks it upright into the table] I'm gonna make this pencil... disappear. [Gambol's thug walks over to kill The Joker, who pushes his face into the pencil and kills him] Ta-daa! It's... gone!
Updated to fix the issue with level requirements, skill requirements, and now the new API change where two-handers are "equippable" for everyone in the off-hand, ostensibly due to Titan's Grip.
__________________
"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..."
Originally posted by Kimster Just wondering how the update is coming? i miss it
Life, etc. "Soon".
__________________
"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..."
It happens when trying to check/equip weapons and then cant get past that
Error: bad argument #1 to 'format' (string expected, got nil)
AddOn: DressToKill
File: DressToKill.lua
Line: 33
Count: 1
And can't open the configure menu get this error
Error: attempt to call global 'InterfaceOptionsFrame_OpenToFrame' (a nil value)
AddOn: DressToKill
File: DressToKill.lua
Line: 389
Count: 4
Debug
Error: attempt to call global 'InterfaceOptionsFrame_OpenToFrame' (a nil value)
AddOn: DressToKill
File: DressToKill.lua
Line: 394
Count: 1
when i got it open in the blizzard interface there are no values
Error: attempt to index local 'frame' (a number value)
File: Interface\FrameXML\UIDropDownMenu.lua
Line: 809
Count: 1
--------------------------------------------------
Error: attempt to index global 'editbox' (a nil value)
AddOn: DressToKill
File: DressToKillOptions.lua
Line: 48
Count: 3
Originally posted by Kimster I love this mod is going to be updated anytime soon?
BTW thanks for updating PR i love that one too
Yes, should be quick fixes, can you post any errors you are getting.. .that helps me move quicker.
__________________
"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..."