“npc_vendor” table

The npc_vendor table holds item lists used for a singular vendor to provide.

Table structure

Field Type Null Key Default Extra
entry mediumint(8) unsigned NO PRI 0  
item mediumint(8) unsigned NO PRI 0  
maxcount tinyint(3) unsigned NO   0  
incrtime int(10) unsigned NO   0  
condition_id mediumint(8) unsigned NO   0  

Fields

entry

The vendor which should sell this item. This references the “creature_template” table tables unique ID for which the entry is valid.

item

The item a vendor should sell. This references the “item_template” table tables unique ID.

maxcount

The maximum amount of the item a vendor should carry. Set to 0 to provide unlimited supplies.

incrtime

This field decides how frequently a vendor will restock and item having a maximum count. The value is given in seconds, and for limited items, the BuyCount column of the “item_template” table is taken into account when restocking.

condition_id

This references the “conditions” table tables unique ID for which the entry is valid.