|
|
The Workshop
Diablo II Mechanics and Statistics
Knowledge is power. In this forum, we discuss detailed game mechanics and statistics, from how Diablo II functions, to the probabilities of events happening.
Questions? Read the Forum FAQ and please obey the Forum Rules.
Wein_C
Member since 30-Jan-03
|
08-Oct-02, 01:30 AM (GMT) |
 |
"Item Distribution at Vendor"
|
Recently when I decided to buy some Heavy Bracer from vendor for my Hit Power craft, I noticed a curious thing. When I was shopping in Hell games, regardless of the act I was in, all that seemed to spawn was light gauntlets and gauntlets (and their exceptional/elite version). So I decide to try a Nightmare game: in act 5 and 4, the majority was still light gauntlet and gauntlet. But when I move to act 2, chain gloves started to appear. Now my question: what determine the basic item type that a vendor have? Is it hardcoded into game what item appear in which act? Or is it determined by the clvl of the character that refresh the vendor stock? The second option seems unlikely since I was shopping with the same character in both game. Maybe some technical expert can help here? |
|
|
Printer-friendly page | Top |
|
|
ScoliosisMan
Member since 20-Sep-02
|
08-Oct-02, 10:03 AM (GMT) |
 |
1. "RE: Item Distribution at Vendor"
In response to message #0
|
Vendors are based on two things: clvl and act/difficulty.the ilvl available is clvl + 5 in normal, the ilvl is capped. iirc it's 12,20,28,36,45 for acts 1-5 respectively. i think the ilvl is capped so you can't buy elites in NM, but i don't know what it is off the top of my head. heavy braces are ilvl 43. so make sure you're lvl 38 or higher. they should be sellable in act 5 normal and on. i hope this helps. Not everyone can have a 52 degree curved back |
|
|
Printer-friendly page | Top |
|
|
Karon
Member since 1-Feb-03
|
08-Oct-02, 11:12 AM (GMT) |
|
2. "RE: Item Distribution at Vendor"
In response to message #0
|
LAST EDITED ON 09-Oct-02 AT 09:05 AM (GMT) Only part of Elite items can be spawned at the vendor's window. That is because of the Nmupgrade/Hellupgrade in armor.txt and weapon.txt.You can only buy such Elite items from NPC: (Maybe There are some flaws,cuz I made it myself:).If anyone finds something wrong,plz point it out,thx). ¡ñAct I:No elite item can be spawned. ¡ñOther Acts Weapons ============================================ War Spike ---Fara---Hralti---Halbu--Larzuk Berserker Axe ---Hralti ---Halbu --- Larzuk Decapitator ---Fara --- Hralti Champion Axe --- Hralti Glorious Axe --- Hralti,Ormus ---Halbu --- Larzuk Lich Wand --- Drognan--- Ormus --- Jamella --- Malah Unearthed Wand --- Ormus --- Jamella --- Malah Caduceus --- Ormus --- Jamella --- Malah Thunder Maul ---Halbu --- Larzuk Phase Blade ---Drognan --- Ormus --- Jamella --- Larzuk Mythical Sword --- Hralti --- Halbu --- Larzuk---Malah Champion Sword --- Hralti --- Halbu --- Larzuk Colossal Sword --- Hralti --- Halbu --- Larzuk Colossal Blade --- Halbu --- Larzuk Fanged Knife --- Fara --- Hralti--- Halbu ---Jamella--- Malah Legend Spike --- Hralti ---Halbu---Jamella--- Malah Ghost Spear --- Fara--- Asheara --- Halbu War Pike --- Fara ---Asheara --- Halbu --- Larzuk Cryptic Axe --- Hralti --- Halbu Great Poleaxe --- Hralti --- Halbu --- Larzuk Giant Thresher --- Halbu--- Larzuk Shillelah --- Drognan --- Ormus --- Jamella --- Malah Archon Staff --- Ormus --- Jamella --- Malah Ward Bow --- Asheara --- Jamella --- Larzuk Hydra Bow --- Jamella --- Larzuk Colossus Crossbow ---Asheara --- Jamella --- Larzuk Demon Crossbow ---Jamella --- Larzuk Feral Claws --- Hralti---Asheara Runic Talons --- Hralti --- Anya---Asheara Scissors Suwayyah ---Halbu---Jamella --- Larzuk---Anya Winged Knife --- Fara --- Asheara --- Halbu--- Malah Winged Axe --- Fara --- Asheara --- Halbu --- Malah Ghost Glaive --- Fara --- Asheara --- Jamella ---Anya---Malah Winged Harpoon ---Halbu---Jamella --- Anya---Malah ================================================ Armors: ================================================ Giant Conch ---F--- As Spired Helm --- Har---As--- Hal--- L Corona --- Har --- Hal---J --- L Demonhead --- O --- J Hellforged Plate ---Har--- Hal---J--- L Lacquered Plate -- O --- Hal--- L Shadow Plate ---Hal--- L Sacred Armor ---Hal--- L---An Archon Plate ---Hal ---L---An Aegis --- F --- Har--- Hal---J--- L Ward ---Har--- Hal--- L---An Crusader Gauntlets---F --- As--- Hal--- L---An Ogre Gauntlets ---As--- Hal--- L---An Mirrored Boots --- F --- As--- Hal--- L---An Myrmidon Greaves--- As--- Hal--- L---An Bone Visage ---Dro--- O --- An Troll Nest ---Dro--- O --- An Blade Barrier ---Dro --- An Notes: F=Fara O=Ormus Dro=Drognan As=Asheara Har=Harlti Hal=Halbu J=Jamella L=Larzuk An=Anya ================================================ |
|
|
Printer-friendly page | Top |
|
|
 |
|
Hammerman
Member since 13-Jan-03
|
09-Oct-02, 08:38 PM (GMT) |
 |
5. "RE: Item Distribution at Vendor"
In response to message #0
|
LAST EDITED ON 09-Oct-02 AT 11:12 PM (GMT) I've only looked a little at npc item generation, but this is what I have gathered so far. It's a little bit complicated, and with my bad English the explanation might be hard to understand. So by all means, ask if there's something you don't get.As ScoliosisMan said, ilvl = clvl + 5, with caps in normal (see his post). The game will build a list of items wich have at least 1 in the <npc>Max column in weapons/armor.txt file. Items that have qlvl higher than ilvl, will not spawn If ilvl is less than 25, there's a 1 / (MagicMax + 1) chance that the item will skip the "less-than-magic" quality selection, where the chance to be upgraded from normal to superior is: if ilvl >= 10, 25%, else 15% (also, if the ilvl is less than 5, there's a 10% chance that it'll be low quality). The game will select the quality for a number of MagMax items this way. After that, the game continues to where it would have been if it had skipped this section. Now the game will attempt to create the item with magic quality. There are two restrictions to this: 1) bitfield1 must be an odd number, 2) <npc>MagicLvl must be lower than ilvl. Number of magic items to create is rnd<(<npc>Max + adder)> + <npc>Min. Adder is 1 if ilvl is less than 25, else rnd<3> + 1. After the quality has been chosen, it'll do the difficulty and excep/elite upgrading. The game will skip all upgrading if clvl is 25 or lower (iirc, in the beta this check wasn't done, and you could buy normal/socketed elite items with low level characters in Hell). If in nm, the chance for upgrade to exceptional is: chance for excep = (ilvl * 64 + 4000) / 100,000 If it fails to upgrade to exceptional, it will use the item in NightmareUpgrade column. In hell: chance for elite = (ilvl * 16 + 1000) / 100,000 chance for excep = (ilvl * 128 + 5000) / 100,000 It will only upgrade to excep/elite item if HellUpgrade column is blank (or "xxx"), else use that item. There's a separate code for misc items, wich I haven't look at yet. Maybe someone else knows the details of how they are spawned. I also haven't looked at how it determines if the item should be socketed. Please let me know if there's anything missing or incorrect in the text above. As I said, I haven't looked at the code in much detail so I might have missed something. Edit: Minor correction about NightmareUpgrade
|
|
|
Printer-friendly page | Top |
|
|
 |
Wein_C
Member since 30-Jan-03
|
10-Oct-02, 00:23 AM (GMT) |
 |
6. "RE: Item Distribution at Vendor"
In response to message #5
|
>As ScoliosisMan said, ilvl = clvl + 5, with caps in normal >(see his post). The game will build a list of items wich >have at least 1 in the <npc>Max column in weapons/armor.txt >file. Items that have qlvl higher than ilvl, will not spawn Ok, suppose I'm in act 5 hell shopping with a lvl 90 char, why don't I see any chain gloves(or their excep/elite version)for sell? According to the above passage, all items should be able to spawn at my clvl and difficulty. Also can you explain what is the purpose of <npc>Max? I'm not really familiar with the variables the game uses. One more thing, according to Karon's list, only 2 gloves are allowed to spawn in their elite version, that means I won't be able to buy Vampirebone gloves and Vampbraces anywhere? (I'm just a bit surprised by the result, so I'm asking to make sure) |
|
|
Printer-friendly page | Top |
|
|
|
 |
Ruvanal
Charter Member
|
10-Oct-02, 02:53 AM (GMT) |
 |
7. "RE: Item Distribution at Vendor"
In response to message #6
|
First a quick example of some of the column headings in the items files. CharsiMin CharsiMax CharsiMagicMin CharsiMagicMax CharsiMagicLvl These are the column heading for determining Charsi's inventory. The first two are to indicate the min/max quanity for a normal 'normal' version of the item that she will have on hand. The next are for the min/max of magical version she should be stocking up on. All the other vendors have columns also of the format VendorMin VendorMax VendorMagicMin VendorMagicMax VendorMagicLvl In this case Hammerman used the term <npc> where I listed it as Vendor.For the upgrades to the exceptional elite versions, Hammerman explained the procedure that the game uses to handle this. Karon's tables were made taking into account these 'rules' of how to do the upgrades. In the case of Chain Gloves(mgl), they have for their HellUpgrade the code hgl which causes them to be replaced by Gauntlets instead of being allowed to appear as Chain Gloves and getting a chance to be upgraded by the percentages to their exceptional/elite forms. About 2/3 of the equipment that the vendors are slated to sell are over-ridden in this manner. Most of it is the lower base quality 'normal' items that have the HellUpgrade indicating another 'normal' items as its substitute. One more thing, according to Karon's list, only 2 gloves are allowed to spawn in their elite version, that means I won't be able to buy Vampirebone gloves and Vampbraces anywhere? (I'm just a bit surprised by the result, so I'm asking to make sure)
Yes this is why you cannot find Bramble Mitts, Vampirebone Gloves and Vambraces at any of the vendors.
|
|
|
Printer-friendly page | Top |
|
|
|
 |
|
|
|
|