mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
feat(Core/Loot): Implement player_loot_template (#9198)
* Also fix AV player loot
This commit is contained in:
@@ -156,6 +156,7 @@ public:
|
||||
{ "spell_target_position", HandleReloadSpellTargetPositionCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "spell_threats", HandleReloadSpellThreatsCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "spell_group_stack_rules", HandleReloadSpellGroupStackRulesCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "player_loot_template", HandleReloadLootTemplatesPlayerCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "acore_string", HandleReloadAcoreStringCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "warden_action", HandleReloadWardenactionCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "waypoint_scripts", HandleReloadWpScriptsCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
@@ -658,6 +659,16 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool HandleReloadLootTemplatesPlayerCommand(ChatHandler* handler)
|
||||
{
|
||||
LOG_INFO("server.loading", "Re-Loading Loot Tables... (`player_loot_template`)");
|
||||
LoadLootTemplates_Player();
|
||||
LootTemplates_Player.CheckLootRefs();
|
||||
handler->SendGlobalGMSysMessage("DB table `player_loot_template` reloaded.");
|
||||
sConditionMgr->LoadConditions(true);
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool HandleReloadAcoreStringCommand(ChatHandler* handler)
|
||||
{
|
||||
LOG_INFO("server.loading", "Re-Loading acore_string Table!");
|
||||
|
||||
Reference in New Issue
Block a user