PDA

View Full Version : Item Struct



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

Gullork
07-18-2002, 12:53 PM
Think I've seen you over on the HQ site in the collector forums...

Anywho, this is what I've figured out so far. If ANYONE has corrections, comments, suggestions, whatever! please post them. I'm also working on figuring this out. THANKS!

---

0 - One Hand Slashing Weapons
1 - Two Hand Slashing Weapons
2 - One Hand Piercing Weapons
3 - one Hand Blunt Weapons
4 - Two Hand Blunt Weapons
5 - Archery Weapons
7 - Throwing
8 - Shields
10 - ?
11 - ?
12 - Lockpicks
14 - Food
15 - Dring
16 - Light Sources (Held?)
17 - ? Trade Skill Items ?
18 - Bandages
19 - Throwing
20 - Spells and Songs
21 - Potions (Expendable Items?)
23 - Wind Instruments
24 - Stringed Instruments
25 - Bass Instruments
26 - Percussion Instruments
27 - Archery (Ammo)
29 - Jewelry
30 - ? (One Item - Jeweled Skull)
31 - ? (Two Items - Tomes)
32 - ? Quest Notes ?
33 - Keys
34 - Coins
35 - Two Hand Piercing Weapons
36 - Fishing Poles
37 - Fishing Bait
38 - Alcohol
39 - ? Keys for Quests ?
40 - Compasses
42 - Poisons
45 - Hand to Hand Weapons

Gullork
07-18-2002, 01:21 PM
Thought I'd merge the two lists:

0 - One Hand Slashing Weapons
1 - Two Hand Slashing Weapons
2 - One Hand Piercing Weapons
3 - one Hand Blunt Weapons
4 - Two Hand Blunt Weapons
5 - Archery Weapons
7 - Throwing
8 - Shields
10 - ? Miscellaneous Items/Armor/Jewelry/Etc ?
11 - ? Miscellaneous Items/Coins/Quest Items/Etc ?
12 - Lockpicks
14 - Food
15 - Drink
16 - Simple Light Sources
17 - ? Includes most Trade Skill / Velious Quest / Research Components / other misc. non-equipable items ?
18 - Bandages
19 - Throwing
20 - Spells and Songs
21 - Potions and other non-equipable expendable items
23 - Wind Instruments
24 - Stringed Instruments
25 - Bass Instruments
26 - Percussion Instruments
27 - Archery (Ammo)
29 - Jewelry (Not all of them)
30 - (One Item So Far - Jeweled Skull)
31 - (Two Items So Far - Tomes)
32 - ? Quest Notes ?
33 - Keys
34 - Coins (Not all of them)
35 - Two Hand Piercing Weapons
36 - Fishing Poles
37 - Fishing Bait
38 - Alcohol
39 - ? Keys for Quests ?
40 - Compasses
42 - Poisons
45 - Hand to Hand Weapons

Is 10 all equipable? Is none of 11 equipable?

Still in progress: 10, 11, 17, 30, 31, 32, 34, 39

Any info greatly appreciated. :)

Ulrich
08-01-2002, 11:42 AM
Check the new Bazaar search window, seems the selections by type match a lot of the categories you are coming up with. I'd guess that 17 is the combinable items one. Dunno if you've looked at that yet or not. (At work so cant myself atm. :)

Gullork
08-07-2002, 01:12 AM
Yup, I've been working on this when I have time.

I've matched the following codes up to the bazaar window item search types. I'm not sure how correct this is, but this is what I've found so far:

0 One Hand Slashing
1 Two Hand Slashing
2 Piercing (One Hand)
3 One Hand Blunt
4 Two Hand Blunt
5 Bow
8 Shield
10 Armor
11 Misc
14 Food
15 Drink
16 Light
17 Combinable
18 Bandage
19 Ammo (Throwing and such)
20 Scroll (Spells and Songs)
21 Potion
23 Wind Instrument
24 Stringed Instrument
25 Brass Instruments
26 Percussion Instrument
27 Arrow
29 Jewelry
31 Book
32 Note
33 Key
35 Two Hand Piercing
38 Alcohol
45 Martial (Hand to Hand)

So this much has been confirmed with their own 'descriptions'.

Hope this helps other besides me :)

Gullork
08-07-2002, 01:16 AM
Merging again... (sorry I know it's long)

0 One Hand Slashing Weapons
1 Two Hand Slashing Weapons
2 One Hand Piercing Weapons
3 One Hand Blunt Weapons
4 Two Hand Blunt Weapons
5 Bows
7 Throwing
8 Shields
10 Armor
11 Miscellaneous
12 Lockpicks
14 Food
15 Drink
16 Light Sources
17 Combinable
18 Bandages
19 Ammo
20 Scrolls - Songs and Spells
21 Potions
23 Wind Instruments
24 Stringed Instruments
25 Bass Instruments
26 Percussion Instruments
27 Arrows
29 Jewelry
30 ? (One Item So Far - Jeweled Skull) ?
31 Books
32 Notes
33 Keys
34 Coins
35 Two Hand Piercing Weapons
36 Fishing Poles
37 Fishing Bait
38 Alcohol
39 Quest Keys
40 Compasses
42 Poisons
45 Hand to Hand Weapons

This only leaves 30 as an unknown.