add item xxxxx show to who was added item (#27020)

Co-authored-by: Aokromes <Aokromes@users.noreply.github.com>
(cherry picked from commit 822b32b64b)
This commit is contained in:
kvolk2git
2021-10-25 13:41:43 +03:00
committed by Shauren
parent 59889d926d
commit e799c4e003
2 changed files with 3 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
--
UPDATE `trinity_string` SET `content_default`='Command : Additem, itemId = %i, amount = %i to %s' WHERE `entry`=494;

View File

@@ -1481,6 +1481,7 @@ public:
if (count > 0 && item)
{
player->SendNewItem(item, count, false, true);
handler->PSendSysMessage(LANG_ADDITEM, itemId, count, handler->GetNameLink(playerTarget).c_str());
if (player != playerTarget)
playerTarget->SendNewItem(item, count, true, false);
}