feat(Scripts/Commands): Implement item refund command (#9811)

This commit is contained in:
Skjalf
2021-12-20 16:11:45 -03:00
committed by GitHub
parent 267cd9a75a
commit ea1ffd6894
5 changed files with 229 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1640021759359148700');
DELETE FROM `command` WHERE `name` IN ('item refund');
INSERT INTO `command` (`name`, `security`, `help`) VALUES
('item refund', 3, 'Syntax: .item refund <name> <item> <extendedCost> \nRemoves the item and restores honor/arena/items according to extended cost.');
DELETE FROM `acore_string` WHERE `entry` IN (5071, 5072, 5073, 5074, 5075, 5076, 5077, 5078);
INSERT INTO `acore_string` (`entry`, `content_default`) VALUES
(5071, 'The extendedcost entry provided does not exist.'),
(5072, 'Refunding %s (%u) would send the target over the honor points limit (limit: %u, current honor: %u, honor to be refunded: %u).'),
(5073, 'An attempt of refunding your item %s has failed because it would put you over the honor points limit.'),
(5074, 'Item %s (%u) was refunded, restoring %u honor points.'),
(5075, 'Refunding %s (%u) would send the target over the arena points limit (limit: %u, current arena points: %u, arena points to be refunded: %u).'),
(5076, 'An attempt of refunding your item %s has failed because it would put you over the arena points limit.'),
(5077, 'Item %s (%u) was refunded, restoring %u arena points.'),
(5078, 'Item not found in the character\'s inventory (bank included)');