Skip to content

Commit

Permalink
feat(Scripts/Commands): Add quality colors to .item lookup command (#…
Browse files Browse the repository at this point in the history
…18907)

add quality colors to .item lookup command
  • Loading branch information
sogladev authored May 18, 2024
1 parent 3988e95 commit 49e3d5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions data/sql/updates/pending_db_world/rev_1715872309494189947.sql
Original file line number Diff line number Diff line change
@@ -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;
3 changes: 2 additions & 1 deletion src/server/scripts/Commands/cs_lookup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ EndScriptData */
#include "ReputationMgr.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include "SharedDefines.h"

using namespace Acore::ChatCommands;

Expand Down Expand Up @@ -550,7 +551,7 @@ class lookup_commandscript : public CommandScript

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
{
Expand Down

1 comment on commit 49e3d5d

@r4d1sh
Copy link
Contributor

@r4d1sh r4d1sh commented on 49e3d5d May 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit broke the .lookup item command for any localizations other than enGB/enUS, deDE, and zhCN. Details: #18922

Please sign in to comment.