aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkvolk2git <78740198+kvolk2git@users.noreply.github.com>2021-10-25 13:41:43 +0300
committerGitHub <noreply@github.com>2021-10-25 12:41:43 +0200
commit822b32b64bbea2640f68edd9d110f8379c4a3c42 (patch)
tree03f3117b95cab3e1be9c516a56d93ec730cfee7d
parentc946370c5f03c53c4f9bb3d147abcc6b37f4f36d (diff)
add item xxxxx show to who was added item (#27020)
Co-authored-by: Aokromes <Aokromes@users.noreply.github.com>
-rw-r--r--sql/updates/world/3.3.5/2021_10_25_00_world.sql2
-rw-r--r--src/server/scripts/Commands/cs_misc.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2021_10_25_00_world.sql b/sql/updates/world/3.3.5/2021_10_25_00_world.sql
new file mode 100644
index 00000000000..a3e0f02f3a8
--- /dev/null
+++ b/sql/updates/world/3.3.5/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 76b2b149100..650e60051d3 100644
--- a/src/server/scripts/Commands/cs_misc.cpp
+++ b/src/server/scripts/Commands/cs_misc.cpp
@@ -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);
}