mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 12:47:07 +00:00
fix(Core/Command): additem checks (#2898)
* Add check if the player has 0 items to be destroyed * Add check if the player has less than items trying to be destroyed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1587062218041221300');
|
||||
|
||||
DELETE FROM `acore_string` WHERE `entry` IN (30081,30082);
|
||||
INSERT INTO `acore_string` (`entry`, `content_default`) VALUES
|
||||
(30081, "%s does not have itemID = %i, thus cannot be removed."),
|
||||
(30082, "%s does not have that many of itemID = %i, thus none were removed.");
|
||||
|
||||
UPDATE `command` SET `help` = "Syntax: .additem #itemID/[#itemName]/#itemLink #itemCount\r\nAdds the specified item to you or the selected character.\nIf #itemCount is negative, you will remove #itemID." WHERE `name` = "additem";
|
||||
Reference in New Issue
Block a user