forked from azerothcore/azerothcore-wotlk
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NPCBots: Implement bot item sets similar to player equiment manager f…
…eature item sets. New config: `NpcBot.GearBank.EquipmentSets` to set maximum item sets for bot owners to save (cherry picked from commit 5bc8bd1cd84f37b9bc115950a8cafb44de441eaf) # Conflicts: # data/sql/custom/db_characters/2024_11_13_00_characters_npcbot_gear_set.sql # data/sql/custom/db_characters/2024_11_13_01_characters_npcbot_gear_set_item.sql # data/sql/custom/db_world/2024_11_13_00_npc_text.sql # src/server/game/AI/NpcBots/bot_ai.cpp # src/server/game/Entities/Player/Player.cpp # src/server/worldserver/worldserver.conf.dist
- Loading branch information
Showing
14 changed files
with
637 additions
and
96 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
data/sql/custom/db_characters/2024_11_13_00_characters_npcbot_gear_set.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- | ||
DROP TABLE IF EXISTS `characters_npcbot_gear_set`; | ||
CREATE TABLE `characters_npcbot_gear_set` ( | ||
`owner` int unsigned NOT NULL DEFAULT '0', | ||
`set_id` tinyint unsigned NOT NULL DEFAULT '0', | ||
`set_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | ||
PRIMARY KEY (`owner`,`set_id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Bot equipment sets system'; |
9 changes: 9 additions & 0 deletions
9
data/sql/custom/db_characters/2024_11_13_01_characters_npcbot_gear_set_item.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- | ||
DROP TABLE IF EXISTS `characters_npcbot_gear_set_item`; | ||
CREATE TABLE `characters_npcbot_gear_set_item` ( | ||
`owner` int unsigned NOT NULL DEFAULT '0', | ||
`set_id` tinyint unsigned NOT NULL DEFAULT '0', | ||
`slot` tinyint unsigned NOT NULL DEFAULT '0', | ||
`item_id` mediumint unsigned NOT NULL DEFAULT '0', | ||
PRIMARY KEY (`owner`,`set_id`,`slot`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Bot equipment sets system'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-- | ||
SET @LOCALIZED_STRINGS_START = 70689; | ||
SET @LOCALIZED_STRINGS_END = 70693; | ||
|
||
DELETE FROM `npc_text` WHERE ID BETWEEN @LOCALIZED_STRINGS_START and @LOCALIZED_STRINGS_END; | ||
INSERT INTO `npc_text` (`ID`,`text0_0`,`VerifiedBuild`) VALUES | ||
(@LOCALIZED_STRINGS_START+0,'Equipment sets','-1'), | ||
(@LOCALIZED_STRINGS_START+1,'Create','-1'), | ||
(@LOCALIZED_STRINGS_START+2,'Delete','-1'), | ||
(@LOCALIZED_STRINGS_START+3,'Equip','-1'), | ||
(@LOCALIZED_STRINGS_START+4,'missing','-1'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.