From 6fc9c4132a2a4d640e165381ff8ed41c76b1fd9b Mon Sep 17 00:00:00 2001 From: Barbz Date: Mon, 18 May 2020 19:13:14 +0200 Subject: refactor: npc_vendor table html to markdown + extra info - Add info about GM mode that I just discovered - Fix links - Remake html table into markdown for maintanability --- docs/npc_vendor.md | 96 +++++++++++++++--------------------------------------- 1 file changed, 26 insertions(+), 70 deletions(-) diff --git a/docs/npc_vendor.md b/docs/npc_vendor.md index 4721933..abc4048 100644 --- a/docs/npc_vendor.md +++ b/docs/npc_vendor.md @@ -2,78 +2,34 @@ [<-Back-to:World](database-world.md) +**General information** + +This table holds the vendor data for all NPCs that sell items or currencies. + +The price (in gold) for each item or currency is defined in its item template related entry as [BuyPrice](item_template#buyprice). +Special costs (honor, tokens etc...) are defined in this table in the column [ExtendedCost](#extendedcost). + +If you open the vendor's window in GM mode, you will see all the items sold by the vendor. If you disable GM mode, you will see the items sold like a normal player (ex: only for your own faction, only for your own class etc...). + + **Table Structure** -This table holds the vendor data for all NPCs that sell items and currency. The price for each item or currency is in its item template as [BuyPrice](item_template#item_template-BuyPrice) or as [ExtendedCost](npc_vendor#npc_vendor-ExtendedCost). - - -------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Field

Type

Attributes

Key

Null

Default

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

+| Field | Type | Attributes | Key | Null | Default | +|-------------------|--------------|------------|-----|------|---------| +| [entry][1] | mediumint(8) | unsigned | PRI | NO | 0 | +| [slot][2] | smallint(6) | signed | | NO | 0 | +| [item][3] | mediumint(8) | signed | PRI | NO | 0 | +| [maxcount][4] | tinyint(3) | unsigned | | NO | 0 | +| [incrtime][5] | int(10) | unsigned | | NO | 0 | +| [ExtendedCost][6] | mediumint(8) | unsigned | PRI | NO | 0 | + +[1]: #entry +[2]: #slot +[3]: #item +[4]: #maxcount +[5]: #incrtime +[6]: #extendedcost + **Field Descriptions** -- cgit