Core/Creature: Add support for multiple gossip menu IDs (#472)
* Core/Creature: Add support for multiple gossip menu IDs Adds support for assigning multiple gossip menu IDs to creatures and controlling them through conditions. Cherry-picked and adapted from: https://github.com/TrinityCore/TrinityCore/commit/36044a9470e9c39a71916e908ab6cf4f95677793 Also disables StormLib automatic static linking. StormLib fix suggested by @brian8544 on Discord. * merge prep --------- Co-authored-by: Ovahlord <18347559+Ovahlord@users.noreply.github.com>
This commit is contained in:
1 parent
30aab19ce5
commit
9da95e6cc9
15 files changed
+199
-96
No files matched your search
@@ -0,0 +1,14 @@
|
||||
--
|
||||
CREATE TABLE `creature_template_gossip` (
|
||||
`CreatureID` INT(10) UNSIGNED NOT NULL,
|
||||
`MenuID` INT(10) UNSIGNED NOT NULL,
|
||||
`VerifiedBuild` INT(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`CreatureID`, `MenuID`) USING BTREE
|
||||
)
|
||||
COLLATE='utf8mb4_unicode_ci'
|
||||
ENGINE=InnoDB
|
||||
;
|
||||
|
||||
INSERT INTO `creature_template_gossip` SELECT `entry`, `gossip_menu_id`, `VerifiedBuild` FROM `creature_template` WHERE `gossip_menu_id` <> 0;
|
||||
|
||||
ALTER TABLE `creature_template` DROP COLUMN `gossip_menu_id`;
|
||||
Reference in new issue
Block a user