diff options
| author | Nay <dnpd.dd@gmail.com> | 2012-08-14 18:11:06 +0100 |
|---|---|---|
| committer | Nay <dnpd.dd@gmail.com> | 2012-08-14 18:11:06 +0100 |
| commit | c0adf370e5ac3166bb74abb6d824556fbae54f6f (patch) | |
| tree | 2b2b5aacb2e539acbbf58e92964fd6edc6529a88 /sql/updates | |
| parent | e761458b249b8f2a128867ea0bd7adf5eaec4769 (diff) | |
Core/Vendors: Add currencies to vendors
npc_vendor table gets a new field, type (1 is item, 2 is currency)
for type 1 fields still mean the same, for type 2 maxcount is buycount (without any "precision")
changed structure of SMSG_UPDATE_CURRENCY(_WEEK_LIMIT) but not enabled, wrong values are being wrongly calculated
Diffstat (limited to 'sql/updates')
| -rw-r--r-- | sql/updates/world/2012_08_14_02_world_npc_vendor.sql | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/updates/world/2012_08_14_02_world_npc_vendor.sql b/sql/updates/world/2012_08_14_02_world_npc_vendor.sql new file mode 100644 index 00000000000..de00be694fc --- /dev/null +++ b/sql/updates/world/2012_08_14_02_world_npc_vendor.sql @@ -0,0 +1,6 @@ +ALTER TABLE `npc_vendor` ADD `type` tinyint(3) unsigned NOT NULL DEFAULT '1'; +ALTER TABLE `game_event_npc_vendor` ADD `type` tinyint(3) unsigned NOT NULL DEFAULT '1'; +ALTER TABLE `npc_vendor` CHANGE `maxcount` `maxcount` mediumint(8) unsigned NOT NULL DEFAULT '0'; +ALTER TABLE `game_event_npc_vendor` CHANGE `maxcount` `maxcount` mediumint(8) unsigned NOT NULL DEFAULT '0'; +UPDATE `trinity_string` SET `content_default` = 'Item \'%u\' (type %u) not found in database.' WHERE `entry`=207; +UPDATE `trinity_string` SET `content_default` = 'Item \'%u\' (with extended cost %u, type %u) already in vendor list' WHERE `entry`=210; |
