Npc vendor SF: Difference between revisions
Cheapgamer (talk | contribs) (Created page with "{| align="right" | __TOC__ |} Category: SkyFire World database tables {{Back-to:World}} <big>'''The `npc_vendor` table'''</big> This table holds the vendor data for all...") |
Cheapgamer (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
<big>'''The `npc_vendor` table'''</big> | <big>'''The `npc_vendor` table'''</big> | ||
This table holds the vendor data for all NPCs that sell items. The price for each item is in its item template as [[ | This table holds the vendor data for all NPCs that sell items. The price for each item is in its item template as [[item_template_SF#BuyPrice|BuyPrice]] or as [[item_template_SF#ExtendedCost|ExtendedCost]] | ||
Line 80: | Line 80: | ||
<big>'''Description of the fields'''</big> | <big>'''Description of the fields'''</big> | ||
====entry==== | ====entry==== | ||
The ID of the creature. See [[ | The ID of the creature. See [[creature_template_SF#entry|creature_template.entry]] | ||
====slot==== | ====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). | 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==== | ====item==== | ||
The item ID. See [[ | The item ID. See [[item_template_SF#entry|item_template.entry]] | ||
====maxcount==== | ====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. | 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==== | ====incrtime==== | ||
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 [[ | 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_SF#BuyCount|item_template.BuyCount]] | ||
====ExtendedCost==== | ====ExtendedCost==== | ||
The value here corresponds to the ID in [[ItemExtendedCost. | The value here corresponds to the ID in [[ItemExtendedCost.dbc_SF|ItemExtendedCost.dbc]] and that ID controls the item's non monetary price, be it honor points, arena points, different types of badges, other items or any combination of the above. |
Latest revision as of 18:38, 4 July 2012
Back to world database list of tables.
The `npc_vendor` table
This table holds the vendor data for all NPCs that sell items. The price for each item is in its item template as BuyPrice or as ExtendedCost
Structure
Field | Type | Attributes | Key | Null | Default | Extra | Comment |
entry | mediumint(8) | unsigned | PRI | NO | 0 | ||
slot | smallint(6) | signed | NO | 0 | |||
item | mediumint(8) | signed | PRI | NO | 0 | ||
maxcount | tinyint(3) | unsigned | NO | 0 | |||
incrtime | int(10) | unsigned | NO | 0 | |||
ExtendedCost | mediumint(8) | unsigned | PRI | NO | 0 |
Description of the fields
entry
The ID of the creature. See creature_template.entry
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
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, other items or any combination of the above.