feat(Scripts/Commands): Add quality colors to .item lookup command (#18907)

add quality colors to .item lookup command
This commit is contained in:
Jelle Meeus
2024-05-18 14:08:20 +02:00
committed by GitHub
parent 3988e9581d
commit 49e3d5dfff
2 changed files with 4 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
--
UPDATE `acore_string` SET `content_default`='%d - |c%x|Hitem:%d:0:0:0:0:0:0:0:0|h[%s]|h|r ', `locale_deDE`='%d - |c%x|Hitem:%d:0:0:0:0:0:0:0:0|h[%s]|h|r ', `locale_zhCN`='%d - |c%x|Hitem:%d:0:0:0:0:0:0:0:0|h[%s]|h|r' WHERE `entry`=512;

View File

@@ -33,6 +33,7 @@ EndScriptData */
#include "ReputationMgr.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include "SharedDefines.h"
using namespace Acore::ChatCommands;
@@ -550,7 +551,7 @@ public:
if (handler->GetSession())
{
handler->PSendSysMessage(LANG_ITEM_LIST_CHAT, itemTemplate.ItemId, itemTemplate.ItemId, name.c_str());
handler->PSendSysMessage(LANG_ITEM_LIST_CHAT, itemTemplate.ItemId, ItemQualityColors[itemTemplate.Quality], itemTemplate.ItemId, name.c_str());
}
else
{