How does D2BS deal with items?

I am learning to program and am trying to create a tool to assign numeric values to rare items.

Basically it will check the item against certain parameters and decide an overall quality of the item.

I’m wondering how D2BS handles items. When an item is dropped it determines the stats of the item and runs it against it’s pickit. How does it know what mods an item has? Is it reading a packet to determine the mods on a specific item? If so can you let me know which packet(s) to look into?

I haven’t delved too deeply into this as I am just learning to program. All I really want to know is how I can turn information about an item into something programmable, like text.

I would really appreciate any tips or suggestions anyone has about this.

Thanks.
Phin