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

Sorted by order in the file (sort alphabetically)

## Main Header

Standard keys

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

## Drinks for sale (drink)

Standard keys

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

## Items for sale (item)

Standard keys

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

## Healing spells (cure)

Standard keys

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

## Items purchased (itempurchased)

Standard keys

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