Npc vendor
Материал из YTDB DataBase
KiriX (Обсуждение | вклад) (Новая страница: «{| align="right" | __TOC__ |} Back to world database list of tables. <big>'''The `npc_vendor` table'''</big> This table holds the vendor data …») |
Neggod (Обсуждение | вклад) (→ExtendedCost) |
||
Строка 66: | Строка 66: | ||
Combined with [[#maxcount|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|item_template.BuyCount]] | Combined with [[#maxcount|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|item_template.BuyCount]] | ||
====ExtendedCost==== | ====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. | + | 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. |
Версия 18:47, 26 февраля 2010
|
Back to world database list of tables.
The `npc_vendor` table
This table holds the vendor data for all NPCs that sell items. The gold price for each item is in its item template as BuyPrice.
Structure
Field | Type | Null | Key | Default | Extra |
entry | int(10) unsigned | NO | PRI | 0 | |
item | int(10) unsigned | NO | PRI | 0 | |
maxcount | int(10) unsigned | NO | 0 | ||
incrtime | int(10) unsigned | NO | 0 | ||
ExtendedCost | mediumint(8) unsigned | NO | 0 |
Description of the fields
entry
The ID of the creature. See creature_template.entry
item
The item ID. See item_template.entry
maxcount
The maximum number of copies of the item the vendor has available to be sold. 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.