diff options
author | kvolk2git <78740198+kvolk2git@users.noreply.github.com> | 2021-10-25 13:41:43 +0300 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-03-20 19:44:19 +0100 |
commit | e799c4e00334db014217a85af8765a2859dc47f9 (patch) | |
tree | c8b67ea664c66b6141e6425fa7fc1728ffe1313a | |
parent | 59889d926d7c3d4a57afa357f25f69c0c8dea7bb (diff) |
add item xxxxx show to who was added item (#27020)
Co-authored-by: Aokromes <Aokromes@users.noreply.github.com>
(cherry picked from commit 822b32b64bbea2640f68edd9d110f8379c4a3c42)
-rw-r--r-- | sql/updates/world/master/2022_03_20_18_world_2021_10_25_00_world.sql | 2 | ||||
-rw-r--r-- | src/server/scripts/Commands/cs_misc.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sql/updates/world/master/2022_03_20_18_world_2021_10_25_00_world.sql b/sql/updates/world/master/2022_03_20_18_world_2021_10_25_00_world.sql new file mode 100644 index 00000000000..a3e0f02f3a8 --- /dev/null +++ b/sql/updates/world/master/2022_03_20_18_world_2021_10_25_00_world.sql @@ -0,0 +1,2 @@ +-- +UPDATE `trinity_string` SET `content_default`='Command : Additem, itemId = %i, amount = %i to %s' WHERE `entry`=494; diff --git a/src/server/scripts/Commands/cs_misc.cpp b/src/server/scripts/Commands/cs_misc.cpp index d153b77c914..b19edcb964a 100644 --- a/src/server/scripts/Commands/cs_misc.cpp +++ b/src/server/scripts/Commands/cs_misc.cpp @@ -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); } |