目录

game_event_npc_vendor 表


<-返回:World 数据库

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.

表结构

FieldTypeAttributesKeyNullDefaultExtraComment
eventEntryTINYINTSIGNED NO0
guidMEDIUMINTUNSIGNEDPRINO0
slotSMALLINTSIGNED NO0
itemMEDIUMINTUNSIGNEDPRINO0
maxcountMEDIUMINTUNSIGNED NO0
incrtimeMEDIUMINTUNSIGNED NO0
ExtendedCostMEDIUMINTUNSIGNED NO0

字段说明


eventEntry

This is the eventEntry from the game_event table that you wish to setup a vendor list for while the event is running.

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

This is an item from the item_template table.

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 item_template.BuyCount

ExtendedCost

The value here corresponds to the ID in ItemExtendedCost.dbc 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.