These files contain a description of the types of items and services available for sale in a given store, inn, tavern, or temple.
Overall structure
| Offset | Size (datatype) | Description |
|---|---|---|
| 0x0000 | 4 (char array) | Signature ('STOR') |
| 0x0004 | 4 (char array) | Version ('V1.0') |
| 0x0008 | 4 (dword) | Type? (0=store, 1=tavern, 2=inn, 3=temple) |
| 0x000c | 4 (strref) | Name |
| 0x0010 | 4 (dword) | Flags:
|
| 0x0014 | 4 (dword) | Store "sell price markup" (percentage of base price store charges for items) |
| 0x0018 | 4 (dword) | Store "buy price markup" (percentage of base price store is willing to pay) |
| 0x001c | 4 (dword) | Unknown |
| 0x0020 | 4 (dword) | Unknown |
| 0x0024 | 8 (bytes) | Unknown |
| 0x002c | 4 (dword) | Offset to Items purchased here section |
| 0x0030 | 4 (dword) | Count of items in Items purchased here section. |
| 0x0034 | 4 (dword) | Offset to Items for sale section. |
| 0x0038 | 4 (dword) | Count of Items for sale |
| 0x003c | 4 (dword) | Unknown (usually 0x64). |
| 0x0040 | 4 (dword) | Unknown (usually 0x64). |
| 0x0044 | 8 (resref) | Dialog resource for rumors. |
| 0x004c | 4 (dword) | Offset to Drinks section. |
| 0x0050 | 4 (dword) | Count of Drinks. |
| 0x0054 | 8 (resref) | Dialog resource for ???. |
| 0x005c | 4 (dword) | Bitmapped flags indicating room types available for rent:
|
| 0x0060 | 4 (dword) | Price of a peasant room. |
| 0x0064 | 4 (dword) | Price of a merchant room. |
| 0x0068 | 4 (dword) | Price of a noble room. |
| 0x006c | 4 (dword) | Price of a royal room. |
| 0x0070 | 4 (dword) | Offset to Cures section. |
| 0x0074 | 4 (dword) | Count of Cures. |
| 0x0078 | 36 (bytes) | Unknown |
| Offset | Size (datatype) | Description |
|---|---|---|
| 0x0000 | 8 (resref) | Resource name of the item in question |
| 0x0008 | 2 (word) | Unknown |
| 0x000a | 2 (word) | Usage 1. This is the first parameter passed when CreateItem is called from a script, for instance. This value probably means "the number of 'primary' uses of this item". For quantity items, this is a quantity. For some magical items, this is a number of charges. (Some items may have more than one usable magical aspect -- for instance, cast fireball 5 times and aganazzar's scorcher 10 times. In a case like that, this would be 5.) |
| 0x000c | 2 (word) | Usage 2. This is the second parameter passed when CreateItem is called from a script, for instance. This value probably means "the number of 'secondary' uses of this item". (For items which have more than one usable aspect -- for instance, cast fireball 5 times and aganazzar's scorcher 10 times. In a case like that, this would be 10.) |
| 0x000e | 2 (word) | Usage 3. This is the third parameter passed when CreateItem is called from a script, for instance. This value probably means "the number of 'tertiary' uses of this item". |
| 0x0010 | 4 (dword) | Flags. To be filled in later. |
| 0x0014 | 4 (dword) | Number of this item in stock. |
| 0x0018 | 4 (dword) | Infinite supply flag (?) |
| Offset | Size (datatype) | Description |
|---|---|---|
| 0x0000 | 8 (bytes) | Unknown |
| 0x0008 | 4 (strref) | Drink name |
| 0x000c | 4 (dword) | Drink price |
| 0x0010 | 4 (dword) | Unknown. Maybe "percentage chance of hearing a rumor if you buy this", or may indicate the strength of the alcohol's intoxicative facility. |
| Offset | Size (datatype) | Description |
|---|---|---|
| 0x0000 | 8 (resref) | Resource name of the spell to be cast on the selected person |
| 0x0008 | 4 (dword) | Price of this cure |
This is an array of dwords. These dwords indicate categories of items from the Item category codes table. The category code can also be found inside the ITM file for an itm.
[ back to index ]