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

Co-authored-by: Aokromes <[email protected]>
(cherry picked from commit 822b32b64bbea2640f68edd9d110f8379c4a3c42)
This commit is contained in:
kvolk2git
2022-03-20 19:44:19 +01:00
committed by Shauren
parent 59889d926d
commit e799c4e003
2 changed files with 3 additions and 0 deletions
@@ -0,0 +1,2 @@
--
UPDATE `trinity_string` SET `content_default`='Command : Additem, itemId = %i, amount = %i to %s' WHERE `entry`=494;
+1
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);
}