Misc
Misc
txt
Misc.txt
Written by: Phrozen Heart
Written on: Fri Jan 12, 2007 4:20 pm
Last modified: Wed Oct 24, 2018 2:23 pm
Views: 14979
Description: by Kingpin & Ric Faith, restyled by Ogodei
Categories: File Guides (1.1x)
OVERVIEW
Armor.txt ,Misc.txt and Weapons.txt have many identical columns. That's because in fact these 3 text files are,
in truth, three parts of a single big file : when the game reads these 3 tables, it merges them all, one after
another, into one and unique table. These 3 text files contain all the base items of the game
: normal / exceptional / elite versions of the in-game items. Incidently, that means you can add columns to any
one of these 3 files. For instance if you add the columns Transmogrify,TMogType, TMogMin and TMogMax to
Armor.txt and use them for an Helm, then this Helm will be able to be Transmute into another item, something
that doesn't look possible at first glance since the 4 columns are not originally in Armor.txt.
NOTE: to add columns in a .txt, don't use D2Excel, as this program can't do the job. Instead, use MS Excel or
another spreadsheet that can import and export tab-delimited .txt files.
And is used by :
CharStats.txt
CompCode.txt
CubeMain.txt
SetItems.txt
UniqueItems.txt
COLUMN DESCRIPTIONS :
compactsave: Boolean which ranges from 0 to 1. This is used to get a smaller filesize but will NOT save any stats to
the item, this means it will not save any quantity, automagic, affixes, damage, armor, durability e.tc. This is often
used by items that don't need any stats stored like Healing potions, gems.
version: If you set it to 0, then your misc item will only be available in Classic. A value of 100, instead, makes it
available in Expansion.
levelreq: the minimum level the players need to have to use that item
https://d2mods.info/forum/kb/viewarticle?a=317 1/6
23.01.2020 The Phrozen Keep - Knowledge Base - Misc.txt
spawnable: if set to 0 , this field tells the game that the item
cannot be found for sale when you interact with NPC's. Setting it to 1 has the opposite effect.
speed: If set to a positive value, then it slows down your character when worn. Negative
values, instead, will render the character faster.
durability - nodurability - durwarning: Durability sets the base durability, and ranges from
0 to 255(if set higher or lower than these two caps, you'll have a
rollover). NoDurability means the item has not any durability. DurWarning displays the warning icon on the right part of
your
screen when the Durability of the item hits the amount set here.
gamble cost:: Overrides the default Gamble Cost, but it only works for Rings and Amulets
[ code: This is a 3 or 4 alphanumeric code which identifies the item for certain purposes.
alternategfx : it's the code of the DCC used by the Player animation while equipping the item.
component: Layer of the Player Animation used by the item, taken from Composit.txt
The Composit table is indexed as follows:
1.Head HD
2.Torso TR
3.Legs LG
4.RightArm RA
5.LeftArm LA
6.RightHand RH
7.LeftHand LH
8.Shield SH
9.Special1 S1 (shoulder #1)
10.Special2 S2 (shoulder #2)
11-Special3 S3
12-Special4 S4
13.Special5 S5
14.Special6 S6
invwidth- invheight: width and heght of the item, in terms of inventory cells.
hasinv: 1 can be socketed,0 cannot be socketed (You need to set MaxSock 1/25/40 in itemtypes.txt to at least 1 to
have sockets in the item)
hasinv- gemsockets - gemapplytype : These three columns are used as socketing parameters.
- hasinv states if the item has an "inventory", meaning it's able to store gems or runes within. ( 1 : yes ; 0 : no).
- gemsockets determines the potential maximum amount of sockets, capped to width * height. In addition, there are
three fields in ItemTypes.txtthat limit the number of sockets, based on the level of the monster that drops the item.
https://d2mods.info/forum/kb/viewarticle?a=317 2/6
23.01.2020 The Phrozen Keep - Knowledge Base - Misc.txt
0 = weapon
1 = armor / helm
2 = shield
If you use other values, your item won't be able to have sockets.
flippyfile - invfile - uniqueinvfile: These four columns contains DC6 filenames to use for various cases:
- flippyfile is the animation used when the item drops on the ground,
- invfile is the item image when it's in your inventory
- uniqueinvfile is used by the unique version of the item in your inventory
All of these files are located in Data\Global\Items\
Transmogrify: It states whether the item can be turned into another one by right-click or not.
TMogType: It states 3 character code which respresents the item that this item becomes when right clicked (see
Transmogrify)
useable: It specifies whether the item can be used via right-click. ( 1 : yes ; 0 : no). This is a column often used in
Misc.txt for potions and scrolls
NOTE : The game knows what to with the item by its code. Unless you're doing dll editing, don't expect an item to do
something
just because you have set this column to 1.
type: It tells the first Item base type taken from ItemTypes.txt
dropsound - dropsfxframe - usesound : these three columns are related to the item sound. The code is taken from the
field "Sound" in Sounds.txt.
- dropsound is used when the item drops on the ground.
- dropsfxframe is the point (measured in frames) after which the sound from 'dropsound' plays.
- usesound is the sound played when the item is used or moved through the inventory.
unique : If this column is set to 1 , then the item can only spawn as unique.
transparent - transtbl : Unknown. Apparently has no effect in game. TransTbl could be related to the item's blending
mode.
belt: numberic Id from belts.txt (defines number of potion slots). It states whether the item can or cannot be put
inside the belt cells. ( 1 : yes ; 0: no).
NOTE: Since Misc.txt and Armor.txt are part of the same file, it seems that the game looks for the type of the item
first, and *then* decide how to understand the value in this column.
https://d2mods.info/forum/kb/viewarticle?a=317 3/6
23.01.2020 The Phrozen Keep - Knowledge Base - Misc.txt
autobelt: Whether or not the item appears in your belt when picked up
stackable: A value of 0 means that the item cannot be stacked, while 1 means it can be stacked.
stackable - minstack - maxstack - qntwarning: These four columns handle the possibilty, for the item, to be stacked.
stackable decides if the item can be stacked or not. ( 1 : yes ; 0 : no).
minstack : Minimum quantity of the stack when the item is spawned.
maxstack : Maximum quantity of the stack when the item is spawned.
qntwarning : Quantity from which the warning message appears.
spawnstack: It tells how large is the stack when the item spawns.
missiletype: Missile gfx to load when the item is thrown, taken from Missiles.txt
spellicon: It tells which spellicon should be used, when you use the item (eg. the throwing-icon for jav's )
pSpell: Pspell is an index from a hardcoded table which allows several different effects for items that are meant to be
used in game. All temporary potions can use pSpell = 6. This is a parameter for the function that handles the temporary
items.
state - cstate1 - cstate2: This parameter is for getting an Overlay effect. this is only a visual effect.
NOTE: state and cstate1 needs to be the same stat id from States.txt
NOTE 2: cstate1 is used to get a state from States.txt . It is really important that you remember which state you have
chosen when you're using stat1, otherwise you will get a known bug (which is actually a misunderstanding in regards of
how temporary items work).
len: This parameter is used to set the timer for the temporal items. This cannot be 0.
stat1: This tells what stat to add to the player. This stat is entered in cstate1 stat id.
spelldescstr: This gives a description to your temporal item. It may come in handy to give players a short description
about what to expect when using the item.
spelldesccalc: This shows the total effect of all your items for this stats based on stat1-3.
gemoffset: unknown
https://d2mods.info/forum/kb/viewarticle?a=317 4/6
23.01.2020 The Phrozen Keep - Knowledge Base - Misc.txt
nameable : Used by the reward of Anya's quest and tells if the item can be personalized or not. ( 1 : yes ; 0 : no).
BetterGem: Used only by Gems. It indicates which gem code is the next in class when it's upgraded by a shrine or cube.
You need to write "non" for non-gems or items you don't want to be upgraded this way, or else you just fill this field
with the 3-4 letter code.
bitfield1: Bitfield used primarily for various things, most remarkably the item material.
1 = Leather item
3 = Metal item, which allows the creation of iron golem
vendorMin - vendorMax - vendorMagicMin - vendorMagicMax - vendorMagicLvl: These columns control what the
different Vendors can sells.
"Vendors" are
Charsi
Gheed
Akara
Fara
Lysander
Drognan
Hratli
Alkor
Ormus
Elzix
Asheara
Cain
Halbu
Jamella
vendorMin - vendorMax act as minimum \ maximum amount of items of this type the vendor can sell. Do not increase
these values too much or you will risk to crash the game if it spawns too many items.
vendorMagicMin - vendorMagicMax have the same purposes as the ones above, but for the magical items
PermStoreItem : This field is originally absent in Armor.txt, but you ought to add it as it's used to make Permanent
items, so that vendors will always sell them. ( 1 : yes ; 0 : no).
Transform - InvTrans : These fields let you mess around with colors.
- Transform states the colormap to use for the player's gfx
- InvTrans states the colormap to use for the inventory's gfx
You need to use the Code from Colors.txt
SkipName : For items like the viper amulet, It makes the game skips the Base name in the item description.
NightmareUpgrade - HellUpgrade : These columns handle the code of the item the Vendor will sell instead of this item
in Nightmare / Hell. Set these to 'xxx' for not having any change
mindam - maxdam: Minimum and Maximum damage that this item provide. If used on a shield or on a pair of boots,
the damage in question will be either Smite or Kick damage.
multibuy = A value of 0 means that Multibuy is not used, while 1 allows to Multibuy this item, which means that when
you buy this item via right click + shift , you will instantly fill your belt.
https://d2mods.info/forum/kb/viewarticle?a=317 6/6