Thanx to Burton Radons and Thalic for discovering most of this values and publish them.
Values taken from
SW1H01.ITM
00000000 49 54 4D 20 56 31 20 20 F6 19 00 00 51 1A 00 00
00000010 4D 49 53 43 35 36 00 00 2C 00 00 00 14 00 80 D7
00000020 4C 40 53 31 00 00 0B 00 00 00 00 00 00 00 00 00
00000030 00 00 00 00 19 00 00 00 01 00 49 53 57 31 48 30
00000040 31 00 00 00 47 53 57 31 48 30 31 00 0A 00 00 00
00000050 52 1A 00 00 FF FF FF FF 43 53 57 31 48 30 31 00
00000060 00 00 00 00 72 00 00 00 01 00 AA 00 00 00 00 00
00000070 03 00
This is a Header. A Header is 72h (114d) bytes long and contains general information like weight, price, text references and much more.
00000000 01 00 01 00 49 53 57 31 48 30 31 00 01 00 01 00
00000010 00 00 08 00 00 00 04 00 02 00 00 00 03 00 00 00
00000020 03 00 00 00 02 00 03 00 00 00 01 00 32 00 32 00
00000030 00 00 00 00 00 00 00 00
This is an ExtHeader. An ExtHeader contains information like damage (if it's a weapon), range, graphical effects and such a stuff.
00000000 07 00 02 00 05 00 00 00 15 00 00 00 02 00 00 00
00000010 00 00 64 00 00 00 00 A4 14 24 00 04 00 00 00 00
00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
This is a FeatureBlock, simply called a struct. Structs are used to define what a special item does.
Offset: Lenghth: Present Values: Description:
00000000 08h
49 54 4D 20
56 31 20 20
ITM V1
00000008 04h
F6 19 00 00
UnidentifiedItemName reference
0000000C 04h
51 1A 00 00
IdentifiedItemName reference
00000010 08h
4D 49 53 43
35 36 00 00
DestroyedItemReplacement
here: MISC56
00000018 01h
2C
ItemAttributes (Bitmask):  
bit7 bit set defines a bow
bit6 bit set defines unbreakable/magical
bit5 still unknown
bit4 bit set defines cursed
bit3 still unknown
bit2 bit set enables ground icon
bit1 bit unset allows to wear a shield
bit0 still unknown
00000019 03h
00 00 00
still unknown
0000001C 01h
14
ItemTypeIdentifier:  
00 Book
01 Amulet
02 Armor
03 Belt/Girdle
04 Boots
05 Arrow
06 Bracers
07 Helmet
08 --none
09 Potion
0A Ring
0B Scroll
0C Shield
0D undefined
0E Bullet
0F Bow
10 Dagger
11 Club/Mace
12 Sling
13 Short Sword
14 other Swords
15 Warhammer
16 Morning Star
17 Flail
18 Dart
19 1 handed Axe
1A Staff
1B Crossbow
1C undefined
1D Spear
1E Halberd
1F Bolt
20 Cloak
21 Gold
22 Miscellaneous
23 Wand
0000001D 01h
00
still unknown
0000001E 04h
80 D7 4C 40
Usability (bit set disables):  
00 Chaotic
01 Evil
02 Good
03 Neutral
04 Lawful
05 Neutral
06 Bard
07 Cleric
 
00 Illusionist
01 still unknown
02 still unknown
03 Fighter
04 still unknown
05 still unknown
06 still unknown
07 still unknown
 
00 still unknown
01 still unknown
02 Mage
03 still unknown
04 Paladin
05 Ranger
06 Thief
07 Elf
 
00 Dwarf
01 Half- Elf
02 Halfling
03 Human
04 Gnome
05 still unknown
06 Druid
07 still unknown
00000022 02h
53 31
PaperDollGraphics:  
20 20   None
32 41 2A Leather Armor
33 41 3A Chainmail
34 41 4A Plate Mail
32 57 2W Robe
33 57 3W Robe
34 57 4W Robe
42 57 BW Bow
43 42 CB Crossbow
43 4C CL Club
44 31 D1 Buckler
44 32 D2 small Shield
44 33 D3 medium Shield
44 34 D4 large Shield
44 44 DD Dagger
46 4C FL Flail
46 53 FS Flame Sword
48 30 H0 Helm
48 31 H1 Helm
48 32 H2 Helm
48 33 H3 Helm
48 34 H4 Helm
48 35 H5 Helm
48 42 HB Halberd
4D 43 MC Mace
4D 53 MS Morning Star
51 53 QS Quarter Staff
53 31 S1 1 handed Sword
53 32 S2 2 handed Sword
53 4C SL Sling
53 50 SP Spear
53 53 SS Short Sword
57 48  WH Warhammer
00000024 02h
00 00
still unknown
00000026 02h
0B 00
still unknown
00000028 0Ch
00 00 00 00
00 00 00 00
00 00 00 00
still unknown
00000034 04h
19 00 00 00
ItemPrice (Little Endian)
00000038 02h
01 00
StackValue
0000003A 08h
49 53 57 31
48 30 31 00
ItemInventoryIcon
here: ISW1H01
00000042 02h
00 00
Lore needed to identify
00000044 08h
47 53 57 31
48 30 31 00
ItemGroundIcon
here: GSW1H01
0000004C 02h
0A 00
ItemWeight (Little Endian)
0000004E 02h
00 00
still unknown
00000050 04h
52 1A 00 00
InidentifiedItemDescription reference
00000054 04h
FF FF FF FF
IdentifiedItemDescription reference
00000058 08h
43 53 57 31
48 30 31 00
ItemDescriptionPicture
here: CSW1H01
00000060 04h
00 00 00 00
still unknown
00000064 04h
72 00 00 00
ExtHeaderOffset
the offset, where the first ExtHeader starts
00000068 02h
01 00
ExtHeaderCount
the absolut number of all ExtHeaders
0000006A 04h
AA 00 00 00
FeatureBlockOffset
the offset, where the first
FeatureBlock starts
0000006E 02h
00 00
still unknown
00000070 02h
03 00
FeatureBlockCount (Equip)
counts all the structs for equipment
Offset: Lenghth: Present Values: Description:
00000000 02h
01 00
AttackType:  
00 00 default
01 00 Melee
02 00 Ranged
03 00 MagicalUse
04 00 Bow/Crossbow/Sling
00000002 02h
01 00
still unknown
00000004 08h
49 53 57 31
48 30 31 00
ItemQuickBarIcon
here: ISW1H01
0000000C 02h
01 00
Target:  
Value Meaning
01 00 target a single object
02 00 target inventory item
03 00 target dead person
04 00 target area
05 00 target self
0000000E 02h
01 00
Range
00000010 02h
00 00
AmmunitionType:  
Value Meaning
00 00 Melee
01 00 Arrow
02 00 Bolt
03 00 Bullet
00000012 02h
08 00
Speed Factor
00000014 02h
00 00
THAC0 Modifier
00000016 02h
04 00
Dice Sides
00000018 02h
02 00
Number of throws
0000001A 02h
00 00
Damage Modifier
0000001C 02h
03 00
still unknown
0000001E 02h
00 00
FeatureBockCount (Attack/Use)
00000020 02h
03 00
FeatureBlockSeperator:
sum of previous used structs
00000022 02h
00 00
Charges
00000024 08h
02 00 03
00 00 00
still unknown
0000002A 02h
01 00
EffectGrafics
0000002C 0Ch
32 00 32 00
00 00 00 00
00 00 00 00
still unknown
Offset: Lenghth: Present Values: Description:
00000000 02h
07 00
StructIdentifier
here: ColorChange
take a look at the mailing list for all aviable known structs
00000002 02h
02 00
TargetSubIdentifier:
byte 1:  
Value Meaning:
01  TargetSelf
02  TargetPresetTarget
03  TargetParty
04  GlobalTargetIncludingParty
05  GlobalTargetExcludingParty
byte 2: supposed to be a priority or a power byte, but not proofed yet :(
00000004 04h
05 00 00 00
Parameter 1: funcionality depends on implemented struct, see mailing list
00000008 04h
15 00 00 00
Parameter 2: funcionality depends on implemented struct, see mailing list
0000000C 02h
02 00
TimingIdentifier:
byte 1:  
Value Meaning:
00  Duration
01  Permanent
02  OnEquipment
03  still unknown
04  Delay
byte 2: supposed to be a TimeTypeIdentifier, but not proofed yet
0000000E 04h
00 00 00 00
EffectLength: duration/delay in seconds (Little Endian)
00000012 02h
64 00
Probability in [%]: 64 -> 100 %
00000014 08h
00 00 00 A4
14 24 00 04
FileReference: some structs need a file to work, for example 6F 00 CreateWeapon or 92 00 CastSpell
0000001C 04h
00 00 00 00
Number of Throws: [this]* d[other]
00000020 04h
00 00 00 00
Dice Sides: d[this]
00000024 04h
00 00 00 00
Saving Throws:  
Value Saving Throw vs.
00000000 No Saving Throw
01000000 Spells
02000000 Breath Weapons
04000000 Death/Poison
08000000 Wands
10000000 Petrification/Polymorph
00000028 04h
00 00 00 00
Saving Throw Bonus
0000002C 04h
00 00 00 00
still unknown

Back to Hex Editing F.A.Q./Tutorial

Made by Graf Hohfels