Help

ItemLevelDKP

Unit Frames Login to Add Favorites
  • 0 Likes
  • World of Warcraft
  • 19,920 Downloads
  • Supports: 4.0.6
  • 2 Average Daily Downloads
  • Comments
  • Created 2/12/2007 11:21:13 PM
  • Updated 3/5/2011 11:14:41 AM
  • 91 Favorites
  • Project Site
  • License: All Rights Reserved
  • Release Type: Release
  • Newest File: ItemLvlDKP - 4.0.6 r36
or

About ItemLevelDKP

ABOUT


ItemLevelDKP is an addon for calculating DKP based on the item's item level, quality and slot. The result is a price tuned to an item's worth based on what Blizz gives the item of stats.

The calculation is based around the fact that the quality of an item will decide some of the price:

     Blue      = (itemLevel - 1.84) / 6.4
     Epic      = (itemLevel - 1.3) / 5.2
     Legendary = itemLevel

ilvl 359 gives:

     Blue      = 55.8
     Epic      = 68.8
     Legendary = 359

This is the factor which you base your cost on. Secondly you have a slot mod which is a factor that deal with items getting less item budget based on slot.

     head = 1
     neck =  0.54
     shoulder = 0.74
     chest = 1
     waist = 0.74
     legs = 1
     feet = 0.74
     wrist = 0.54
     hand = 0.74
     finger = 0.54
     trinket = 0.68
     cloak = 0.54
     weapon = 1
     shield = 0.65
     2h weapon = 1.5
     MH weapon = 1
     OH weapon = 1
     off hand = 0.52
     bow/xbow/gun = 1.5
     wand = 0.50
     relic = 0.30

This is multiplied with the base cost from item level and quality. A epic, ilvl 359 2h sword will be:

     DKP = (itemLevel - 1.3) / 5.2 * 1.5
     DKP = 103.2

Pricing is limited to armor and weapons, but stuff like tabards and thrown weapons are not included.

TODOS AND BUGS


  • Make a config panel to edit some factors and numbers.
  • Support lists of item priority?
  • Work out a formula for Legendary Items (Just using item level isn't going to work anymore)


CONTRIBUTE


Send me patches on either of the channels listed below. I cannot guarantee all modifications implemented into the addon, but I will do my best to expand ItemLevelDKP.

CREDITS


Written by Raut of Exodus, DraenorEU. You may be able to contact him at

Updated for Cataclysm by Sanctusvirgo of Equilibrium, Laughing-Skull EU. You can contact me at

A lot of the thinking behind this addon is stolen from

 http://www.wowwiki.com/Formulas:Item_Values

Thanks to Lorgoth of Exodus, DraenorEU for input and advice. Also thanks to draenoreu.com and my old guild, the-cabal.net, for healthy discussions.

Based on Lazare of LightbringerUS work, PriceTag. He claims to have gotten code from the following people:

 "Most of the credit goes to Vita's DKP Tooltip mod and
  to Ratings Buster.  The blame is mine alone.  :-)"

------------------------------------------------------------------------
r43 | sanctusvirgo | 2011-03-05 17:14:37 +0000 (Sat, 05 Mar 2011) | 1 line
Changed paths:
   A /trunk/libs
   A /trunk/libs/AceAddon-2.0
   A /trunk/libs/AceAddon-2.0/AceAddon-2.0.lua
   A /trunk/libs/AceAddon-2.0/AceAddon-2.0.toc
   A /trunk/libs/AceConsole-2.0
   A /trunk/libs/AceConsole-2.0/AceConsole-2.0.lua
   A /trunk/libs/AceConsole-2.0/AceConsole-2.0.toc
   A /trunk/libs/AceDebug-2.0
   A /trunk/libs/AceDebug-2.0/AceDebug-2.0.lua
   A /trunk/libs/AceDebug-2.0/AceDebug-2.0.toc
   A /trunk/libs/AceEvent-2.0
   A /trunk/libs/AceEvent-2.0/AceEvent-2.0.lua
   A /trunk/libs/AceEvent-2.0/AceEvent-2.0.toc
   A /trunk/libs/AceHook-2.1
   A /trunk/libs/AceHook-2.1/AceHook-2.1.lua
   A /trunk/libs/AceHook-2.1/AceHook-2.1.toc
   A /trunk/libs/AceLibrary
   A /trunk/libs/AceLibrary/AceLibrary.lua
   A /trunk/libs/AceLibrary/AceLibrary.toc
   A /trunk/libs/AceLocale-2.2
   A /trunk/libs/AceLocale-2.2/AceLocale-2.2.lua
   A /trunk/libs/AceLocale-2.2/AceLocale-2.2.toc
   A /trunk/libs/AceOO-2.0
   A /trunk/libs/AceOO-2.0/AceOO-2.0.lua
   A /trunk/libs/AceOO-2.0/AceOO-2.0.toc

Libs upload for the addon
------------------------------------------------------------------------
r42 | sanctusvirgo | 2011-03-05 16:27:52 +0000 (Sat, 05 Mar 2011) | 1 line
Changed paths:
   A /trunk/Changelog-ItemLevelDKP-r36.txt

Adding working copy
------------------------------------------------------------------------
r41 | sanctusvirgo | 2011-03-05 16:27:32 +0000 (Sat, 05 Mar 2011) | 1 line
Changed paths:
   A /trunk/readme.txt

Adding working copy
------------------------------------------------------------------------
r40 | sanctusvirgo | 2011-03-05 16:27:13 +0000 (Sat, 05 Mar 2011) | 1 line
Changed paths:
   A /trunk/priceList.lua

Adding working copy
------------------------------------------------------------------------
r39 | sanctusvirgo | 2011-03-05 16:26:52 +0000 (Sat, 05 Mar 2011) | 1 line
Changed paths:
   A /trunk/ItemLevelDKP2.toc

Adding working copy
------------------------------------------------------------------------
r38 | sanctusvirgo | 2011-03-05 16:26:32 +0000 (Sat, 05 Mar 2011) | 1 line
Changed paths:
   A /trunk/core.lua

Adding working copy
------------------------------------------------------------------------
r37 | sanctusvirgo | 2011-03-05 16:16:00 +0000 (Sat, 05 Mar 2011) | 2 lines
Changed paths:
   D /trunk/.pkgmeta

Replacing

------------------------------------------------------------------------
r36 | Sanctusvirgo | 2011-03-05 16:07:01 +0000 (Sat, 05 Mar 2011) | 2 lines
Changed paths:
   D /trunk/ItemLevelDKP.toc
   D /trunk/core.lua
   D /trunk/priceList.lua
   D /trunk/readme.txt

Replacing with recent code

------------------------------------------------------------------------
r35 | Raut | 2008-11-08 13:02:51 +0000 (Sat, 08 Nov 2008) | 1 line
Changed paths:
   M /trunk/core.lua

Fixed code for German(or probably other) clients.
------------------------------------------------------------------------

Comments

First Previous Page 1 of 3 Next Last
  • #45
    Do I have permission to copy it, and edit it so it has input fields so people can choose the min value (itemLevel - xxx) and the multiply ((itemLevel - 1.3) / xxx) value?
    If I don't get an answer (since it hasn't been updated since 5 months) I'll take it as a yes

    I did some math, and I think the best values are (for epic) -345 * 4, because everyone got around 350 itemlvl atm, and I think the gear DKP cost should be determined with howmuch it would improve your gear so these will be the DKP costs of these items (without gear slots, I think those are fine):
    » Epic itemlvl 359 = 14 * 4 = 56
    » Epic itemlvl 378 = 33 * 4 = 132
    With your calculations it would be ((itemLevel - 1.3) / 5.2):
    » Epic itemlvl 359 = 357.7 / 5.2 = ~69
    » Epic itemlvl 378 = 376.7 / 5.2 = ~72
    And that while an item with itemlvl 378 is way better than an item with itemlvl 359

    Anyway, with the inputfields these values will be customizable and it doesn't quite matter what we think is best, since all users can change it
  • #42
    It's been 2 years, but addon is now once again fully functional!
  • #43
    In r36 the formulas must have changed. An example would be, shoulders went from 204 down to like 70. r35 still has the correct values that match the formulas, but r36 is giving me problems with all the values.
  • #44
    Even the screenshots show a ilvl 100 2h item in the 114 dkp range. An item ilvl 359 2h should be 412 which it is in r35. In r36 a 2h is now 103 dkp. Is this change meant to be or did the formulas get changed incorrectly?
  • #41
    Is it somehow possible to write a macro to paste the itemcost into a chat frame?
  • #39
    I get this error message when i clink on a new item link. Happens very often.

    Interface\AddOns\ItemLevelDKP\core.lua:105: attempt to compare number with nil
    Count: 1

    Call Stack:
    [C]: ?
    Interface\AddOns\ItemLevelDKP\core.lua:105: in function `ilvlDKP'
    Interface\AddOns\ItemLevelDKP\core.lua:84: in function
    [C]: ?
    [C]: ?
    [C]: in function `SetHyperlink'
    Interface\FrameXML\ItemRef.lua:96: in function
    ...ace\AddOns\Blizzard_CombatLog\Blizzard_CombatLog.lua:3603: in function
    [C]: in function `orgfunc'
    Interface\AddOns\Prat-3.0\services\links.lua:108: in function
    (tail call): ?
    (tail call): ?
    Interface\FrameXML\ChatFrame.lua:2588: in function
    [C]: ?
    [C]: in function `ChatFrame_OnHyperlinkShow'

    [C]: ?
  • #40
    Same issue as I commented on below - itemRarity is being used before it is checked to be valid.
  • #37
    I'm having comparison with nil errors on core.lua:105 when viewing some items like rare quality enchants and some other items.
    2 and itemRarity

    Patch is

    diff -ud ItemLevelDKP r35/core.lua ItemLevelDKP/core.lua
    --- ItemLevelDKP r35/core.lua 2008-12-01 00:18:27.000000000 -0800
    +++ ItemLevelDKP/core.lua 2009-02-21 13:52:39.000000000 -0800
    @@ -102,6 +102,7 @@
    if ItemLevelDKP_List[name] then
    return -1,ItemLevelDKP_List[name]
    else
    + if not itemRarity then return -1000,0 end
    2 and itemRarity
    return -1000,0
    end
    Common subdirectories: ItemLevelDKP r35/libs and ItemLevelDKP/libs

  • #38
    Ouch. You got the error from an enchant? I'll look into it as soon as I can. Without net at home because of moving and my Wintendo disk blew up so it may take some time. Thanks for the patch.
  • #34
    the problem is just the itemType, the other strings you use to identify the different armor types, like INVTYPE_HEAD fpr example, are taken from the blizzard library. unfortunately there is nothing similar for the super item types. maybe you could just compare it to all the INVTYPE_XYZ strings instead. you would have to do it twice then but i don't think this woud make a big difference in performance. of course i agree that this would be no perfect solution but i couldn't find a method to do it different when you just use the blizzard api.
  • #32
    I haven't kept up with my school German so you'll have to mail me the locale. Does the German client have German names for all the strings or just the item super types?
  • #33
    substitute following line in core.lua for the german client:

    original:
    if (not ((itemType == "weapon" or itemType == "armor") and

    for the german client:
    if (not ((itemType == "Waffe" or itemType == "R\195\188stung") and

    greetings, mac
  • #35
    All clients should be fixed now. The item super-type was just to not have to go through the entire calculation process, but that's no big deal. Report back any problems.
  • #31
    I also use the german client. My fix is similar to the comment of Vonlani exept with "Rüstung"... it only works when I translated it with "R\195\188stung"
  • #30
    ok i fixed it myself, in ocre.lua line 106 you are comparing the recieved itemType to "Weapon" and "Armor". for the german client these strings should be "Waffe" and "Rüstung". maybe you should consider localising these strings and the ones displayed in the tooltip, i.e. "Price" would become "Preis" in german for example.
  • To post a comment, please login or register a new account.
Learn how to disable ads
Learn how to disable ads
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster Addon Downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse.com Experience
  • Premium Curse Client
  • and many More Features
  • Learn More »