Alright. Leadder reaset. I am level 12 thereabout, getting near the big smith n taking him. Pilum javelins are getting there. I want an imbued pilum, with replenish quanity. Other mods not very necessary. Just replensih. Maybe increase damage. What then? How do i calclulate this?
https://classic.battle.net/diablo2exp/items/normal/javelins.shtmlCode
When an item is generated that has prefixes the alvl is calculated* from ilvl and qlvl as follows:
If (ilvl>99) then {ilvl=99}
if (qlvl>ilvl) then {ilvl=qlvl} ;** see note below
if (magic_lvl>0) then {alvl=ilvl+magic_lvl}
else
{
if (ilvl<(99-qlvl/2))
then {alvl=ilvl-qlvl/2}
else {alvl=2*ilvl-99}
}
If (alvl>99) then {alvl=99}
*all calculations use integers so there are no fractions at any step.
** this new ilvl value is only used for the duration of this calculation. The ilvl value that is stored in the items data file will remain unchanged.
this formula determines the alvl, and the alvl determines what mods can spawn.
so we need to know the ilvl of the item (12 is your example +4 for imbue, so 16)
and we need to know the qlvl of the item (Quality level = 10, u can see on arreat summit.)
https://classic.battle.net/diablo2exp/items/normal/javelins.shtmlso now we go through the formula, go line by line
If (ilvl>99) then {ilvl=99} //
no, ilvl is not greater than 99if (qlvl>ilvl) then {ilvl=qlvl} ;** see note below no, qlvl (10) is not greater than ilvl (16)if (magic_lvl>0) then {alvl=ilvl+magic_lvl} no, pilum doesn't have a magic level. Only circlets, orbs, wands, staffs do. else //
because none of the above apply, it means we are using this formula here{
if (ilvl<(99-qlvl/2)) //
if 10 < 99 - 10/2 ... YESthen {alvl=ilvl-qlvl/2} //
This is the only calculation we gotta do to determine the alvlelse {alvl=2*ilvl-99}}
If (alvl>99) then {alvl=99}
as you can see most of the forumla above is just determining what calc to do, it's like a flow chart. If, Then.
so this is the only math u gotta do and it's simple AF
ilvl = 12 + 4
qlvl = 10
{alvl=ilvl-qlvl/2}
alvl = 16 - 10/2
alvl = 11
there you have it. everything (Weapons) alvl 11 an less can spawn on the pilum
https://classic.battle.net/diablo2exp/items/magic/pre.shtmlhttps://classic.battle.net/diablo2exp/items/magic/suf.shtmlReplenishing Replenish Quantity (5) Throwing Weapons(5)
So yes it can spawn.