Add new command 'npc showloot'.

Port From (https://github.com/TrinityCore/TrinityCore/commit/64d8b183de9c56e1350b7323167b509fe2c43805)
This commit is contained in:
hondacrx
2020-07-24 14:39:24 -04:00
parent c70d2a67a0
commit 9533ebdd98
5 changed files with 590 additions and 462 deletions
+1 -1
View File
@@ -770,7 +770,7 @@ namespace Framework.Constants
CommandGroupAssistant = 862,
CommandGroupMaintank = 863,
CommandGroupMainassist = 864,
CommandNpcShowloot = 865, // Reserved
CommandNpcShowloot = 865,
CommandListSpawnpoints = 866, // Reserved
CommandReloadQuestGreetingLocale = 867, // Reserved
CommandModifyPower = 868,
+9 -1
View File
@@ -349,7 +349,15 @@ namespace Framework.Constants
CommandWhisperon = 285,
CommandWhisperoff = 286,
CommandCreatguidnotfound = 287,
// Ticket Strings Need Rewrite // 288-296 Free
CommandNotDeadOrNoLoot = 288,
CommandNpcShowLootHeader = 289,
CommandNpcShowLootLabel = 290,
CommandNpcShowLootEntry = 291,
CommandNpcShowLootMoney = 292,
CommandNpcShowLootLabel2 = 293,
CommandNpcShowLootSublabel = 294,
CommandNpcShowLootEntry2 = 295,
// 296 free
// End
CommandSpawndist = 297,
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
DELETE FROM `rbac_permissions` WHERE `id`=865;
INSERT INTO `rbac_permissions` (`id`,`name`) VALUES
(865, 'Command: npc showloot');
DELETE FROM `rbac_linked_permissions` WHERE `linkedId`=865;
INSERT INTO `rbac_linked_permissions` (`id`,`linkedId`) VALUES
(197,865);
@@ -0,0 +1,17 @@
--
DELETE FROM `trinity_string` WHERE `entry` BETWEEN 288 AND 295;
INSERT INTO `trinity_string` (`entry`,`content_default`) VALUES
(288, '%s either isn\'t dead or has no loot available.'),
(289, 'LOOT INFO: %s (%d)'),
(290, ' %s (%d items):'),
(291, ' %dx |c%08x|Hitem:%d:0:0:0:0:0:0:0:0|h[%s]|h|r (#%05d)'),
(292, ' Money: %01d|TInterface\\MoneyFrame\\UI-GoldIcon:0:0:2:0|t %02d|TInterface\\MoneyFrame\\UI-SilverIcon:0:0:2:0|t %02d|TInterface\\MoneyFrame\\UI-CopperIcon:0:0:2:0|t'),
(293, ' %s:'),
(294, ' %s (%d items):'),
(295, ' %dx |c%08x|Hitem:%d:0:0:0:0:0:0:0:0|h[%s]|h|r (#%05d)');
DELETE FROM `command` WHERE `name`='npc showloot';
INSERT INTO `command` (`name`,`permission`,`help`) VALUES
('npc showloot', 865, "Syntax: .npc showloot [all]
Shows the loot contained in targeted dead creature.");