[Bug Fix] Limit merchant temp item list to zone and instance (#2346)

This prevents issues with a merchant being in more than one zone as well
as guild hall merchants sharing a list of temp items
This commit is contained in:
Michael Cook (mackal)
2022-07-30 23:22:09 -04:00
committed by GitHub
parent 53b599518a
commit c6cfcc3ea9
6 changed files with 20 additions and 12 deletions
@@ -0,0 +1,3 @@
ALTER TABLE `merchantlist_temp` ADD COLUMN `zone_id` INT(11) NOT NULL DEFAULT '0' AFTER `slot`;
ALTER TABLE `merchantlist_temp` ADD COLUMN `instance_id` INT(11) NOT NULL DEFAULT '0' AFTER `zone_id`;
ALTER TABLE `merchantlist_temp` DROP PRIMARY KEY, ADD PRIMARY KEY (`npcid`, `slot`, `zone_id`, `instance_id`);