this is what i found about the item modification.
q+8 = visual/sprite
q+c = item id (see item table)
q+10 = quality (1to6,5godly,6static artifact)
q+1c = weight (1000 = 1s, 10000=10s)
q+20 = identification (0-3,3id)
q+24 = charges
q+28 = number of dice
q+2c = dice sides
q+30 = damage bonus
q+34 = hit bonus
q+38 = dv
q+3c = pv
q+44 = bless (-2doom,1bless)
q+4c = use modifier
q+5c = furniture rank (0normal 11godly) or monster inside ball(see bestiary)
q+58 = sprite color/tint (same number as material)
q+5c = artifact name1(1-byte, from 00 to 255)
q+5d = artifact name2(1-byte, from 157 to 255)
q+60 = material (0-35, above that we have seed materials[herb,magic,etc] and finally wood on 43)
q+8c = flags (acidproof=2,fireproof=4,both=6//see elosnack page)
q+a0 = ability 1
q+a4 = ability 1 power
q+a8 = ability 2
q+ac = ability 2 power
q+b0 = ability 3
q+b4 = ability 3 power
q+b8 = ability 4
q+bc = ability 4 power
q+c0 = ability 5
q+c4 = ability 5 power
q+c8 = ability 6
q+cc = ability 6 power
q+d0 = ability 7
q+d4 = ability 7 power
q+d8 = ability 8
q+dc = ability 8 power
q+e0 = ability 9
q+e4 = ability 9 power
q+e8 = ability 10
q+ec = ability 10 power
q+f0 = ability 11
q+f4 = ability 11 power
q+f8 = ability 12
q+fc = ability 12 power
q+100= ability 13
q+104= ability 13 power
q+108= ability 14
q+10c= ability 15
q+110= ability 15 power
abilities must be added in order.
power rarely goes beyond -500 or 500, but could go A LOT higher
put these on ability #
-means protection or lowering effects,+means adding
/21+tele/22-tele/23-blind/24-paral/25-conf/26-fear/27-sleep/28-poison/29+travel/30-etherwind/31-weather/32+float/33-mutation/34+spells/35+see invi/36+absorb stamina/37+end/38+absorb mp/39+pierce/40+stop time/41-thieves/42+eat rotten/ 43-cursing words/44+crit/45+suck blood/46-growth/47+attract monsters/48-aliens/49+reward/50+extra atk/51+rngd atk/52-dmg taken/53+null dmg taken/54+cut dmg to attacker/55-bleeding/56+signals from god/57+dragon dmg/58+undead dmg/59+show religion/60+audience drunk/61+god dmg/62+mag dmg to mag attacker/63+remote blow/64-enemy crits/65+interlocking shooting/66+proximity assist/67+mana to attack/68+buff breath/69+buff trowingRock/
60000+w = maintain atrib
10000+w = increase atrib
w being these numbers=
/2life/3mana/10str/11con/12dex/13per/14ler/15wil/16mag/17chr/18spd/19luk/
20050+x = damage resist
70050+x = damage bonus
x being these numbers=
/0fire/1cold/2lightning/3darkness/4mind/5poison/6nether/7sound/8nerve/9chaos/10magic/11cut/
30150+y = buff skill
y being these numbers=
/0literacy/1gene engineering/2tactics/3weight lift/4healing/5meditation/6negotiation/7stealth/8lockpicking/9detection/10investing/11anatomy/12sense quality/13mining/14magic capacity/15memorization/16dual wield/17two hand/18shield/19heavy armor/20medium armor/21light armor/22casting/23evasion/24magic device/25disarm trap/26carpentry/27tailoring/28alchemy/29jeweler/30gardening/31faith/32traveling/33performance/34cooking/35fishing/36eye of mind/37greater evasion/38control magic/39marksman/40swimming/
80000+z = invokes abilities
z being these numbers=
/0elemental scar/1draw shadow/2nightmare/3raging roar/4chaos ball/5lulwys trick/6dimensional move/7feather/8lightning breath/9nerve breath/10nether breath/11divine wisdom/12holy veil/13hero/14speed/15regen/16holy shield/17mist of silence/18web/19lightning bolt/20darkness bolt/21mind bolt/22ice bolt/23healing rain/24grenade/25decapitation/26gravity sphere/27shining wave/