Overview

This file controls functionalities of book items (also called Tomes). This includes how they interact with their related scroll items.

Any column field name starting with “*” is considered a comment field and is not used by the game

Data Fields

Name – This is a reference field to define the book

ScrollSpellCode – Uses an item’s code to define as the scroll item for the book

BookSpellCode – Uses an item’s code to define as the book item

pSpell – Defines the item spell function to use when using the book

CodeDescription
0None
1Identify
2Town Portal
3Health Potion (Flat Amount with special bonus for class and Vitality attribute)
4Health Potion 2 (Flat Amount with no special bonus)
5Health Potion 3 (Percentage)
6Antidote Potion (Apply a state that can override other states)
7Transmogrify (Used to open the Horadric Cube’s UI for transmogrification)
8Elixir (Modify a stat)
9Herb (Apply a state using item stats)
10Skill (Cast the Fireball skill to a target unit)
11Skill XY (Cast the Fireball skill to a location using X and Y coordinates)

SpellIcon – Controls which DC6 file to display for the mouse cursor when using the scroll or book (Uses numeric indices to pick the DC6 file. Example: When using Identify, use icon 1 or buysell.DC6)

ScrollSkill – Defines which Skill to use for the scroll item (uses the “skill” field from skills.txt)

BookSkill – Defines which Skill to use for the book item (uses the “skill” field from skills.txt)

BaseCost – The starting gold cost to buy the book from an NPC

CostPerCharge – The additional gold cost added with the book’s “BaseCost” value, based on how many charges the book has