View Single Post
Old 02-11-2014, 07:56 AM   #2
Shadow Stranger
Avatar
 

Join Date: December 9, 2007
Posts: 594
Default Re: Decrypting Item.dat

This is the latest understanding of what the following offsets mean. They determine when an item is prohibited to a given race/class/gender. This involves what computer programmers call "Bit manipulation".
For example, in offset 113, to deny an item to all non-Omphaaz, set all bits except 32 to 1. This will set the byte to 1 + 2 + 4 + 8 + 16 + 64 + 128 = 223.

113
Human 1
Elf 2
Dwarf 4
Gnome 8
Pixie 16
Omphaaz 32
Whiskah 64
Gourk 128

114
Ratling 1
Lizzord 2
Warrior 4
Wizard 8
Priest 16
Rogue 32
Ranger 64
Bard 128

115
Samurai 1
Paladin 2
Barbarian 4
Monk 8
Ninja 16
Warlock 32
Assassin 64
Zenmaster 128

116
Valkyrie 1
Men 2
(Women 4?)

Race only affects Omphaaz, they lose access to 125 items and in return gain only 13 items exclusive to their race. As only one race is affected, there are no worked examples for other races, hence the race bits are only guesswork.

Last edited by Shadow Stranger; 02-11-2014 at 07:58 AM.
Shadow Stranger is offline   Reply With Quote