Skip to content

npc_vendor_template Table

Reusable vendor templates - assign to NPCs via creature_template.vendor_id.


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. Vendor template ID. (see creature_template.vendor_id)
  • slot - Vendor slot position.
  • item - Primary Key. Item ID. (see item_template.entry)
  • maxcount - Stock limit.
  • incrtime - Restock time.
  • itemflags - Flags: 0x01 random restock (item restocked at random intervals), 0x02 dynamic restock (restock rate scales with the online player population).
  • condition_id - Condition. (see conditions.condition_entry)