1 Attachment(s)
[Guide]Understanding EnchantJewelTable
In this tutorial, I will show to you the things I have discovered in EnchantJewelTable.dnt file located under .dn_serverfilesGameResresourceext .
You will need:
DNT Reader - http://forum.ragezone.com/f853/editing-tools-980445/
What is inside EnchantJewelTable.dnt?
- nRow - Tells the ItemID. This will be explained later.
- ApplicableValue - This describes which type of item is applicable for the enchantment gem. This will be explained too later.
- RequireMaxLevel - Required level of the item to be refined.
- RequireEnchantLevel - Required enchantment level of the item to be refined.
- EnchantLevel - Current level of the enchantment item.
- CanApplySealedItem - A boolean expression(1 or 0) of whether the enchantment can be applied on sealed items.
Attachment 142987
From http://dnarmory.com/item?i=308314386
ApplicableItem Explanation:
This part is just a logical explanation of how those numbers work, you are free not to read this as it's not yet needed in the development at this point of time. But for those people planning to create tools, etc, you may find this information useful as it will save you a lot of coding. The numbers you have seen on your table are not random, actually there's a pattern.
The enhancement gem with the lowest nRow value in our EnchantJewelTable.dnt is 308281361. It's ApplicableValue is 7896065 so we'll base everything from there.
Let 7896065 be our N. Remember, the values we're going to get here tells us on which type of item and quality an enhancement can be applied.
For the type of item :
Code:
N = primary weapon
primary weapon value + 2^(0) = off hand
offhand value + 2^(1) = hair
hair value + 2^(2) = body armor
armor value + 2^(3) = legs
legs value + 2^(5) = gloves
gloves + 2^(6) = shoes
For the quality of item:
Code:
N = normal
normal value + 2^14 = magic
magic value + 2^15 = rare
rare value + 2^16 = epic
epic value + 2^17 = unique
unique value * 62 = legendary
Let's try one:
We want to know the ApplicableValue of a hair itemwith a rare quality for our enhancement.
So we first compute for the item type, which is hair, we use the value of N above.
Code:
7896065(primary weap value) + 2^0 = 7896066(offhand value) + 2^1 = 7896068(hair value)
We get 7896068 but the item quality is still normal. So we compute for the rare value.
Code:
7896068(normal value) + 2^14 = 7912452(magic value) + 2 ^ 15 = 7945220(rare value)
Now we're done, and we now know that 7945220 is the ApplicableValue for hair item with rare quality.
Let's check
http://oi39.tinypic.com/sdnwog.jpg
Now we see the table with rare hair ApplicableValues, let's use the first nRow(ItemID) value in the image to check, which is 308318483.
http://dnarmory.com/item?i=308318483
Now I will tell you a little bit about ItemID's for enchantments.
There are two types of Geode enchantment, the Spiral and the Vortex. The thing is the ItemID for a Spiral enchantment is always just 256 greater than the Vortex ItemID with just the same type of enchantment.
e.g. The link above, subtract 256 from the ItemID and you get just the same enchantment but Vortex.
http://dnarmory.com/item?i=308318227
Thank you for reading. That's all I've observed so far.
Re: [Guide]Understanding EnchantJewelTable
沙发~
thank you 4 sharing!
hoping more dnt edit teaching..
Re: [Guide]Understanding EnchantJewelTable
I love your posts Thorin. Always informative. ;)
Re: [Guide]Understanding EnchantJewelTable