Getting Sockets from item

12/27/2011 14:39 janvier123#1
Did anyone figure out what is on an item
(sockets)

Example:
Devastation Pants +12 (wIndex or item id: 30659) with 4 defense beads or what ever is called

In user_bag it has 2 tables that are in BINARY code
dwserialnumber & info


Both hold HEX values that dont make any sense
Default:

Code:
0x
others look like

Code:
0x19BE19BE19BE19BE
Converting this HEX to DECIMAL value

Code:
1854948400789592600
or binary code
Code:
0001100110111110000110011011111000011001101111100001101000000000
Splitting the DECIMAL value into parts of 4 does not work, cuz all (or almost) sockets are
6590 tru 6563

an other item (62658) holds a info(hex) value

Code:
0x0064
hex to decimal

Code:
100
so my question is their a way to get the sockets (filled or not) from an item in the db?

ty
12/27/2011 20:20 Zombe#2
Every 8 bytes is a socket, or a magic/noble/divine option. You split it into parts of 4 hexadecimal characters, then convert each part into decimal, and you get an option or socket id. That first example is a plain item, the second one is with 4 sockets with ids of 19BE, or 6590 in decimal. Option codes are stored the same way. There can be 8 sections max, 4 option codes for divine item, and 4 sockets. If the item is a stackable type, first 8 bytes are treated as the count of items in stack. 100 items in your example.
12/27/2011 23:01 janvier123#3
Thx zombe :)
12/28/2011 00:43 RiskYourLifeLee#4
janvier , do you wanna make a tool ?
12/28/2011 08:29 janvier123#5
maybe, if i ever find out how to code this in PHP

I cannot code this, if someone can, please post it?

THX ALLOT !!
12/28/2011 08:46 RiskYourLifeLee#6
good luck to you .
12/28/2011 10:08 Zombe#7
Quote:
Originally Posted by janvier123 View Post
maybe, if i ever find out how to code this in PHP

I cannot code this, if someone can, please post it?

THX ALLOT !!
I made some kind of mavric system a while ago through the web, I'll post it if I can find it.
12/28/2011 10:19 RiskYourLifeLee#8
mavric system ? itemoption right ?
12/28/2011 11:53 janvier123#9
Quote:
Originally Posted by Zombe View Post
I made some kind of mavric system a while ago through the web, I'll post it if I can find it.
Thx i would really love it :)