game_event_npc_vendor
This table allows you to change the items a vendor sells, or to create a vendor list for an NPC who does not sell items unless an event is active.
Structure
| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
|---|---|---|---|---|---|---|---|
| eventEntry | tinyint | signed | NO | Entry of the game event. | |||
| guid | int | unsigned | PRI | NO | 0 | ||
| slot | smallint | signed | MUL | NO | 0 | ||
| item | int | unsigned | PRI | NO | 0 | ||
| maxcount | int | unsigned | NO | 0 | |||
| incrtime | int | unsigned | NO | 0 | |||
| ExtendedCost | int | unsigned | NO | 0 | |||
Description of fields
eventEntry
refers to game_event.eventEntry
guid
This is the guid of the NPC that you wish to create a vendor list for.
slot
Position of the item when the vendor window opens (order from top-left to bottom.right of the window with values 0 and then 1,2,3,etc).
item
Refers to to the item_template.entry of the item being sold.
maxcount
The maximum number of copies of the item the vendor has available to be sold before incrtime is up. If 0, then it is an unlimited number of copies.
incrtime
Combined with maxcount, this field tells how often (in seconds) the vendor list is refreshed and the limited item copies are restocked. For limited item copies, every refresh, the quantity is increased by the items BuyCount.
ExtendedCost
The value here corresponds to an ItemExtendedCost ID and that ID controls the item's non monetary price, be it honor points, arena points, different types of badges or any combination of the above.
