Npc vendor

Материал из YTDB DataBase

(Различия между версиями)
Перейти к: навигация, поиск
(Новая страница: «{| align="right" | __TOC__ |} Back to world database list of tables. <big>'''The `npc_vendor` table'''</big> This table holds the vendor data …»)
 
(20 промежуточных версий не показаны.)
Строка 2: Строка 2:
| __TOC__
| __TOC__
|}
|}
-
Back to [[mangosdb_struct|world database]] list of tables.
+
[[Category: Mangos world database tables]]
 +
К описанию таблиц [[mangosdb_struct|базы данных mangos]].
-
<big>'''The `npc_vendor` table'''</big>
+
<big>'''Таблица `npc_vendor`'''</big>
-
This table holds the vendor data for all NPCs that sell items. The gold price for each item is in its item template as [[item_template#BuyPrice|BuyPrice]].
+
Эта таблица содержит данные для всех существ торговцев, которые продают предметы. Цена за кажый предмет в меди устанавливается в  [[item_template#BuyPrice|BuyPrice]].
-
<big>'''Structure'''</big>
+
<big>'''Структура'''</big>
{| border="1"
{| border="1"
|'''Field'''
|'''Field'''
|'''Type'''
|'''Type'''
 +
|'''Attributes'''
|'''Null'''
|'''Null'''
|'''Key'''
|'''Key'''
|'''Default'''
|'''Default'''
-
|'''Extra'''
+
|'''Comments'''
|-
|-
|[[#entry|entry]]
|[[#entry|entry]]
-
|int(10) unsigned
+
|mediumint(8)
 +
|unsigned
|NO
|NO
|PRI
|PRI
Строка 27: Строка 30:
|-
|-
|[[#item|item]]
|[[#item|item]]
-
|int(10) unsigned
+
|mediumint(8)
 +
|unsigned
|NO
|NO
|PRI
|PRI
Строка 34: Строка 38:
|-
|-
|[[#maxcount|maxcount]]
|[[#maxcount|maxcount]]
-
|int(10) unsigned
+
|tinyint(3)
 +
|unsigned
|NO
|NO
|
|
Строка 41: Строка 46:
|-
|-
|[[#incrtime|incrtime]]
|[[#incrtime|incrtime]]
-
|int(10) unsigned
+
|int(10)
 +
|unsigned
|NO
|NO
|
|
Строка 48: Строка 54:
|-
|-
|[[#ExtendedCost|ExtendedCost]]
|[[#ExtendedCost|ExtendedCost]]
-
|mediumint(8) unsigned
+
|mediumint(8)
 +
|unsigned
 +
|NO
 +
|PRI
 +
|0
 +
|
 +
|-
 +
|[[#condition_id|condition_id]]
 +
|mediumint(8)
 +
|unsigned
|NO
|NO
|
|
|0
|0
 +
|
 +
|-
 +
|[[#comments|comments]]
 +
|text
 +
|
 +
|YES
 +
|
 +
|NULL
|
|
|}
|}
-
<big>'''Description of the fields'''</big>
+
<big>'''Описание полей'''</big>
====entry====
====entry====
-
The ID of the creature. See [[creature_template#entry|creature_template.entry]]
+
Идентификатор существа. См.[[creature_template#entry|creature_template.entry]].
 +
 
====item====
====item====
-
The item ID. See [[item_template#entry|item_template.entry]]
+
Идентификатор предмета. См. [[item_template#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.
+
Максимальное количество копий предмета, которые торговец может продать. Если =0, количество копий неограничено.
 +
 
====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 [[item_template#BuyCount|item_template.BuyCount]]
+
В сочетании с  [[#maxcount|maxcount]],это поле указывает, как часто (в секундах), список товаров торговца будет обновляться, восполняя число копий для предметов с ограниченным количеством. Для таких предметов каждое обновление будет увеличивать количество на [[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.
+
ID стоимости из [[ItemExtendedCost.dbc]]. Этот ID устанавливает неденежную стоимость: очки чести, очки арены различные типы эмблем и комбинации всех вышеперечисленных. Если у предмета флаг [[item_template#Flags2|item_template.Flags2]] =4, - цена будет указана в деньгах и неденежной стоимости вместе.
 +
 
 +
====condition_id====
 +
Идентификатор условия, при выполнении которого будет доступен в продаже данный предмет. См. [[conditions#condition_entry|condition_entry]].
 +
 
 +
====comments====
 +
Комментарий.

Текущая версия на 18:30, 10 января 2017

Содержание

К описанию таблиц базы данных mangos.


Таблица `npc_vendor`

Эта таблица содержит данные для всех существ торговцев, которые продают предметы. Цена за кажый предмет в меди устанавливается в BuyPrice.


Структура

Field Type Attributes Null Key Default Comments
entry mediumint(8) unsigned NO PRI 0
item mediumint(8) unsigned NO PRI 0
maxcount tinyint(3) unsigned NO 0
incrtime int(10) unsigned NO 0
ExtendedCost mediumint(8) unsigned NO PRI 0
condition_id mediumint(8) unsigned NO 0
comments text YES NULL


Описание полей

entry

Идентификатор существа. См.creature_template.entry.

item

Идентификатор предмета. См. item_template.entry.

maxcount

Максимальное количество копий предмета, которые торговец может продать. Если =0, количество копий неограничено.

incrtime

В сочетании с maxcount,это поле указывает, как часто (в секундах), список товаров торговца будет обновляться, восполняя число копий для предметов с ограниченным количеством. Для таких предметов каждое обновление будет увеличивать количество на item_template.BuyCount.

ExtendedCost

ID стоимости из ItemExtendedCost.dbc. Этот ID устанавливает неденежную стоимость: очки чести, очки арены различные типы эмблем и комбинации всех вышеперечисленных. Если у предмета флаг item_template.Flags2 =4, - цена будет указана в деньгах и неденежной стоимости вместе.

condition_id

Идентификатор условия, при выполнении которого будет доступен в продаже данный предмет. См. condition_entry.

comments

Комментарий.

Личные инструменты