npc_vendor Table¶
Defines items sold by specific NPC vendors (per creature entry, or shared via npc_vendor_template).
Schema Summary¶
| Field | Type | Key | Null | Default | Extra |
|---|---|---|---|---|---|
entry |
mediumint(8) unsigned | PRI | NO | 0 | |
slot |
smallint(5) unsigned | NO | 0 | ||
item |
mediumint(8) unsigned | PRI | NO | 0 | |
maxcount |
tinyint(3) unsigned | NO | 0 | ||
incrtime |
int(10) unsigned | NO | 0 | ||
itemflags |
int(10) unsigned | NO | 0 | ||
condition_id |
mediumint(8) unsigned | NO | 0 |
Field Breakdown¶
entry- Primary Key. NPC entry ID (creature_template.entry).slot- Vendor slot position.item- Primary Key. Item ID (item_template.entry).maxcount- Maximum stock count (0 = unlimited).incrtime- Restock interval (seconds).itemflags- Flags:0x01random restock (item restocked at random intervals),0x02dynamic restock (restock rate scales with the online player population).condition_id- Condition required to see/buy the item. (seeconditions.condition_entry)