Overview

This file controls how each town NPC manipulates their store prices

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

Data Fields

npc – Points to the matching “Id” value in the monstats.txt file. This should not be changed.

buy mult – Used to calculate the item’s price when it is bought by the NPC from the player. This number is a fraction of 1024 in the following formula: [cost] * [buy mult] / 1024

sell mult – Used to calculate the item’s price when it is sold by the NPC to the player. This number is a fraction of 1024 in the following formula: [cost] * [sell mult] / 1024

rep mult – Used to calculate the cost to repair an item. This number is a fraction of 1024 in the following formula: [cost] * [rep mult] / 1024. This is then used to influence the repair cost based on the item durability and charges.

questflag A (to questflag C) – If the player has this quest flag progress, then apply the relative additional price calculations

CodeQuest Progress
0Act 1 Prologue Seen
1Den of Evil Completed
2Sisters’ Burial Grounds Completed
3Tools of the Trade Completed
4The Search for Cain Completed
5The Forgotten Tower Completed
6Sisters to the Slaughter Completed
7Act 1 Traversed
8Act 2 Prologue Seen
9Radament’s Lair Completed
10The Horadric Staff Completed
11Tainted Sun Completed
12Arcane Sanctuary Completed
13The Summoner Completed
14The Seven Tombs Completed
15Act 2 Traversed
16Act 3 Prologue Seen
17Lam Esen’s Tome Completed
18Khalim’s Will Completed
19Blade of the Old Religion Completed
20The Golden Bird Completed
21The Blackened Temple Completed
22The Guardian Completed
23Act 3 Traversed
24Act 4 Prologue Seen
25The Fallen Angel Completed
26Terror’s End Completed
27Hell’s Forge Completed
28Act 4 Traversed
29Rogue Warning Complete
30Guard in Town Warning Complete
31Guard in Desert Warning Complete
32Dark Wanderer Seen
33Angel Warning Complete
34Act 5 Prologue Seen
35Siege on Harrogath Completed
36Rescue on Mount Arreat Completed
37Prison of Ice Completed
38Betrayal of Harrogath Completed
39Rite of Passage Completed
40Eve of Destruction Completed
41Respecialization from Akara is Completed


questbuymult A (to questbuymult C) – Same functionality as the “buy mult” field, except this relies on the “questflag” field and applies after the “buy mult” field calculation

questsellmult A (to questsellmult C) – Same functionality as the “sell mult” field, except this relies on the “questflag” field and applies after the “sell mult” field calculation

questrepmult A (to questrepmult C) – Same functionality as the “rep mult” field, except this relies on the “questflag” field and applies after the “rep mult” field calculation

max buy & max buy (N) & max buy (H) – Sets the maximum price that the NPC will pay, when the player sells an item in Normal Difficulty, Nightmare Difficulty, and Hell Difficulty, respectively