Quote (psw @ Jun 23 2018 04:49pm)
Is this because the qlvl of the monster that dropped the item will be used instead of the ilvl of the item for determining the number/quality of the affixes?
This takes a socketed weapon and makes it a magic socketed weapon with a random number of sockets. This allows you to get new magic bonuses on an otherwise non magical weapon. The original weapon properties will be removed (rerolled) when the new weapon is created. ilvl = 30. It gets 1-2 sockets.
Code
(1) ilvl = int(.5 * clvl) + int(.5 * ilvl)
(2) if ilvl > 99 then ilvl = 99
(3) if qlvl > ilvl then ilvl = qlvl
(4) if ilvl < (99 – int(qlvl/2)= then affix level = ilvl - int(qlvl/2) else affix level = ilvl * 2 - 99.
ilvl = int(.5 * 84) + int(.5 * 30), thus ilvl = 57
qlvl > ilvl, thus ilvl = 85
I think that's how it is... I got the info from arreat. I believe the ilvl of the code is the output level. If that is correct, then this is the following:
First, ilvl has to be calculated: ilvl = int(.5 * 84) + int(.5 * 30) = 42 + 15 = 57.
Then it's checked if the calculated ilvl is higher than 99. This is not the case, so ilvl remains 57. But qlvl 85 is higher than ilvl 84, so the ilvl is set to 85.
Finally, the affix level can be determined: Since 85is not smaller than (99 - int(85/ 2)) = 57 the affix level is ilvl * 2 - 99, in our example 85 * 2 - 99 = 71.
So all pre- and suffixes with a level up to 71 can spawn on the Crafted Item.
Quote (NovaToad20 @ Jun 23 2018 04:55pm)
Nice going so far dude! Dont forget you can also craft scepters too
Yeah, though I've never been a huge fan of the scepters :/ maybe one day.
This post was edited by PikaBhew on Jun 23 2018 04:46pm