# STO v1 (BG, BG2, IWD, EE)

Sorted alphabetically (sort by order in the file)

## Main Header

Standard keys

Key | Type
--- | ---
buy_markup | Integer
can_buy | Boolean
can_buy_cures | Boolean
can_buy_drinks | Boolean
can_donate | Boolean
can_identify | Boolean
can_sell | Boolean
can_sell_critical | Boolean
can_steal | Boolean
capacity | Integer
cost_to_identify | Integer
deprecation_rate | Integer
disable_donation_screen | Boolean
fence | Boolean
ignore_reputation | Boolean
lore | Integer
merchant_room_available | Boolean
merchant_room_price | Integer
name | Strref
noble_room_available | Boolean
noble_room_price | Integer
peasant_room_available | Boolean
peasant_room_price | Integer
royal_room_available | Boolean
royal_room_price | Integer
rumors_donations | String (8 bytes)
rumors_drinks | String (8 bytes)
sell_markup | Integer
tavern_quality_1 | Boolean
tavern_quality_2 | Boolean
toggle_recharge | Boolean
type | Lookup (0=Store, 1=Tavern, 2=Inn, 3=Temple, 5=Container)

## Drinks for sale (drink)

Standard keys

Key | Type
--- | ---
name | Strref
price | Integer
rumor_rate | Integer

## Items for sale (item)

Standard keys

Key | Type
--- | ---
charges_1 | Integer
charges_2 | Integer
charges_3 | Integer
expiration_time | Integer
identified | Boolean
infinite_supply | Integer
number_in_stock | Integer
resref | String (8 bytes)
stolen | Boolean
undroppable | Boolean
unstealable | Boolean

## Healing spells (cure)

Standard keys

Key | Type
--- | ---
price | Integer
resref | String (8 bytes)

## Items purchased (itempurchased)

Standard keys

Key | Type
--- | ---
category | Integer