mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-03 15:47:04 +01:00
add item xxxxx show to who was added item (#27020)
Co-authored-by: Aokromes <Aokromes@users.noreply.github.com>
This commit is contained in:
2
sql/updates/world/3.3.5/2021_10_25_00_world.sql
Normal file
2
sql/updates/world/3.3.5/2021_10_25_00_world.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
--
|
||||
UPDATE `trinity_string` SET `content_default`='Command : Additem, itemId = %i, amount = %i to %s' WHERE `entry`=494;
|
||||
@@ -1394,6 +1394,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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user