iluvseq
07-10-2002, 02:45 PM
Several pieces of the item struct are slightly mis-identified.
The "skill" byte (0253) is in actuality only nebulously related to skills.
It would be more proper to term this the "Item Type"
For example, all Keys have this byte set to 33, all Spell Scrolls and Bard Songs have it set to 20, Food items are 14, Drinks 15, etc.
It is not immediately intuative as to the exact meaning of this byte, but it contains way more information than simply the skill type used to weild a weapon.
It does serve that purpose as well, All 1HS weapons have this byte set to 0, 2HS to 1, etc.
However, I think this is again simply a classification byte, not a "skill" byte. (In other words, all 1HS weapons are of "type" 0, and this also co-incidentally means they all use the 1HS skill)
I'd like to develop a detailed listing of exactly what the various values of this byte mean.
I have been able to figure out the following types (in addition to the types already defined in util.cpp print_skill())
8 - Shields (Includes some odd items like Rokyls Channelling Crystal, which has a shieldlike graphic when equiped)
10 - Subset of Equipable items, armor/jewelry
11 - Quest Items? Some wierdness in this category
14 - Food Items
15 - Drink Items
16 - Simple Lightsources (Lightstone, Firebeetle Eye, etc)
17 - Generic Item? Includes most Trade Skill items, Velious Quest Gems, Research Components and other misc. non-equipable items
20 - Spells/Songs All "Spell:" and "Song:" items are in this category.
21 - Potions and other "non-equipable" expendable items
25 - Brass Instruments
26 - Percussion Instruments
29 - Jewelry. All items in this class are considered Jewelry, however, not all Jewelry is in this class.
33 - Keys
37 - Bait
38 - Alcohol
That is what I have been able to figure out so far. I am still on the process of collecting items, and will post more information as I decifer it. I would like to know what other people nmow about this byte?
Also, related to this, the "Delay" byte (0249) seems to be dual use. All Bardic instruments have a value here, and it appears to directly correlate to the % increase the Item gives. Only items that are one of the "weapon" types (1HS, 2HS, etc) or are Bard Instruments, have a non-zero value for this byte, however, ALL Bard instruments have a value in this byte.
I suspect this is a dual use byte, similar to byte (0278) (Charges, # Items in stack)
I am currently working on a patch that encorporates this new information.
Hopefully users of showeq that have large item databases can help to decifer the meaning of byte 0253.
Thanks
The "skill" byte (0253) is in actuality only nebulously related to skills.
It would be more proper to term this the "Item Type"
For example, all Keys have this byte set to 33, all Spell Scrolls and Bard Songs have it set to 20, Food items are 14, Drinks 15, etc.
It is not immediately intuative as to the exact meaning of this byte, but it contains way more information than simply the skill type used to weild a weapon.
It does serve that purpose as well, All 1HS weapons have this byte set to 0, 2HS to 1, etc.
However, I think this is again simply a classification byte, not a "skill" byte. (In other words, all 1HS weapons are of "type" 0, and this also co-incidentally means they all use the 1HS skill)
I'd like to develop a detailed listing of exactly what the various values of this byte mean.
I have been able to figure out the following types (in addition to the types already defined in util.cpp print_skill())
8 - Shields (Includes some odd items like Rokyls Channelling Crystal, which has a shieldlike graphic when equiped)
10 - Subset of Equipable items, armor/jewelry
11 - Quest Items? Some wierdness in this category
14 - Food Items
15 - Drink Items
16 - Simple Lightsources (Lightstone, Firebeetle Eye, etc)
17 - Generic Item? Includes most Trade Skill items, Velious Quest Gems, Research Components and other misc. non-equipable items
20 - Spells/Songs All "Spell:" and "Song:" items are in this category.
21 - Potions and other "non-equipable" expendable items
25 - Brass Instruments
26 - Percussion Instruments
29 - Jewelry. All items in this class are considered Jewelry, however, not all Jewelry is in this class.
33 - Keys
37 - Bait
38 - Alcohol
That is what I have been able to figure out so far. I am still on the process of collecting items, and will post more information as I decifer it. I would like to know what other people nmow about this byte?
Also, related to this, the "Delay" byte (0249) seems to be dual use. All Bardic instruments have a value here, and it appears to directly correlate to the % increase the Item gives. Only items that are one of the "weapon" types (1HS, 2HS, etc) or are Bard Instruments, have a non-zero value for this byte, however, ALL Bard instruments have a value in this byte.
I suspect this is a dual use byte, similar to byte (0278) (Charges, # Items in stack)
I am currently working on a patch that encorporates this new information.
Hopefully users of showeq that have large item databases can help to decifer the meaning of byte 0253.
Thanks