“npc_vendor_template” table¶
The npc_vendor_template
table holds item lists usable for multiple
vending creatures.
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 unique identifier for the vending template. A
“creature_template” table references this from its
vendor_id
column.
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.